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

  1. <!DOCTYPE html>
  2. <html>
  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. <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>
  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="pannel-main 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 id="checkedClick" type="button" class="btn btn-success">全选</button>
  54. <button type="button" onclick="DoSubmit()" class="btn btn-danger">删除</button>
  55. </td>
  56. </tr>
  57. </tbody>
  58. </form>
  59. </table>
  60. </div>
  61. <nav>{dede:pagelist listsize='6'/}</nav>
  62. </div>
  63. </div>
  64. </div>
  65. </div>
  66. <?php pasterTempletDiy('foot.htm');?>
  67. <script>
  68. //获得选中文件的文件名
  69. function GetCheckfolderItem() {
  70. var allSel = '';
  71. if (document.form1.deleteid.value) return document.form1.deleteid.value;
  72. for (i = 0; i < document.form1.deleteid.length; i++) {
  73. if (document.form1.deleteid[i].checked) {
  74. if (allSel == '')
  75. allSel = document.form1.deleteid[i].value;
  76. else
  77. allSel = allSel + "," + document.form1.deleteid[i].value;
  78. }
  79. }
  80. return allSel;
  81. }
  82. function DoSubmit() {
  83. var selid = GetCheckfolderItem();
  84. if (selid == '') {
  85. alert("您没选中任何信息");
  86. return false;
  87. }
  88. if (window.confirm("您确定要删除这些消息吗")) {
  89. location = "mypay.php?dopost=del&ids=" + selid;
  90. }
  91. }
  92. </script>
  93. </body>
  94. </html>