国内流行的内容管理系统(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.

98 lines
3.6KB

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