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

cards_manmage.htm 4.6KB

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