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

113 lines
4.9KB

  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/font/css/font-awesome.min.css">
  8. <link rel="stylesheet" href="../static/web/css/bootstrap.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 = "member_do.php?dopost=deoperations&nid=" + nid;
  38. }
  39. function UpSel() {
  40. var nid = getCheckboxItem();
  41. if (nid == "") {
  42. alert("请选择要修改的业务记录");
  43. return;
  44. }
  45. location.href = "member_do.php?dopost=upoperations&nid=" + nid;
  46. }
  47. function OkSel() {
  48. var nid = getCheckboxItem();
  49. if (nid == "") {
  50. alert("请选择要修改的业务记录");
  51. return;
  52. }
  53. location.href = "member_do.php?dopost=okoperations&nid=" + nid;
  54. }
  55. </script>
  56. </head>
  57. <body>
  58. <form name="form2" method="get" action="member_operations.php">
  59. <table width="98%" cellpadding="1" cellspacing="1" align="center" class="table maintable my-3">
  60. <tr bgcolor="#f5f5f5">
  61. <td width="280" align="center"><input type="text" name="buyid" id="buyid" placeholder="请输入订单号" class="biz-input-md"></td>
  62. <td>
  63. <button type="submit" class="btn btn-success btn-sm">搜索</button>
  64. <button type="button" onClick="location='member_operations.php?sta=0';" class="btn btn-success btn-sm">未付款</button>
  65. <button type="button" onClick="location='member_operations.php?sta=1';" class="btn btn-success btn-sm">已付款</button>
  66. <button type="button" onClick="location='member_operations.php?sta=2';" class="btn btn-success btn-sm">已完成</button>
  67. <button type="button" onClick="location='member_operations.php';" class="btn btn-success btn-sm">全部</button>
  68. </td>
  69. </tr>
  70. </table>
  71. </form>
  72. <table width="98%" cellpadding="1" cellspacing="1" align="center" class="table maintable mb-3">
  73. <tr>
  74. <td bgcolor="f8f8f8" colspan="8">会员消费管理</td>
  75. </tr>
  76. <tr bgcolor="#fbfce2">
  77. <td width="6%" align="center">选择</td>
  78. <td width="20%" align="center">订单号</td>
  79. <td align="center">产品名称</td>
  80. <td width="10%" align="center">产品类型</td>
  81. <td width="22%" align="center">生成日期</td>
  82. <td width="6%" align="center">金额</td>
  83. <td width="6%" align="center">状态</td>
  84. <td align="center">会员</td>
  85. </tr>
  86. <form name="form1">
  87. {dede:datalist empty='<tr><td colspan="8"><center>暂无内容</center></td></tr>'}
  88. <tr align="center" onmousemove="javascript:this.bgColor='#fbfce2';" onmouseout="javascript:this.bgColor='#ffffff';">
  89. <td align="center"><input type="checkbox" name="aids" value="<?php echo $fields['aid']?>"></td>
  90. <td align="center"><?php echo $fields['buyid']?></td>
  91. <td align="center"><?php echo $fields['pname'].'('.$fields['oldinfo'].')';?></td>
  92. <td align="center"><?php echo GetPType($fields['product'])?></td>
  93. <td align="center"><?php echo GetDateTimeMk($fields['mtime'])?>({dede:field.mtime function="floorTime(time()-@me,@me)"/})</td>
  94. <td align="center"><?php echo $fields['money']?></td>
  95. <td align="center"><?php echo GetSta($fields['sta'])?></td>
  96. <td align="center"><?php echo GetMemberID($fields['mid'])?></td>
  97. </tr>
  98. {/dede:datalist}
  99. </form>
  100. <tr>
  101. <td colspan="8">
  102. <button type="button" onClick="ReSel();" class="btn btn-success btn-sm">反选</button>
  103. <button type="button" onClick="DelSel();" class="btn btn-danger btn-sm">删除</button>
  104. <button type="button" onClick="UpSel();" class="btn btn-success btn-sm">设为已付款状态</button>
  105. <button type="button" onClick="OkSel();" class="btn btn-success btn-sm">设为已完成状态</button>
  106. </td>
  107. </tr>
  108. <tr>
  109. <td bgcolor="#f5f5f5" class="py-2" colspan="8" align="center">{dede:pagelist listitem='info,index,end,pre,next,pageno' listsize='6'/}</td>
  110. </tr>
  111. </table>
  112. </body>
  113. </html>