国内流行的内容管理系统(CMS)多端全媒体解决方案 https://www.dedebiz.com
25개 이상의 토픽을 선택하실 수 없습니다. Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

97 lines
4.2KB

  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 href="css/base.css" rel="stylesheet" type="text/css" />
  7. <script language="javascript">
  8. //获得选中项
  9. function getCheckboxItem()
  10. {
  11. var allSel="";
  12. if(document.form1.aids.value) return document.form1.aids.value;
  13. for(i=0;i<document.form1.aids.length;i++)
  14. {
  15. if(document.form1.aids[i].checked)
  16. {
  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. {
  27. for(i=0;i<document.form1.aids.length;i++)
  28. {
  29. if(document.form1.aids[i].checked) document.form1.aids[i].checked = false;
  30. else document.form1.aids[i].checked = true;
  31. }
  32. }
  33. function DelSel()
  34. {
  35. var nid = getCheckboxItem();
  36. if(nid==""){
  37. alert("请选择要删除的卡!\r\n");
  38. return ;
  39. }
  40. location.href="cards_manage.php?dopost=delete&aids="+nid;
  41. }
  42. </script>
  43. </head>
  44. <body background='images/allbg.gif' leftmargin='8' topmargin='8'>
  45. <table width="98%" border="0" cellpadding="1" cellspacing="1" align="center" class="tbtitle" style=" background:#cfcfcf;">
  46. <tr>
  47. <td height="20" colspan="7" bgcolor="#EDF9D5" background='images/tbg.gif'>
  48. <table width="98%" border="0" cellspacing="0" cellpadding="0">
  49. <tr>
  50. <td width="30%" style="padding-left:10px;"><strong>点卡业务管理:</strong> </td>
  51. <td width="45%" align="right" style="padding-top:4px;"> <input type="button" class='np coolbg' name="ss13" value="未使用" style="width:50px;margin-right:6px" onClick="location='cards_manage.php?isexp=0';" >
  52. <input type="button" class='np coolbg inputbut' name="ss14" value="已售出" style="width:50px;margin-right:6px" onClick="location='cards_manage.php?isexp=1';" >
  53. <input type="button" class='np coolbg inputbut' name="ss15" value="已使用" style="width:50px;margin-right:6px" onClick="location='cards_manage.php?isexp=-1';">
  54. <input type="button" class='np coolbg inputbut' name="ss16" value="全部" style="width:40px;margin-right:6px" onClick="location='cards_manage.php';">
  55. </td>
  56. <td width="25%" align="right" style="padding-top:4px;"> <input type="button" class='np coolbg inputbut' name="ss1" value="生成点卡" style="width:70px;margin-right:6px" onClick="location='cards_make.php';">
  57. <input type="button" class='np coolbg inputbut' name="ss12" value="点卡产品分类" style="width:90px;margin-right:6px" onClick="location='cards_type.php';">
  58. </td>
  59. </tr>
  60. </table></td>
  61. </tr>
  62. <tr align="center" bgcolor="#FBFCE2">
  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}
  73. <tr align="center" bgcolor="#FFFFFF" height="26" align="center" onMouseMove="javascript:this.bgColor='#FCFDEE';" 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="30" colspan="7" bgcolor="#ffffff">&nbsp;
  86. <input type="button" class='np coolbg inputbut' name="b7" value="反选" style="width:40" onClick="ReSel();">
  87. <input type="button" class='np coolbg inputbut' name="b7" value="删除" style="width:40" onClick="DelSel();">
  88.      </td>
  89. </tr>
  90. <tr>
  91. <td height="36" colspan="7" align="center" bgcolor="#F9FCEF">
  92. {dede:pagelist listitem="info,index,end,pre,next,pageno" listsize="5"/}
  93. </td>
  94. </tr>
  95. </table>
  96. </body>
  97. </html>