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

91 lines
3.4KB

  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. <title>积分产品管理</title>
  7. <link rel="stylesheet" href="../static/web/font/css/font-awesome.min.css">
  8. <link rel="stylesheet" href="../static/web/css/bootstrap.min.css">
  9. <link rel="stylesheet" href="../static/web/css/admin.css">
  10. </head>
  11. <body>
  12. <table align="center" class="table maintable my-3">
  13. <tr>
  14. <td>
  15. <button type="button" onclick="location='cards_manage.php';" class="btn btn-success btn-sm">全部</button>
  16. <button type="button" onclick="location='cards_manage.php?isexp=0';" class="btn btn-success btn-sm">未使用</button>
  17. <button type="button" onclick="location='cards_manage.php?isexp=1';" class="btn btn-success btn-sm">已售出</button>
  18. <button type="button" onclick="location='cards_manage.php?isexp=-1';" class="btn btn-success btn-sm">已使用</button>
  19. <button type="button" onclick="location='cards_make.php';" class="btn btn-success btn-sm">生成积分</button>
  20. <button type="button" onclick="location='cards_type.php';" class="btn btn-success btn-sm">积分产品分类</button>
  21. </td>
  22. </tr>
  23. </table>
  24. <form name="form1">
  25. <table align="center" class="table maintable mb-3">
  26. <tr>
  27. <td bgcolor="#f5f5f5" colspan="7">积分产品管理</td>
  28. </tr>
  29. <tr bgcolor="#e9ecef" align="center">
  30. <td width="6%">选择</td>
  31. <td width="26%">卡号</td>
  32. <td width="16%">积分类型</td>
  33. <td width="12%">生成日期</td>
  34. <td width="12%">使用日期</td>
  35. <td width="6%">状态</td>
  36. <td>使用会员</td>
  37. </tr>
  38. {dede:datalist empty='<tr><td colspan="7" align="center">暂无记录</td></tr>'}
  39. <tr align="center">
  40. <td><input type="checkbox" name="aids" value="{dede:field.aid/}"></td>
  41. <td>{dede:field.cardid/}</td>
  42. <td><?php echo $TypeNames[$fields['ctid']]?></td>
  43. <td>{dede:field.mtime function='GetDateMk(@me)'/}</td>
  44. <td>{dede:field.utime function='GetUseDate(@me)'/}</td>
  45. <td>{dede:field.isexp function='GetSta(@me)'/}</td>
  46. <td>{dede:field.uid function='GetMemberID(@me)'/}</td>
  47. </tr>
  48. {/dede:datalist}
  49. <tr>
  50. <td colspan="7">
  51. <button type="button" onclick="ReSel();" class="btn btn-success btn-sm">反选</button>
  52. <button type="button" onclick="DelSel();" class="btn btn-danger btn-sm">删除</button>
  53. </td>
  54. </tr>
  55. <tr>
  56. <td colspan="7" bgcolor="#f5f5f5" align="center">{dede:pagelist listitem='info,index,end,pre,next,pageno' listsize='6'/}</td>
  57. </tr>
  58. </table>
  59. </form>
  60. <script>
  61. //获得选中项
  62. function getCheckboxItem() {
  63. var allSel = "";
  64. if (document.form1.aids.value) return document.form1.aids.value;
  65. for (i = 0; i < document.form1.aids.length; i++) {
  66. if (document.form1.aids[i].checked) {
  67. if (allSel == "")
  68. allSel = document.form1.aids[i].value;
  69. else
  70. allSel = allSel + "`" + document.form1.aids[i].value;
  71. }
  72. }
  73. return allSel;
  74. }
  75. function ReSel() {
  76. for (i = 0; i < document.form1.aids.length; i++) {
  77. if (document.form1.aids[i].checked) document.form1.aids[i].checked = false;
  78. else document.form1.aids[i].checked = true;
  79. }
  80. }
  81. function DelSel() {
  82. var nid = getCheckboxItem();
  83. if (nid == "") {
  84. alert("请选择要删除的卡");
  85. return;
  86. }
  87. location.href = "cards_manage.php?dopost=delete&aids=" + nid;
  88. }
  89. </script>
  90. </body>
  91. </html>