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

176 lines
7.5KB

  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 rel="stylesheet" href="../static/web/css/bootstrap.min.css">
  7. <link rel="stylesheet" href="../static/web/font/css/font-awesome.min.css">
  8. <link rel="stylesheet" href="../static/web/css/admin.css">
  9. <script src="../static/web/js/jquery.min.js" language="javascript" type="text/javascript"></script>
  10. <script src="js/main.js" language="javascript"></script>
  11. <script language="javascript">
  12. //获得选中项
  13. function getCheckboxItem() {
  14. var allSel = "";
  15. if (document.form1.aids.value) return document.form1.aids.value;
  16. for (i = 0; i < document.form1.aids.length; i++) {
  17. if (document.form1.aids[i].checked) {
  18. if (allSel == "")
  19. allSel = document.form1.aids[i].value;
  20. else
  21. allSel = allSel + "`" + document.form1.aids[i].value;
  22. }
  23. }
  24. return allSel;
  25. }
  26. function ReSel() {
  27. for (i = 0; i < document.form1.aids.length; i++) {
  28. if (document.form1.aids[i].checked) document.form1.aids[i].checked = false;
  29. else document.form1.aids[i].checked = true;
  30. }
  31. }
  32. function DelSel() {
  33. var nid = getCheckboxItem();
  34. if (nid == "") {
  35. alert("请选择要删除的业务记录");
  36. return;
  37. }
  38. location.href = "shops_operations.php?dopost=delete&nid=" + nid;
  39. }
  40. function UpSel() {
  41. var nid = getCheckboxItem();
  42. if (nid == "") {
  43. alert("请选择要修改的订单记录");
  44. return;
  45. }
  46. location.href = "shops_operations.php?dopost=up&nid=" + nid;
  47. }
  48. function OkSel() {
  49. var nid = getCheckboxItem();
  50. if (nid == "") {
  51. alert("请选择要修改的订单记录");
  52. return;
  53. }
  54. location.href = "shops_operations.php?dopost=ok&nid=" + nid;
  55. }
  56. function PushSel() {
  57. var nid = getCheckboxItem();
  58. if (nid == "") {
  59. alert("请选择要修改的订单记录");
  60. return;
  61. }
  62. location.href = "shops_operations.php?dopost=push&nid=" + nid;
  63. }
  64. function OpenMyWinN(surl, w, h) {
  65. var pos = GetWinPos(w,h);
  66. window.open(surl, "popUpMyWinN", "scrollbars=yes,resizable=yes,statebar=no,width=" + w + ",height=" + h + ",left="+pos.left+", top="+pos.top);
  67. }
  68. </script>
  69. </head>
  70. <body>
  71. <form name="form2" method="get" action="shops_operations.php">
  72. <table width="98%" cellpadding="1" cellspacing="1" align="center" class="table maintable mt-3 mb-3">
  73. <tr>
  74. <td height="36" bgcolor="#f8f8f8">
  75. <table cellpadding="0" cellspacing="0">
  76. <tr>
  77. <td style="border-top:0">输入订单号:</td>
  78. <td style="border-top:0"><input name="buyid" type="text" id="buyid" style="margin-right:10px;width:260px"></td>
  79. <td style="border-top:0"><button type="submit" class="btn btn-success btn-sm">搜索</button></td>
  80. </tr>
  81. </table>
  82. </td>
  83. </tr>
  84. </table>
  85. </form>
  86. <table width="98%" cellpadding="1" cellspacing="1" align="center" class="table maintable">
  87. <tr>
  88. <td height="26" colspan="11" background="../static/web/img/tbg.gif">
  89. <table width="98%" cellspacing="0" cellpadding="0" class="table table-borderless">
  90. <tr>
  91. <td width="30%" style="padding-left:10px">订单列表:</td>
  92. <td width="45%" align="right" style="padding-top:10px">
  93. <button type="button" onClick="location='shops_operations.php?sta=0'" class="btn btn-success btn-sm">未付款</button>
  94. <button type="button" onClick="location='shops_operations.php?sta=1';" class="btn btn-success btn-sm">已付款</button>
  95. <button type="button" onClick="location='shops_operations.php?sta=2';" class="btn btn-success btn-sm">已发货</button>
  96. <button type="button" onClick="location='shops_operations.php?sta=4';" class="btn btn-success btn-sm">已完成</button>
  97. <button type="button" onClick="location='shops_operations.php';" class="btn btn-success btn-sm">全部</button>
  98. </td>
  99. <td width="25%" align="right" style="padding-top:10px">
  100. <button type="button" onClick="location='shops_operations.php';" class="btn btn-success btn-sm">订单管理</button>
  101. </td>
  102. </tr>
  103. </table>
  104. </td>
  105. </tr>
  106. <tr bgcolor="#F8FCF1">
  107. <td width="8%" align="center">选择</td>
  108. <td width="25%" align="center">订单号</td>
  109. <td align="center">收货人</td>
  110. <td align="center">数量</td>
  111. <td width="22%" align="center">生成日期</td>
  112. <td align="center">订单价</td>
  113. <td align="center">配送费</td>
  114. <td align="center">总计</td>
  115. <td align="center">支付方式</td>
  116. <td align="center">状态</td>
  117. <td align="center">用户</td>
  118. </tr>
  119. <form name="form1">
  120. {dede:datalist empty='<tr><td colspan="11"><center>暂无内容</center></td></tr>'}
  121. <tr height="26" align="center" onmousemove="javascript:this.bgColor='#FCFDEE';" onmouseout="javascript:this.bgColor='#ffffff';">
  122. <td align="center">
  123. <input type='checkbox' name='aids' value='<?php echo $fields['oid']?>' class='np'></td>
  124. <td align="center">
  125. <?php echo $fields['oid']; ?>
  126. </td>
  127. <td align="center">
  128. <a href="javascript:OpenMyWinN('shops_operations_userinfo.php?oid=<?php echo $fields['oid']?>',800,600);"><?php echo $fields['consignee']?></a>
  129. </td>
  130. <td align="center">
  131. <?php echo $fields['cartcount']?>
  132. <a class="btn btn-success btn-sm" href="javascript:OpenMyWinN('shops_operations_cart.php?oid=<?php echo $fields['oid']?>',800,600);">详情</a>
  133. </td>
  134. <td align="center">
  135. <?php echo GetDateTimeMk($fields['stime'])?>
  136. (<span>{dede:field.stime function="floorTime(time()-@me,@me)"/}</span>)
  137. </td>
  138. <td align="center">
  139. <?php echo $fields['price']?>
  140. </td>
  141. <td align="center">
  142. <?php echo $fields['dprice']?>
  143. </td>
  144. <td align="center">
  145. <?php echo $fields['priceCount']?>
  146. </td>
  147. <td align="center">
  148. <?php echo GetsType($fields['paytype'])?>
  149. </td>
  150. <td align="center">
  151. <?php echo GetSta($fields['state'])?>
  152. </td>
  153. <td align="center">
  154. <?php echo GetMemberID($fields['userid'])?>
  155. </td>
  156. </tr>
  157. {/dede:datalist}
  158. </form>
  159. <tr>
  160. <td height="26" colspan="11" bgcolor="#FCFDF7" style="padding-top:10px">&nbsp;
  161. <button type="button" onClick="ReSel();" class="btn btn-success btn-sm">反选</button>
  162. <button type="button" onClick="DelSel();" class="btn btn-success btn-sm">删除</button>
  163. <button type="button" onClick="UpSel();" class="btn btn-success btn-sm">设为已付款状态</button>
  164. <button type="button" onClick="PushSel();" class="btn btn-success btn-sm">设为已发货状态</button>
  165. <button type="button" onClick="OkSel();" class="btn btn-success btn-sm">设为已完成状态</button>
  166. </td>
  167. </tr>
  168. <tr>
  169. <td height="36" colspan="11" bgcolor="#f8f8f8" align="center">
  170. {dede:pagelist listitem="info,index,end,pre,next,pageno" listsize="5"/}
  171. </td>
  172. </tr>
  173. </table>
  174. </body>
  175. </html>