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

179 lines
7.1KB

  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 = "shops_operations.php?dopost=delete&nid="+nid;
  41. }
  42. function UpSel()
  43. {
  44. var nid = getCheckboxItem();
  45. if(nid==""){
  46. alert("请选择要更改的订单记录!\r\n");
  47. return ;
  48. }
  49. location.href = "shops_operations.php?dopost=up&nid="+nid;
  50. }
  51. function OkSel()
  52. {
  53. var nid = getCheckboxItem();
  54. if(nid==""){
  55. alert("请选择要更改的订单记录!\r\n");
  56. return ;
  57. }
  58. location.href = "shops_operations.php?dopost=ok&nid="+nid;
  59. }
  60. function PushSel(){
  61. var nid = getCheckboxItem();
  62. if(nid==""){
  63. alert("请选择要更改的订单记录!\r\n");
  64. return ;
  65. }
  66. location.href = "shops_operations.php?dopost=push&nid="+nid;
  67. }
  68. function OpenMyWinN(surl,w,h){
  69. window.open(surl, "popUpMyWinN", "scrollbars=yes,resizable=yes,statebar=no,width="+w+",height="+h+",left=200, top=100");
  70. }
  71. </script>
  72. </head>
  73. <body background='images/allbg.gif' leftmargin='8' topmargin='8'>
  74. <table width="98%" border="0" cellpadding="1" cellspacing="1" align="center" class="tbtitle" style="background:#cbd8ac;margin-bottom:5px">
  75. <tr>
  76. <td height="30" align="center" bgcolor="#FAFCEF">
  77. <form name="form2" method="get" action="shops_operations.php">
  78. <table border="0" cellspacing="0" cellpadding="0">
  79. <tr>
  80. <td>输入订单号:</td>
  81. <td>
  82. <input name="buyid" type="text" id="buyid"></td>
  83. <td width="100" align="center"> <input name="imageField" type="submit" class='np coolbg' value="搜索">
  84. </td>
  85. </tr>
  86. </table>
  87. </form></td>
  88. </tr>
  89. </table>
  90. <table width="98%" border="0" cellpadding="1" cellspacing="1" align="center" class="tbtitle" style="background:#cfcfcf;">
  91. <tr>
  92. <td height="28" colspan="11" bgcolor="#EDF9D5" background='images/tbg.gif'>
  93. <table width="98%" border="0" cellspacing="0" cellpadding="0">
  94. <tr>
  95. <td width="30%" style="padding-left:10px;"><strong>订单列表:</strong> </td>
  96. <td width="45%" align="right" style="padding-top:4px">
  97. <input type="button" name="ss13" value="未付款" style="width:50px;margin-right:6px" onClick="location='shops_operations.php?sta=0';" class='np coolbg'/>
  98. <input type="button" name="ss14" value="已付款" style="width:50px;margin-right:6px" onClick="location='shops_operations.php?sta=1';" class='np coolbg'/>
  99. <input type="button" name="ss142" value="已发货" style="width:50px;margin-right:6px" onClick="location='shops_operations.php?sta=2';" class='np coolbg'/>
  100. <input type="button" name="ss142" value="已完成" style="width:50px;margin-right:6px" onClick="location='shops_operations.php?sta=4';" class='np coolbg'/>
  101. <input type="button" name="ss16" value="全部" style="width:40px;margin-right:6px" onClick="location='shops_operations.php';" class='np coolbg'/>
  102. </td>
  103. <td width="25%" align="right" style="padding-top:4px">
  104. <input type="button" name="ss12" value="订单管理" style="width:90px;margin-right:6px" onClick="location='shops_operations.php';" class='np coolbg'/>
  105. </td>
  106. </tr>
  107. </table></td>
  108. </tr>
  109. <tr bgcolor="#FBFCE2">
  110. <td width="8%" align="center">选择</td>
  111. <td width="25%" align="center">订单号</td>
  112. <td align="center">收货人</td>
  113. <td align="center">数量</td>
  114. <td width="22%" align="center">生成日期</td>
  115. <td align="center">订单价</td>
  116. <td align="center">配送费</td>
  117. <td align="center">总计</td>
  118. <td align="center">支付方式</td>
  119. <td align="center">状态</td>
  120. <td align="center">用户</td>
  121. </tr>
  122. <form name="form1">
  123. {dede:datalist}
  124. <tr bgcolor="#FFFFFF" height="26" align="center" onMouseMove="javascript:this.bgColor='#FCFDEE';" onMouseOut="javascript:this.bgColor='#FFFFFF';">
  125. <td align="center">
  126. <input type='checkbox' name='aids' value='<?php echo $fields['oid']?>' class='np'></td>
  127. <td align="center">
  128. <?php echo $fields['oid'];?>
  129. </td>
  130. <td align="center">
  131. <a href="javascript:OpenMyWinN('shops_operations_userinfo.php?oid=<?php echo $fields['oid']?>',500,350);" ><?php echo $fields['consignee']?></a>
  132. </td>
  133. <td align="center">
  134. <?php echo $fields['cartcount']?>
  135. <a href="javascript:OpenMyWinN('shops_operations_cart.php?oid=<?php echo $fields['oid']?>',680,450);" >[详情]</a>
  136. </td>
  137. <td align="center">
  138. <?php echo GetDateTimeMk($fields['stime'])?>
  139. (<font color="#FF0000">{dede:field.stime function="floorTime(time()-@me,@me)"/}</font>)
  140. </td>
  141. <td align="center">
  142. <?php echo $fields['price']?>
  143. </td>
  144. <td align="center">
  145. <?php echo $fields['dprice']?>
  146. </td>
  147. <td align="center">
  148. <?php echo $fields['priceCount']?>
  149. </td>
  150. <td align="center">
  151. <?php echo GetsType($fields['paytype'])?>
  152. </td>
  153. <td align="center">
  154. <?php echo GetSta($fields['state'])?>
  155. </td>
  156. <td align="center">
  157. <?php echo GetMemberID($fields['userid'])?>
  158. </td>
  159. </tr>
  160. {/dede:datalist}
  161. </form>
  162. <tr>
  163. <td height="28" colspan="11" bgcolor="#FCFDF7" style="padding-top:4px;">&nbsp;
  164. <input type="button" name="b7" value="反选" class='np coolbg' style="width:40" onClick="ReSel();">
  165. <input type="button" name="b" value="删除" style="width:40" onClick="DelSel();" class='np coolbg' />
  166. <input type="button" name="b5" value="设为已付款状态" class='np coolbg' style="width:100" onClick="UpSel();">
  167. <input type="button" name="b9" value="设为已发货状态" class='np coolbg' style="width:100" onClick="PushSel();">
  168. <input type="button" name="b9" value="设为已完成状态" class='np coolbg' style="width:100" onClick="OkSel();">
  169. </td>
  170. </tr>
  171. <tr>
  172. <td height="36" colspan="11" bgcolor="#F9FCEF" align="center">
  173. {dede:pagelist listitem="info,index,end,pre,next,pageno" listsize="5"/}
  174. </td>
  175. </tr>
  176. </table>
  177. </body>
  178. </html>