国内流行的内容管理系统(CMS)多端全媒体解决方案 https://www.dedebiz.com
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

112 lines
4.0KB

  1. <!doctype html>
  2. <html lang="zh-CN">
  3. <head>
  4. <meta charset="<?php echo $cfg_soft_lang; ?>">
  5. <meta name="viewport" content="width=device-width, initial-scale=1, shrink-to-fit=no">
  6. <script src="<?php echo $cfg_cmsurl;?>/static/js/jquery.min.js"></script>
  7. <link rel="stylesheet" href="<?php echo $cfg_cmsurl;?>/static/css/bootstrap.min.css">
  8. <link href="<?php echo $cfg_cmsurl;?>/static/font-awesome/css/font-awesome.min.css" rel="stylesheet">
  9. <link rel="stylesheet" href="<?php echo $cfg_cmsurl;?>/static/css/dede.css">
  10. <link rel="stylesheet" href="<?php echo $cfg_cmsurl;?>/static/css/member.css">
  11. <title>我购买的文章 - 会员中心 - <?php echo $cfg_webname; ?></title>
  12. </head>
  13. <body>
  14. <?php include(DEDEMEMBER."/templets/top_login.htm"); ?>
  15. <main class="member">
  16. <?php include(DEDEMEMBER."/templets/info.htm"); ?>
  17. <div class="container-fluid pannel">
  18. <div class="container">
  19. <div class="row">
  20. <?php
  21. $_menu_order = true; // 展开编辑信息
  22. $_menu_orderstate = 0;
  23. ?>
  24. <?php include(DEDEMEMBER."/templets/menu.htm"); ?>
  25. <div class="pannel-main col-md-9 mt-3 mb-3">
  26. <div class="pannel-main-container">
  27. <div class="table-responsive">
  28. <table width="100%" border="0" cellpadding="0" cellspacing="0" class="table">
  29. <thead>
  30. <tr>
  31. <th width="5%"></th>
  32. <th width="5%">ID</th>
  33. <th >标题</th>
  34. <th width="20%">消费金币</th>
  35. <th width="20%">消费时间</th>
  36. </tr>
  37. </thead>
  38. <form name='form1' action="mypay.php" method="post">
  39. <input type='hidden' name='dopost' value='del' />
  40. <tbody>
  41. {dede:datalist}
  42. <tr>
  43. <td align="center"><input type="checkbox" name="deleteid" value="{dede:field.aid/}"/></td>
  44. <td align="center"><?php echo $fields['aid']; ?></td>
  45. <td>
  46. <?php
  47. echo '<a href="../plus/view.php?aid='.str_replace('ARCHIVE', '', $fields['buyid']).'" target="_blank">'.$fields['oldinfo'].'</a>';
  48. ?>
  49. </td>
  50. <td align="center"><?php echo $fields['money']; ?></td>
  51. <td align="center"><?php echo GetDateTimeMk($fields['mtime']); ?></td>
  52. </tr>
  53. {/dede:datalist}
  54. <tr>
  55. <td colspan="6">
  56. <button id="checkedClick" type="button" class="btn btn-success btn-sm">全选</button>
  57. <button type="button" onclick="DoSubmit()" class="btn btn-success btn-sm">删除选中</button></td></tr></tbody>
  58. </form>
  59. </table>
  60. </div>
  61. <nav>
  62. {dede:pagelist listsize=5 /}
  63. </nav>
  64. </div>
  65. </div>
  66. </div>
  67. </div>
  68. </div>
  69. </main>
  70. <?php include(DEDEMEMBER."/templets/footer.htm"); ?>
  71. <script type="text/javascript">
  72. //获得选中文件的文件名
  73. function GetCheckfolderItem()
  74. {
  75. var allSel='';
  76. if(document.form1.deleteid.value) return document.form1.deleteid.value;
  77. for(i=0;i<document.form1.deleteid.length;i++)
  78. {
  79. if(document.form1.deleteid[i].checked)
  80. {
  81. if(allSel=='')
  82. allSel=document.form1.deleteid[i].value;
  83. else
  84. allSel=allSel+","+document.form1.deleteid[i].value;
  85. }
  86. }
  87. return allSel;
  88. }
  89. function DoSubmit()
  90. {
  91. var selid = GetCheckfolderItem();
  92. if(selid=='') {
  93. alert("你没选中任何信息!");
  94. return false;
  95. }
  96. if(window.confirm("你确定要删除这些消息么?"))
  97. {
  98. location = "mypay.php?dopost=del&ids="+selid;
  99. }
  100. }
  101. </script>
  102. </body>
  103. </html>