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

94 lines
3.2KB

  1. <!DOCTYPE html>
  2. <html>
  3. <head>
  4. <meta charset="utf-8">
  5. <meta http-equiv="X-UA-Compatible" content="IE=Edge,chrome=1">
  6. <meta name="viewport" content="width=device-width,initial-scale=1,shrink-to-fit=no">
  7. <title>购买文档-会员中心-<?php echo $cfg_webname;?></title>
  8. <link rel="stylesheet" href="/static/web/css/font-awesome.min.css">
  9. <link rel="stylesheet" href="/static/web/css/bootstrap.min.css">
  10. <link rel="stylesheet" href="/static/web/css/style.css">
  11. </head>
  12. <body class="body-bg">
  13. <?php obtaintheme('top.htm');?>
  14. <main class="container py-3">
  15. <div class="row">
  16. <?php
  17. $_menu_order = true;
  18. $_menu_orderstate = 0;
  19. ?>
  20. <?php include(DEDEMEMBER."/templets/menu.htm");?>
  21. <div class="col-md-9">
  22. <div class="pannel-main-container shadow-sm rounded">
  23. <div class="table-responsive">
  24. <table class="table">
  25. <thead>
  26. <tr>
  27. <th width="8%">选择</th>
  28. <th width="8%">id</th>
  29. <th>标题</th>
  30. <th width="16%">需要金币</th>
  31. <th width="16%">消费时间</th>
  32. </tr>
  33. </thead>
  34. <form name="form1" action="mypay.php" method="post">
  35. <input type="hidden" name="dopost" value="del">
  36. <tbody>
  37. {dede:datalist}
  38. <tr>
  39. <td><input type="checkbox" name="deleteid" value="{dede:field.aid/}" /></td>
  40. <td><?php echo $fields['aid'];?></td>
  41. <td><?php echo '<a href="<?php echo $cfg_phpurl;?>/view.php?aid='.str_replace('ARCHIVE', '', $fields['buyid']).'" target="_blank">'.$fields['oldinfo'].'</a>';?></td>
  42. <td><?php echo $fields['money'];?></td>
  43. <td><?php echo GetDateTimeMk($fields['mtime']);?></td>
  44. </tr>
  45. {/dede:datalist}
  46. <tr>
  47. <td colspan="6">
  48. <button type="button" id="checkedClick" class="btn btn-success btn-sm">全选</button>
  49. <button type="button" onclick="DoSubmit()" class="btn btn-danger btn-sm">删除</button>
  50. </td>
  51. </tr>
  52. </tbody>
  53. </form>
  54. </table>
  55. </div>
  56. {dede:pagelist listitem='info,index,end,pre,next,pageno' listsize='1'/}
  57. </div>
  58. </div>
  59. </div>
  60. </main>
  61. <?php obtaintheme('foot.htm');?>
  62. <script>
  63. //获得选中文件的文件名
  64. function GetCheckfolderItem() {
  65. var allSel = '';
  66. if (typeof document.form1.deleteid == "undefined") {
  67. return '';
  68. }
  69. if (document.form1.deleteid.value) return document.form1.deleteid.value;
  70. for (i = 0; i < document.form1.deleteid.length; i++) {
  71. if (document.form1.deleteid[i].checked) {
  72. if (allSel == '')
  73. allSel = document.form1.deleteid[i].value;
  74. else
  75. allSel = allSel + "," + document.form1.deleteid[i].value;
  76. }
  77. }
  78. return allSel;
  79. }
  80. function DoSubmit() {
  81. var selid = GetCheckfolderItem();
  82. if (selid == '') {
  83. ShowMsg("您没选中任何信息");
  84. return false;
  85. }
  86. DedeConfirm("您确定要删除这些消息吗").then((v)=>{
  87. location = "mypay.php?dopost=del&ids=" + selid;
  88. }).catch((e)=>{
  89. console.log(e)
  90. });
  91. }
  92. </script>
  93. </body>
  94. </html>