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

95 lines
3.3KB

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