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

99 lines
3.5KB

  1. <!DOCTYPE html>
  2. <html>
  3. <head>
  4. <meta charset="utf-8">
  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/user.css">
  12. </head>
  13. <body class="body-bg">
  14. <?php pasterTempletDiy('top.htm');?>
  15. <div 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 width="100%" cellpadding="0" cellspacing="0" class="table">
  26. <thead>
  27. <tr>
  28. <th width="6%"></th>
  29. <th width="10%">id</th>
  30. <th>标题</th>
  31. <th width="20%">需要金币</th>
  32. <th width="20%">消费时间</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 align="center"><input type="checkbox" name="deleteid" value="{dede:field.aid/}" /></td>
  41. <td align="center"><?php echo $fields['aid'];?></td>
  42. <td>
  43. <?php
  44. echo '<a href="../apps/view.php?aid='.str_replace('ARCHIVE', '', $fields['buyid']).'" target="_blank">'.$fields['oldinfo'].'</a>';
  45. ?>
  46. </td>
  47. <td align="center"><?php echo $fields['money'];?></td>
  48. <td align="center"><?php echo GetDateTimeMk($fields['mtime']);?></td>
  49. </tr>
  50. {/dede:datalist}
  51. <tr>
  52. <td colspan="6">
  53. <button type="button" id="checkedClick" class="btn btn-success btn-sm">全选</button>
  54. <button type="button" onclick="DoSubmit()" class="btn btn-danger btn-sm">删除</button>
  55. </td>
  56. </tr>
  57. </tbody>
  58. </form>
  59. </table>
  60. </div>
  61. {dede:pagelist listsize='6'/}
  62. </div>
  63. </div>
  64. </div>
  65. </div>
  66. <?php pasterTempletDiy('foot.htm');?>
  67. <script>
  68. //获得选中文件的文件名
  69. function GetCheckfolderItem() {
  70. var allSel = '';
  71. if (typeof document.form1.deleteid == "undefined") {
  72. return '';
  73. }
  74. if (document.form1.deleteid.value) return document.form1.deleteid.value;
  75. for (i = 0; i < document.form1.deleteid.length; i++) {
  76. if (document.form1.deleteid[i].checked) {
  77. if (allSel == '')
  78. allSel = document.form1.deleteid[i].value;
  79. else
  80. allSel = allSel + "," + document.form1.deleteid[i].value;
  81. }
  82. }
  83. return allSel;
  84. }
  85. function DoSubmit() {
  86. var selid = GetCheckfolderItem();
  87. if (selid == '') {
  88. ShowMsg("您没选中任何信息");
  89. return false;
  90. }
  91. DedeConfirm("您确定要删除这些消息吗?").then((v)=>{
  92. location = "mypay.php?dopost=del&ids=" + selid;
  93. }).catch((e)=>{
  94. console.log(e)
  95. });
  96. }
  97. </script>
  98. </body>
  99. </html>