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

96 lines
4.3KB

  1. <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
  2. <html xmlns="http://www.w3.org/1999/xhtml">
  3. <head>
  4. <meta http-equiv="Content-Type" content="text/html; charset=<?php echo $cfg_soft_lang; ?>">
  5. <title>点卡业务记录</title>
  6. <link rel="stylesheet" href="../static/web/css/bootstrap.min.css">
  7. <link rel="stylesheet" href="../static/web/font/css/font-awesome.min.css">
  8. <link rel="stylesheet" href="../static/web/css/admin.css">
  9. <script language="javascript">
  10. //获得选中项
  11. function getCheckboxItem() {
  12. var allSel = "";
  13. if (document.form1.aids.value) return document.form1.aids.value;
  14. for (i = 0; i < document.form1.aids.length; i++) {
  15. if (document.form1.aids[i].checked) {
  16. if (allSel == "")
  17. allSel = document.form1.aids[i].value;
  18. else
  19. allSel = allSel + "`" + document.form1.aids[i].value;
  20. }
  21. }
  22. return allSel;
  23. }
  24. function ReSel() {
  25. for (i = 0; i < document.form1.aids.length; i++) {
  26. if (document.form1.aids[i].checked) document.form1.aids[i].checked = false;
  27. else document.form1.aids[i].checked = true;
  28. }
  29. }
  30. function DelSel() {
  31. var nid = getCheckboxItem();
  32. if (nid == "") {
  33. alert("请选择要删除的卡");
  34. return;
  35. }
  36. location.href = "cards_manage.php?dopost=delete&aids=" + nid;
  37. }
  38. </script>
  39. </head>
  40. <body>
  41. <table width="98%" cellpadding="1" cellspacing="1" align="center" class="table maintable mt-3 mb-3">
  42. <tr>
  43. <td height="26" colspan="7" background="../static/web/img/tbg.gif">
  44. <table width="98%" cellspacing="0" cellpadding="0" class="table table-borderless">
  45. <tr>
  46. <td width="30%" style="padding-left:10px">点卡业务管理</td>
  47. <td width="45%" align="right" style="padding-top:10px">
  48. <button type="button" onClick="location='cards_manage.php?isexp=0';" class="btn btn-success btn-sm">未使用</button>
  49. <button type="button" onClick="location='cards_manage.php?isexp=1';" 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';" class="btn btn-success btn-sm">全部</button>
  52. </td>
  53. <td width="25%" align="right" style="padding-top:10px">
  54. <button type="button" onClick="location='cards_make.php';" class="btn btn-success btn-sm">生成点卡</button>
  55. <button type="button" onClick="location='cards_type.php';" class="btn btn-success btn-sm">点卡产品分类</button>
  56. </td>
  57. </tr>
  58. </table>
  59. </td>
  60. </tr>
  61. <tr align="center" bgcolor="#FBFCE2">
  62. <td width="8%">选择</td>
  63. <td width="28%">卡号</td>
  64. <td width="18%">点卡类型</td>
  65. <td width="12%">生成日期</td>
  66. <td width="12%">使用日期</td>
  67. <td width="8%">状态</td>
  68. <td width="14%">使用会员</td>
  69. </tr>
  70. <form name="form1">
  71. {dede:datalist empty='<tr><td colspan="7"><center>暂无内容</center></td></tr>'}
  72. <tr height="26" align="center" onmousemove="javascript:this.bgColor='#FCFDEE';" onmouseout="javascript:this.bgColor='#ffffff';">
  73. <td><input type='checkbox' name='aids' value='{dede:field.aid/}' class='np'></td>
  74. <td>{dede:field.cardid/}</td>
  75. <td><?php echo $TypeNames[$fields['ctid']]?></td>
  76. <td>{dede:field.mtime function='GetDateMk(@me)'/}</td>
  77. <td>{dede:field.utime function='GetUseDate(@me)'/}</td>
  78. <td>{dede:field.isexp function='GetSta(@me)'/}</td>
  79. <td>{dede:field.uid function='GetMemberID(@me)'/}</td>
  80. </tr>
  81. {/dede:datalist}
  82. </form>
  83. <tr>
  84. <td height="26" colspan="7">&nbsp;
  85. <button type="button" onClick="ReSel();" class="btn btn-success btn-sm">反选</button>
  86. <button type="button" onClick="DelSel();" class="btn btn-success btn-sm">删除</button>
  87.      </td>
  88. </tr>
  89. <tr>
  90. <td height="36" colspan="7" align="center" bgcolor="#f8f8f8">
  91. {dede:pagelist listitem="info,index,end,pre,next,pageno" listsize="5"/}
  92. </td>
  93. </tr>
  94. </table>
  95. </body>
  96. </html>