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

95 lines
3.9KB

  1. <!DOCTYPE html>
  2. <html>
  3. <head>
  4. <meta charset="<?php echo $cfg_soft_lang;?>">
  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 width="98%" cellpadding="1" cellspacing="1" align="center" class="table maintable my-3">
  43. <tr>
  44. <td bgcolor="#f5f5f5" colspan="7">
  45. <table width="98%" cellspacing="0" cellpadding="0" class="table table-borderless">
  46. <tr>
  47. <td width="30%">点卡业务管理</td>
  48. <td width="70%" align="right">
  49. <button type="button" onClick="location='cards_manage.php?isexp=0';" class="btn btn-success btn-sm">未使用</button>
  50. <button type="button" onClick="location='cards_manage.php?isexp=1';" class="btn btn-success btn-sm">已售出</button>
  51. <button type="button" onClick="location='cards_manage.php?isexp=-1';" class="btn btn-success btn-sm">已使用</button>
  52. <button type="button" onClick="location='cards_manage.php';" class="btn btn-success btn-sm">全部</button>
  53. <button type="button" onClick="location='cards_make.php';" class="btn btn-success btn-sm">生成点卡</button>
  54. <button type="button" onClick="location='cards_type.php';" class="btn btn-success btn-sm">点卡产品分类</button>
  55. </td>
  56. </tr>
  57. </table>
  58. </td>
  59. </tr>
  60. <tr bgcolor="#fbfce2" align="center">
  61. <td width="6%">选择</td>
  62. <td width="28%">卡号</td>
  63. <td width="18%">点卡类型</td>
  64. <td width="12%">生成日期</td>
  65. <td width="12%">使用日期</td>
  66. <td width="6%">状态</td>
  67. <td>使用会员</td>
  68. </tr>
  69. <form name="form1">
  70. {dede:datalist empty='<tr><td colspan="7"><center>暂无内容</center></td></tr>'}
  71. <tr align="center" onmousemove="javascript:this.bgColor='#fbfce2';" onmouseout="javascript:this.bgColor='#ffffff';">
  72. <td><input type="checkbox" name="aids" value="{dede:field.aid/}"></td>
  73. <td>{dede:field.cardid/}</td>
  74. <td><?php echo $TypeNames[$fields['ctid']]?></td>
  75. <td>{dede:field.mtime function='GetDateMk(@me)'/}</td>
  76. <td>{dede:field.utime function='GetUseDate(@me)'/}</td>
  77. <td>{dede:field.isexp function='GetSta(@me)'/}</td>
  78. <td>{dede:field.uid function='GetMemberID(@me)'/}</td>
  79. </tr>
  80. {/dede:datalist}
  81. </form>
  82. <tr>
  83. <td colspan="7">
  84. <button type="button" onClick="ReSel();" class="btn btn-success btn-sm">反选</button>
  85. <button type="button" onClick="DelSel();" class="btn btn-danger btn-sm">删除</button>
  86. </td>
  87. </tr>
  88. <tr>
  89. <td colspan="7" bgcolor="#f5f5f5" align="center" class="py-2">
  90. {dede:pagelist listitem='info,index,end,pre,next,pageno' listsize='6'/}
  91. </td>
  92. </tr>
  93. </table>
  94. </body>
  95. </html>