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

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