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

110 lines
3.9KB

  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. <div class="container-fluid 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%" border="0" cellpadding="0" cellspacing="0" class="table">
  28. <thead>
  29. <tr>
  30. <th width="5%"></th>
  31. <th width="5%">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="../plus/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></td></tr></tbody>
  57. </form>
  58. </table>
  59. </div>
  60. <nav>
  61. {dede:pagelist listsize=5 /}
  62. </nav>
  63. </div>
  64. </div>
  65. </div>
  66. </div>
  67. </div>
  68. </main>
  69. <?php include(DEDEMEMBER."/templets/footer.htm"); ?>
  70. <script type="text/javascript">
  71. //获得选中文件的文件名
  72. function GetCheckfolderItem()
  73. {
  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. {
  78. if(document.form1.deleteid[i].checked)
  79. {
  80. if(allSel=='')
  81. allSel=document.form1.deleteid[i].value;
  82. else
  83. allSel=allSel+","+document.form1.deleteid[i].value;
  84. }
  85. }
  86. return allSel;
  87. }
  88. function DoSubmit()
  89. {
  90. var selid = GetCheckfolderItem();
  91. if(selid=='') {
  92. alert("你没选中任何信息!");
  93. return false;
  94. }
  95. if(window.confirm("你确定要删除这些消息么?"))
  96. {
  97. location = "mypay.php?dopost=del&ids="+selid;
  98. }
  99. }
  100. </script>
  101. </body>
  102. </html>