国内流行的内容管理系统(CMS)多端全媒体解决方案 https://www.dedebiz.com
您最多选择25个主题 主题必须以字母或数字开头,可以包含连字符 (-),并且长度不得超过35个字符

93 行
3.2KB

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