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

103 lines
4.5KB

  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/css/bootstrap.min.css">
  7. <link href="../static/font-awesome/css/font-awesome.min.css" rel="stylesheet">
  8. <link href="css/base.css" rel="stylesheet" type="text/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("请选择要删除的卡!\r\n");
  34. return;
  35. }
  36. location.href = "cards_manage.php?dopost=delete&aids=" + nid;
  37. }
  38. </script>
  39. </head>
  40. <body background='images/allbg.gif' leftmargin='8' topmargin='8'>
  41. <table width="98%" border="0" cellpadding="1" cellspacing="1" align="center"
  42. class="table maintable table-bordered mt-3" style=" background:#cfcfcf;">
  43. <tr>
  44. <td height="26" colspan="7" bgcolor="#EDF9D5" background='images/tbg.gif'>
  45. <table width="98%" border="0" cellspacing="0" cellpadding="0" class="table table-borderless">
  46. <tr>
  47. <td width="30%" style="padding-left:10px;"><strong>点卡业务管理:</strong> </td>
  48. <td width="45%" align="right" style="padding-top:4px;">
  49. <button type="button" onClick="location='cards_manage.php?isexp=0';"
  50. class="btn btn-success btn-sm">未使用</button>
  51. <button type="button" onClick="location='cards_manage.php?isexp=1';"
  52. class="btn btn-success btn-sm">已售出</button>
  53. <button type="button" onClick="location='cards_manage.php?isexp=-1';"
  54. class="btn btn-success btn-sm">已使用</button>
  55. <button type="button" onClick="location='cards_manage.php';" class="btn btn-success btn-sm">全部</button>
  56. </td>
  57. <td width="25%" align="right" style="padding-top:4px;">
  58. <button type="button" onClick="location='cards_make.php';" class="btn btn-success btn-sm">生成点卡</button>
  59. <button type="button" onClick="location='cards_type.php';"
  60. class="btn btn-success btn-sm">点卡产品分类</button>
  61. </td>
  62. </tr>
  63. </table>
  64. </td>
  65. </tr>
  66. <tr align="center" bgcolor="#FBFCE2">
  67. <td width="8%">选择</td>
  68. <td width="28%">卡号</td>
  69. <td width="18%">点卡类型</td>
  70. <td width="12%">生成日期</td>
  71. <td width="12%">使用日期</td>
  72. <td width="8%">状态</td>
  73. <td width="14%">使用会员</td>
  74. </tr>
  75. <form name="form1">
  76. {dede:datalist}
  77. <tr align="center" bgcolor="#FFFFFF" height="26" align="center" onMouseMove="javascript:this.bgColor='#FCFDEE';"
  78. onMouseOut="javascript:this.bgColor='#FFFFFF';">
  79. <td><input type='checkbox' name='aids' value='{dede:field.aid/}' class='np'></td>
  80. <td>{dede:field.cardid/}</td>
  81. <td><?php echo $TypeNames[$fields['ctid']]?></td>
  82. <td>{dede:field.mtime function='GetDateMk(@me)'/}</td>
  83. <td>{dede:field.utime function='GetUseDate(@me)'/}</td>
  84. <td>{dede:field.isexp function='GetSta(@me)'/}</td>
  85. <td>{dede:field.uid function='GetMemberID(@me)'/}</td>
  86. </tr>
  87. {/dede:datalist}
  88. </form>
  89. <tr>
  90. <td height="30" colspan="7" bgcolor="#ffffff">&nbsp;
  91. <button type="button" onClick="ReSel();" class="btn btn-success btn-sm">反选</button>
  92. <button type="button" onClick="DelSel();" class="btn btn-success btn-sm">删除</button>
  93.      </td>
  94. </tr>
  95. <tr>
  96. <td height="36" colspan="7" align="center" bgcolor="#F9FCEF">
  97. {dede:pagelist listitem="info,index,end,pre,next,pageno" listsize="5"/}
  98. </td>
  99. </tr>
  100. </table>
  101. </body>
  102. </html>