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

97 lines
4.1KB

  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/css/bootstrap.min.css">
  8. <link rel="stylesheet" href="../static/web/font/css/font-awesome.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 mt-3 mb-3">
  43. <tr>
  44. <td height="26" colspan="7" background="../static/web/img/tbg.gif">
  45. <table width="98%" cellspacing="0" cellpadding="0" class="table table-borderless">
  46. <tr>
  47. <td width="30%" style="padding-left:10px">点卡业务管理</td>
  48. <td width="45%" align="right" style="padding-top:10px">
  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. </td>
  54. <td width="25%" align="right" style="padding-top:10px">
  55. <button type="button" onClick="location='cards_make.php';" class="btn btn-success btn-sm">生成点卡</button>
  56. <button type="button" onClick="location='cards_type.php';" class="btn btn-success btn-sm">点卡产品分类</button>
  57. </td>
  58. </tr>
  59. </table>
  60. </td>
  61. </tr>
  62. <tr align="center" bgcolor="#F8FCF1">
  63. <td width="8%">选择</td>
  64. <td width="28%">卡号</td>
  65. <td width="18%">点卡类型</td>
  66. <td width="12%">生成日期</td>
  67. <td width="12%">使用日期</td>
  68. <td width="8%">状态</td>
  69. <td width="14%">使用会员</td>
  70. </tr>
  71. <form name="form1">
  72. {dede:datalist empty='<tr><td colspan="7"><center>暂无内容</center></td></tr>'}
  73. <tr height="26" align="center" onmousemove="javascript:this.bgColor='#F8FCF1';" onmouseout="javascript:this.bgColor='#ffffff';">
  74. <td><input type='checkbox' name='aids' value='{dede:field.aid/}' class='np'></td>
  75. <td>{dede:field.cardid/}</td>
  76. <td><?php echo $TypeNames[$fields['ctid']]?></td>
  77. <td>{dede:field.mtime function='GetDateMk(@me)'/}</td>
  78. <td>{dede:field.utime function='GetUseDate(@me)'/}</td>
  79. <td>{dede:field.isexp function='GetSta(@me)'/}</td>
  80. <td>{dede:field.uid function='GetMemberID(@me)'/}</td>
  81. </tr>
  82. {/dede:datalist}
  83. </form>
  84. <tr>
  85. <td height="26" colspan="7">&nbsp;
  86. <button type="button" onClick="ReSel();" class="btn btn-success btn-sm">反选</button>
  87. <button type="button" onClick="DelSel();" class="btn btn-success btn-sm">删除</button>
  88.      </td>
  89. </tr>
  90. <tr>
  91. <td height="36" colspan="7" align="center" bgcolor="#f8f8f8">
  92. {dede:pagelist listitem="info,index,end,pre,next,pageno" listsize="5"/}
  93. </td>
  94. </tr>
  95. </table>
  96. </body>
  97. </html>