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

126 lines
5.5KB

  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/css/bootstrap.min.css">
  8. <link rel="stylesheet" href="../static/web/font/css/font-awesome.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="mt-3 mb-3" style="border:1px solid #dee2e6">
  60. <tr>
  61. <td height="36" bgcolor="#f8f8f8">
  62. <table cellpadding="0" cellspacing="0">
  63. <tr>
  64. <td width="280" align="center"><input type="text" name="buyid" id="buyid" placeholder="请输入订单号" style="width:260px"></td>
  65. <td><button type="submit" class="btn btn-success btn-sm">搜索</button></td>
  66. </tr>
  67. </table>
  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">
  75. <table width="98%" cellspacing="0" cellpadding="0" class="table table-borderless">
  76. <tr>
  77. <td width="30%">会员消费管理</td>
  78. <td width="45%" align="right">
  79. <button type="button" onClick="location='member_operations.php?sta=0';" class="btn btn-success btn-sm">未付款</button>
  80. <button type="button" onClick="location='member_operations.php?sta=1';" class="btn btn-success btn-sm">已付款</button>
  81. <button type="button" onClick="location='member_operations.php?sta=2';" class="btn btn-success btn-sm">已完成</button>
  82. <button type="button" onClick="location='member_operations.php';" class="btn btn-success btn-sm">全部</button>
  83. </td>
  84. <td width="25%" align="right"><button type="button" onClick="location='member_main.php';" class="btn btn-success btn-sm">会员管理</button></td>
  85. </tr>
  86. </table>
  87. </td>
  88. </tr>
  89. <tr bgcolor="#F8FCF1">
  90. <td width="8%" align="center">选择</td>
  91. <td width="20%" align="center">订单号</td>
  92. <td align="center">产品名称</td>
  93. <td width="10%" align="center">产品类型</td>
  94. <td width="22%" align="center">生成日期</td>
  95. <td width="8%" align="center">金额</td>
  96. <td width="8%" align="center">状态</td>
  97. <td width="10%" align="center">会员</td>
  98. </tr>
  99. <form name="form1">
  100. {dede:datalist empty='<tr><td colspan="8"><center>暂无内容</center></td></tr>'}
  101. <tr align="center" onmousemove="javascript:this.bgColor='#F8FCF1';" onmouseout="javascript:this.bgColor='#ffffff';">
  102. <td align="center"><input type="checkbox" name="aids" value="<?php echo $fields['aid']?>"></td>
  103. <td align="center"><?php echo $fields['buyid']?></td>
  104. <td align="center"><?php echo $fields['pname'].'('.$fields['oldinfo'].')'; ?></td>
  105. <td align="center"><?php echo GetPType($fields['product'])?></td>
  106. <td align="center"><?php echo GetDateTimeMk($fields['mtime'])?>({dede:field.mtime function="floorTime(time()-@me,@me)"/})</td>
  107. <td align="center"><?php echo $fields['money']?></td>
  108. <td align="center"><?php echo GetSta($fields['sta'])?></td>
  109. <td align="center"><?php echo GetMemberID($fields['mid'])?></td>
  110. </tr>
  111. {/dede:datalist}
  112. </form>
  113. <tr>
  114. <td colspan="8">
  115. <button type="button" onClick="ReSel();" class="btn btn-success btn-sm">反选</button>
  116. <button type="button" onClick="DelSel();" class="btn btn-danger btn-sm">删除</button>
  117. <button type="button" onClick="UpSel();" class="btn btn-success btn-sm">设为已付款状态</button>
  118. <button type="button" onClick="OkSel();" class="btn btn-success btn-sm">设为已完成状态</button>
  119. </td>
  120. </tr>
  121. <tr>
  122. <td height="36" bgcolor="#f8f8f8" colspan="8" align="center">{dede:pagelist listitem='info,index,end,pre,next,pageno' listsize='6'/}</td>
  123. </tr>
  124. </table>
  125. </body>
  126. </html>