国内流行的内容管理系统(CMS)多端全媒体解决方案 https://www.dedebiz.com
Nie możesz wybrać więcej, niż 25 tematów Tematy muszą się zaczynać od litery lub cyfry, mogą zawierać myślniki ('-') i mogą mieć do 35 znaków.

member_operations.htm 4.2KB

3 lat temu
1 rok temu
1 rok temu
1 rok temu
1 rok temu
123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121
  1. <!DOCTYPE html>
  2. <html>
  3. <head>
  4. <meta charset="utf-8">
  5. <meta name="viewport" content="width=device-width,initial-scale=1,shrink-to-fit=no">
  6. <title>会员消费记录</title>
  7. <link rel="stylesheet" href="/static/web/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. </head>
  11. <body>
  12. <ol class="breadcrumb">
  13. <li class="breadcrumb-item"><a href="index_body.php">后台面板</a></li>
  14. <li class="breadcrumb-item active">会员消费记录</li>
  15. </ol>
  16. <div class="card shadow-sm mb-3">
  17. <div class="card-body">
  18. <form name="form2" method="get" action="member_operations.php">
  19. <input type="text" name="buyid" id="buyid" placeholder="请输入订单号" class="admin-input-lg">
  20. <button type="submit"class="btn btn-success btn-sm">搜索</button>
  21. <a href="member_operations.php?sta=0" class="btn btn-success btn-sm">未付款</a>
  22. <a href="member_operations.php?sta=1" class="btn btn-success btn-sm">已付款</a>
  23. <a href="member_operations.php?sta=2" class="btn btn-success btn-sm">已完成</a>
  24. <a href="member_operations.php" class="btn btn-success btn-sm">全部</a>
  25. </form>
  26. </div>
  27. </div>
  28. <div class="card shadow-sm">
  29. <div class="card-header">会员消费记录</div>
  30. <div class="card-body">
  31. <form name="form1">
  32. <div class="table-responsive">
  33. <table class="table table-borderless table-hover">
  34. <thead>
  35. <tr>
  36. <td scope="col">选择</td>
  37. <td scope="col">订单号</td>
  38. <td scope="col">产品名称</td>
  39. <td scope="col">产品类型</td>
  40. <td scope="col">生成日期</td>
  41. <td scope="col">金额</td>
  42. <td scope="col">状态</td>
  43. <td scope="col">会员</td>
  44. </tr>
  45. </thead>
  46. <tbody>
  47. {dede:datalist}
  48. <tr>
  49. <td><input type="checkbox" name="aids" value="<?php echo $fields['aid']?>"></td>
  50. <td><?php echo $fields['buyid']?></td>
  51. <td><?php echo $fields['pname'].'('.$fields['oldinfo'].')';?></td>
  52. <td><?php echo GetPType($fields['product'])?></td>
  53. <td><?php echo GetDateTimeMk($fields['mtime'])?>({dede:field.mtime function="floorTime(time()-@me,@me)"/})</td>
  54. <td><?php echo $fields['money']?></td>
  55. <td><?php echo GetSta($fields['sta'])?></td>
  56. <td><?php echo GetMemberID($fields['mid'])?></td>
  57. </tr>
  58. {/dede:datalist}
  59. <tr>
  60. <td colspan="8">
  61. <a href="javascript:ReSel();" class="btn btn-success btn-sm">全选</a>
  62. <a href="javascript:UpSel();" class="btn btn-success btn-sm">已付款</a>
  63. <a href="javascript:OkSel();" class="btn btn-success btn-sm">已完成</a>
  64. <a href="javascript:DelSel();" class="btn btn-danger btn-sm">删除</a>
  65. </td>
  66. </tr>
  67. </tbody>
  68. </table>
  69. </div>
  70. </form>
  71. {dede:pagelist listsize='6'/}
  72. </div>
  73. </div>
  74. <script>
  75. //获得选中项
  76. function getCheckboxItem() {
  77. var allSel = '';
  78. if (document.form1.aids.value) return document.form1.aids.value;
  79. for (i = 0; i < document.form1.aids.length; i++) {
  80. if (document.form1.aids[i].checked) {
  81. if (allSel == "")
  82. allSel = document.form1.aids[i].value;
  83. else
  84. allSel = allSel + "`" + document.form1.aids[i].value;
  85. }
  86. }
  87. return allSel;
  88. }
  89. function ReSel() {
  90. for (i = 0; i < document.form1.aids.length; i++) {
  91. if (document.form1.aids[i].checked) document.form1.aids[i].checked = false;
  92. else document.form1.aids[i].checked = true;
  93. }
  94. }
  95. function DelSel() {
  96. var nid = getCheckboxItem();
  97. if (nid == "") {
  98. alert("请选择要删除消费记录");
  99. return;
  100. }
  101. location.href = "member_do.php?dopost=deoperations&nid=" + nid;
  102. }
  103. function UpSel() {
  104. var nid = getCheckboxItem();
  105. if (nid == "") {
  106. alert("请选择要修改消费记录");
  107. return;
  108. }
  109. location.href = "member_do.php?dopost=upoperations&nid=" + nid;
  110. }
  111. function OkSel() {
  112. var nid = getCheckboxItem();
  113. if (nid == "") {
  114. alert("请选择要修改消费记录");
  115. return;
  116. }
  117. location.href = "member_do.php?dopost=okoperations&nid=" + nid;
  118. }
  119. </script>
  120. </body>
  121. </html>