ListDd.php 18 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573574575576577578579580581582583584585586587588589590591592593594595596597598599600601602603604605606607608609610611612613614615616617
  1. <?php
  2. define('EmpireCMSAdmin','1');
  3. require("../../class/connect.php");
  4. require("../../class/db_sql.php");
  5. require("../../class/functions.php");
  6. require("../../data/dbcache/class.php");
  7. require "../".LoadLang("pub/fun.php");
  8. require("class/hShopSysFun.php");
  9. $link=db_connect();
  10. $empire=new mysqlquery();
  11. $editor=1;
  12. //验证用户
  13. $lur=is_login();
  14. $logininid=$lur['userid'];
  15. $loginin=$lur['username'];
  16. $loginrnd=$lur['rnd'];
  17. $loginlevel=$lur['groupid'];
  18. $loginadminstyleid=$lur['adminstyleid'];
  19. //ehash
  20. $ecms_hashur=hReturnEcmsHashStrAll();
  21. //验证权限
  22. CheckLevel($logininid,$loginin,$classid,"shopdd");
  23. //订单设定
  24. function SetShopDd($add,$userid,$username){
  25. global $empire,$dbtbpre;
  26. //验证权限
  27. CheckLevel($userid,$username,$classid,"shopdd");
  28. $ddid=$add['ddid'];
  29. $doing=$add['doing'];
  30. $checked=(int)$add['checked'];
  31. $haveprice=(int)$add['haveprice'];
  32. $outproduct=(int)$add['outproduct'];
  33. $count=count($ddid);
  34. if(empty($count))
  35. {
  36. printerror("NotSetDdid","history.go(-1)");
  37. }
  38. $shoppr=ShopSys_hReturnSet();
  39. $add='';
  40. $ids='';
  41. $dh='';
  42. for($i=0;$i<$count;$i++)
  43. {
  44. $ddid[$i]=(int)$ddid[$i];
  45. $ids.=$dh.$ddid[$i];
  46. $dh=',';
  47. }
  48. $add='ddid in ('.$ids.')';
  49. $mess='ErrorUrl';
  50. $log='';
  51. if($doing==1) //订单状态
  52. {
  53. $sql=$empire->query("update {$dbtbpre}enewsshopdd set checked='$checked' where ".$add);
  54. $mess="SetCheckedSuccess";
  55. $log="doing=$doing&do=SetChecked&checked=$checked<br>ddid=$ids";
  56. //订单日志
  57. $log_ecms='SetChecked';
  58. $log_bz='';
  59. if($checked==1)
  60. {
  61. $log_addbz='确认';
  62. }
  63. elseif($checked==2)
  64. {
  65. $log_addbz='取消';
  66. }
  67. elseif($checked==3)
  68. {
  69. $log_addbz='退货';
  70. }
  71. elseif($checked==0)
  72. {
  73. $log_addbz='未确认';
  74. }
  75. //写入订单日志
  76. if($ids)
  77. {
  78. $logsql=$empire->query("select ddid,havecutnum from {$dbtbpre}enewsshopdd where ".$add);
  79. while($logr=$empire->fetch($logsql))
  80. {
  81. ShopSys_DdInsertLog($logr['ddid'],$log_ecms,$log_bz,$log_addbz);//订单日志
  82. //库存
  83. if($shoppr['cutnumtype']==0&&$checked==2&&$logr['havecutnum'])
  84. {
  85. $ddaddr=$empire->fetch1("select buycar from {$dbtbpre}enewsshopdd_add where ddid='$logr[ddid]'");
  86. Shopsys_hCutMaxnum($logr['ddid'],$ddaddr['buycar'],$logr['havecutnum'],$shoppr,1);
  87. }
  88. }
  89. }
  90. }
  91. elseif($doing==2) //发货状态
  92. {
  93. $sql=$empire->query("update {$dbtbpre}enewsshopdd set outproduct='$outproduct' where ".$add);
  94. $mess="SetOutProductSuccess";
  95. $log="doing=$doing&do=SetOutProduct&outproduct=$outproduct<br>ddid=$ids";
  96. //订单日志
  97. $log_ecms='SetOutProduct';
  98. $log_bz='';
  99. if($outproduct==1)
  100. {
  101. $log_addbz='已发货';
  102. }
  103. elseif($outproduct==2)
  104. {
  105. $log_addbz='备货中';
  106. }
  107. elseif($outproduct==0)
  108. {
  109. $log_addbz='未发货';
  110. }
  111. //写入订单日志
  112. if($ids)
  113. {
  114. $logsql=$empire->query("select ddid from {$dbtbpre}enewsshopdd where ".$add);
  115. while($logr=$empire->fetch($logsql))
  116. {
  117. ShopSys_DdInsertLog($logr['ddid'],$log_ecms,$log_bz,$log_addbz);//订单日志
  118. }
  119. }
  120. }
  121. elseif($doing==3) //付款状态
  122. {
  123. $sql=$empire->query("update {$dbtbpre}enewsshopdd set haveprice='$haveprice' where ".$add);
  124. $mess="SetHavepriceSuccess";
  125. $log="doing=$doing&do=SetHaveprice&haveprice=$haveprice<br>ddid=$ids";
  126. //订单日志
  127. $log_ecms='SetHaveprice';
  128. $log_bz='';
  129. if($haveprice==1)
  130. {
  131. $log_addbz='已付款';
  132. }
  133. elseif($haveprice==0)
  134. {
  135. $log_addbz='未付款';
  136. }
  137. //写入订单日志
  138. if($ids)
  139. {
  140. $logsql=$empire->query("select ddid,havecutnum from {$dbtbpre}enewsshopdd where ".$add);
  141. while($logr=$empire->fetch($logsql))
  142. {
  143. ShopSys_DdInsertLog($logr['ddid'],$log_ecms,$log_bz,$log_addbz);//订单日志
  144. //库存
  145. if($shoppr['cutnumtype']==1&&$haveprice==1&&!$logr['havecutnum'])
  146. {
  147. $ddaddr=$empire->fetch1("select buycar from {$dbtbpre}enewsshopdd_add where ddid='$logr[ddid]'");
  148. Shopsys_hCutMaxnum($logr['ddid'],$ddaddr['buycar'],$logr['havecutnum'],$shoppr,0);
  149. }
  150. }
  151. }
  152. }
  153. elseif($doing==4) //删除订单
  154. {
  155. $log_ecms='DelDd';
  156. $log_bz='';
  157. $log_addbz='';
  158. //库存
  159. if($ids)
  160. {
  161. $logsql=$empire->query("select ddid,havecutnum,checked,haveprice from {$dbtbpre}enewsshopdd where ".$add." and havecutnum=1");
  162. while($logr=$empire->fetch($logsql))
  163. {
  164. if($logr['haveprice']==1)
  165. {
  166. continue;
  167. }
  168. if($logr['havecutnum'])
  169. {
  170. $ddaddr=$empire->fetch1("select buycar from {$dbtbpre}enewsshopdd_add where ddid='$logr[ddid]'");
  171. Shopsys_hCutMaxnum($logr['ddid'],$ddaddr['buycar'],$logr['havecutnum'],$shoppr,1);
  172. }
  173. }
  174. }
  175. $sql=$empire->query("delete from {$dbtbpre}enewsshopdd where ".$add);
  176. $sql2=$empire->query("delete from {$dbtbpre}enewsshopdd_add where ".$add);
  177. $sql3=$empire->query("delete from {$dbtbpre}enewsshop_ddlog where ".$add);
  178. $mess="DelDdSuccess";
  179. $log="doing=$doing&do=DelDd<br>ddid=$ids";
  180. }
  181. else
  182. {
  183. printerror("ErrorUrl","history.go(-1)");
  184. }
  185. if($sql)
  186. {
  187. //操作日志
  188. insert_dolog($log);
  189. printerror($mess,EcmsGetReturnUrl());
  190. }
  191. else
  192. {printerror("DbError","history.go(-1)");}
  193. }
  194. $enews=$_POST['enews'];
  195. if(empty($enews))
  196. {$enews=$_GET['enews'];}
  197. if($enews)
  198. {
  199. hCheckEcmsRHash();
  200. }
  201. if($enews=="SetShopDd")
  202. {
  203. SetShopDd($_POST,$logininid,$loginin);
  204. }
  205. else
  206. {}
  207. //更新库存
  208. $shoppr=ShopSys_hReturnSet();
  209. ShopSys_hTimeCutMaxnum(0,$shoppr);
  210. $search=$ecms_hashur['ehref'];
  211. $page=(int)$_GET['page'];
  212. $page=RepPIntvar($page);
  213. $start=0;
  214. $line=25;//每页显示条数
  215. $page_line=18;//每页显示链接数
  216. $offset=$page*$line;//总偏移量
  217. $totalquery="select count(*) as total from {$dbtbpre}enewsshopdd";
  218. $query="select ddid,ddno,ddtime,userid,username,outproduct,haveprice,checked,truename,psid,psname,pstotal,alltotal,payfsid,payfsname,payby,alltotalfen,fp,fptotal,pretotal from {$dbtbpre}enewsshopdd";
  219. $add='';
  220. $and=' where ';
  221. //搜索
  222. $sear=RepPostStr($_GET['sear'],1);
  223. if($sear)
  224. {
  225. $keyboard=$_GET['keyboard'];
  226. $keyboard=RepPostVar2($keyboard);
  227. if($keyboard)
  228. {
  229. $show=(int)$_GET['show'];
  230. if($show==1)//搜索订单号
  231. {
  232. $add=$and."ddno like '%$keyboard%'";
  233. }
  234. elseif($show==2)//用户名
  235. {
  236. $add=$and."username like '%$keyboard%'";
  237. }
  238. elseif($show==3)//姓名
  239. {
  240. $add=$and."truename like '%$keyboard%'";
  241. }
  242. elseif($show==4)//邮箱
  243. {
  244. $add=$and."email like '%$keyboard%'";
  245. }
  246. else//地址
  247. {
  248. $add=$and."address like '%$keyboard%'";
  249. }
  250. $and=' and ';
  251. }
  252. //订单状态
  253. $checked=(int)$_GET['checked'];
  254. if($checked==1)//已确认
  255. {
  256. $add.=$and."checked=1";
  257. $and=' and ';
  258. }
  259. elseif($checked==9)//未确认
  260. {
  261. $add.=$and."checked=0";
  262. $and=' and ';
  263. }
  264. elseif($checked==2)//取消
  265. {
  266. $add.=$and."checked=2";
  267. $and=' and ';
  268. }
  269. elseif($checked==3)//退货
  270. {
  271. $add.=$and."checked=3";
  272. $and=' and ';
  273. }
  274. //是否付款
  275. $haveprice=(int)$_GET['haveprice'];
  276. if($haveprice==1)//已付款
  277. {
  278. $add.=$and."haveprice=1";
  279. $and=' and ';
  280. }
  281. elseif($haveprice==9)//未付款
  282. {
  283. $add.=$and."haveprice=0";
  284. $and=' and ';
  285. }
  286. //是否发货
  287. $outproduct=(int)$_GET['outproduct'];
  288. if($outproduct==1)//已发货
  289. {
  290. $add.=$and."outproduct=1";
  291. $and=' and ';
  292. }
  293. elseif($outproduct==9)//未发货
  294. {
  295. $add.=$and."outproduct=0";
  296. $and=' and ';
  297. }
  298. elseif($outproduct==2)//备货中
  299. {
  300. $add.=$and."outproduct=2";
  301. $and=' and ';
  302. }
  303. //时间
  304. $starttime=RepPostVar($_GET['starttime']);
  305. $endtime=RepPostVar($_GET['endtime']);
  306. if($endtime!="")
  307. {
  308. $ostarttime=$starttime." 00:00:00";
  309. $oendtime=$endtime." 23:59:59";
  310. $add.=$and."ddtime>='$ostarttime' and ddtime<='$oendtime'";
  311. $and=' and ';
  312. }
  313. $search.="&sear=1&keyboard=$keyboard&show=$show&checked=$checked&outproduct=$outproduct&haveprice=$haveprice&starttime=$starttime&endtime=$endtime";
  314. }
  315. //排序
  316. $myorder=(int)$_GET['myorder'];
  317. if($myorder==2)//商品金额
  318. {
  319. $orderby='alltotal desc';
  320. }
  321. elseif($myorder==3)
  322. {
  323. $orderby='alltotal asc';
  324. }
  325. elseif($myorder==4)//商品点数
  326. {
  327. $orderby='alltotalfen desc';
  328. }
  329. elseif($myorder==5)
  330. {
  331. $orderby='alltotalfen asc';
  332. }
  333. elseif($myorder==6)//优惠金额
  334. {
  335. $orderby='pretotal desc';
  336. }
  337. elseif($myorder==7)
  338. {
  339. $orderby='pretotal asc';
  340. }
  341. elseif($myorder==1)//订单时间
  342. {
  343. $orderby='ddid asc';
  344. }
  345. else
  346. {
  347. $orderby='ddid desc';
  348. }
  349. $totalquery.=$add;
  350. $query.=$add;
  351. $num=$empire->gettotal($totalquery);//取得总条数
  352. $query=$query." order by ".$orderby." limit $offset,$line";
  353. $sql=$empire->query($query);
  354. $returnpage=page2($num,$line,$page_line,$start,$page,$search);
  355. ?>
  356. <!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
  357. <html>
  358. <head>
  359. <meta http-equiv="Content-Type" content="text/html; charset=utf-8">
  360. <link href="../adminstyle/<?=$loginadminstyleid?>/adminstyle.css" rel="stylesheet" type="text/css">
  361. <title>管理订单</title>
  362. <script>
  363. function CheckAll(form)
  364. {
  365. for (var i=0;i<form.elements.length;i++)
  366. {
  367. var e = form.elements[i];
  368. if (e.name != 'chkall')
  369. e.checked = form.chkall.checked;
  370. }
  371. }
  372. </script>
  373. <script type="text/javascript" src="../ecmseditor/js/jstime/WdatePicker.js"></script>
  374. </head>
  375. <body>
  376. <table width="100%" border="0" align="center" cellpadding="3" cellspacing="1">
  377. <tr>
  378. <td height="25">位置:<a href="ListDd.php<?=$ecms_hashur['whehref']?>">管理订单</a></td>
  379. </tr>
  380. </table>
  381. <form name="form1" method="get" action="ListDd.php">
  382. <table width="100%" border="0" align="center" cellpadding="3" cellspacing="1">
  383. <?=$ecms_hashur['eform']?>
  384. <tr>
  385. <td>搜索: <input name="keyboard" type="text" id="keyboard" value="<?=$keyboard?>">
  386. <select name="show" id="show">
  387. <option value="1"<?=$show==1?' selected':''?>>订单号</option>
  388. <option value="2"<?=$show==2?' selected':''?>>用户名</option>
  389. <option value="3"<?=$show==3?' selected':''?>>收货人姓名</option>
  390. <option value="4"<?=$show==4?' selected':''?>>收货人邮箱</option>
  391. <option value="5"<?=$show==5?' selected':''?>>收货人地址</option>
  392. </select>
  393. <select name="checked" id="checked">
  394. <option value="0"<?=$checked==0?' selected':''?>>不限订单状态</option>
  395. <option value="1"<?=$checked==1?' selected':''?>>已确认</option>
  396. <option value="9"<?=$checked==9?' selected':''?>>未确认</option>
  397. <option value="2"<?=$checked==2?' selected':''?>>取消</option>
  398. <option value="3"<?=$checked==3?' selected':''?>>退货</option>
  399. </select>
  400. <select name="outproduct" id="outproduct">
  401. <option value="0"<?=$outproduct==0?' selected':''?>>不限发货状态</option>
  402. <option value="1"<?=$outproduct==1?' selected':''?>>已发货</option>
  403. <option value="9"<?=$outproduct==9?' selected':''?>>未发货</option>
  404. <option value="2"<?=$outproduct==2?' selected':''?>>备货中</option>
  405. </select>
  406. <select name="haveprice" id="haveprice">
  407. <option value="0"<?=$haveprice==0?' selected':''?>>不限付款状态</option>
  408. <option value="1"<?=$haveprice==1?' selected':''?>>已付款</option>
  409. <option value="9"<?=$haveprice==9?' selected':''?>>未付款</option>
  410. </select>
  411. <select name="myorder" id="myorder">
  412. <option value="0"<?=$myorder==0?' selected':''?>>订单时间降序</option>
  413. <option value="1"<?=$myorder==1?' selected':''?>>订单时间升序</option>
  414. <option value="2"<?=$myorder==2?' selected':''?>>商品金额降序</option>
  415. <option value="3"<?=$myorder==3?' selected':''?>>商品金额升序</option>
  416. <option value="4"<?=$myorder==4?' selected':''?>>商品点数降序</option>
  417. <option value="5"<?=$myorder==5?' selected':''?>>商品点数升序</option>
  418. <option value="6"<?=$myorder==6?' selected':''?>>优惠金额升序</option>
  419. <option value="7"<?=$myorder==7?' selected':''?>>优惠金额降序</option>
  420. </select></td>
  421. </tr>
  422. <tr>
  423. <td>时间:从
  424. <input name="starttime" type="text" id="starttime2" value="<?=$starttime?>" size="15" class="Wdate" onClick="WdatePicker({skin:'default',dateFmt:'yyyy-MM-dd'})">
  425. <input name="endtime" type="text" id="endtime2" value="<?=$endtime?>" size="15" class="Wdate" onClick="WdatePicker({skin:'default',dateFmt:'yyyy-MM-dd'})">
  426. 止的订单
  427. <input type="submit" name="Submit6" value="搜索"> <input name="sear" type="hidden" id="sear2" value="1"></td>
  428. </tr>
  429. </table>
  430. </form>
  431. <table width="100%" border="0" align="center" cellpadding="3" cellspacing="1" class=tableborder>
  432. <form name="listdd" method="post" action="ListDd.php" onsubmit="return confirm('确认要操作?');">
  433. <?=$ecms_hashur['form']?>
  434. <input type=hidden name=enews value=SetShopDd>
  435. <input type=hidden name=doing value=0>
  436. <tr class=header>
  437. <td width="5%" height="23"> <div align="center">选择</div></td>
  438. <td width="19%"><div align="center">编号(点击查看)</div></td>
  439. <td width="21%"><div align="center">订购时间</div></td>
  440. <td width="13%"><div align="center">订购者</div></td>
  441. <td width="11%"><div align="center">总金额</div></td>
  442. <td width="12%"><div align="center">支付方式</div></td>
  443. <td width="19%"><div align="center">状态</div></td>
  444. </tr>
  445. <?
  446. while($r=$empire->fetch($sql))
  447. {
  448. if(empty($r[userid]))//非会员
  449. {
  450. $username="<font color=cccccc>".$r[truename]."</font>";
  451. }
  452. else
  453. {
  454. $username="<a href='../member/AddMember.php?enews=EditMember&userid=".$r[userid].$ecms_hashur['ehref']."' target=_blank>".$r[username]."</a>";
  455. }
  456. //点数购买
  457. $total=0;
  458. if($r[payby]==1)
  459. {
  460. $total=$r[alltotalfen]+$r[pstotal];
  461. $mytotal="<a href='#ecms' title='商品额(".$r[alltotalfen].")+运费(".$r[pstotal].")'>".$total." 点</a>";
  462. }
  463. else
  464. {
  465. //发票
  466. $fpa='';
  467. $pre='';
  468. if($r[fp])
  469. {
  470. $fpa="+发票费(".$r[fptotal].")";
  471. }
  472. //优惠
  473. if($r['pretotal'])
  474. {
  475. $pre="-优惠(".$r[pretotal].")";
  476. }
  477. $total=$r[alltotal]+$r[pstotal]+$r[fptotal]-$r[pretotal];
  478. $mytotal="<a href='#ecms' title='商品额(".$r[alltotal].")+运费(".$r[pstotal].")".$fpa.$pre."'>".$total." 元</a>";
  479. }
  480. //支付方式
  481. if($r[payby]==1)
  482. {
  483. $payfsname=$r[payfsname]."<br>(点数购买)";
  484. }
  485. elseif($r[payby]==2)
  486. {
  487. $payfsname=$r[payfsname]."<br>(余额购买)";
  488. }
  489. else
  490. {
  491. $payfsname=$r[payfsname];
  492. }
  493. //订单状态
  494. if($r['checked']==1)
  495. {
  496. $ch="已确认";
  497. }
  498. elseif($r['checked']==2)
  499. {
  500. $ch="取消";
  501. }
  502. elseif($r['checked']==3)
  503. {
  504. $ch="退货";
  505. }
  506. else
  507. {
  508. $ch="<font color=red>未确认</font>";
  509. }
  510. //发货状态
  511. if($r['outproduct']==1)
  512. {
  513. $ou="已发货";
  514. }
  515. elseif($r['outproduct']==2)
  516. {
  517. $ou="备货中";
  518. }
  519. else
  520. {
  521. $ou="<font color=red>未发货</font>";
  522. }
  523. //付款状态
  524. if($r['haveprice']==1)
  525. {
  526. $ha="已付款";
  527. }
  528. else
  529. {
  530. $ha="<font color=red>未付款</font>";
  531. }
  532. ?>
  533. <tr bgcolor="#FFFFFF" onmouseout="this.style.backgroundColor='#ffffff'" onmouseover="this.style.backgroundColor='#C3EFFF'">
  534. <td height="25"> <div align="center">
  535. <input name="ddid[]" type="checkbox" id="ddid[]" value="<?=$r[ddid]?>">
  536. </div></td>
  537. <td> <div align="center"><a href="#ecms" onclick="window.open('ShowDd.php?ddid=<?=$r[ddid]?><?=$ecms_hashur['ehref']?>','','width=700,height=600,scrollbars=yes,resizable=yes');">
  538. <?=$r[ddno]?>
  539. </a></div></td>
  540. <td> <div align="center">
  541. <?=$r[ddtime]?>
  542. </div></td>
  543. <td> <div align="center">
  544. <?=$username?>
  545. </div></td>
  546. <td> <div align="center">
  547. <?=$mytotal?>
  548. </div></td>
  549. <td><div align="center">
  550. <?=$payfsname?>
  551. </div></td>
  552. <td> <div align="center"><strong><?=$ha?></strong>/<strong><?=$ou?></strong>/<strong><?=$ch?></strong></div></td>
  553. </tr>
  554. <?
  555. }
  556. ?>
  557. <tr bgcolor="#FFFFFF">
  558. <td> <div align="center">
  559. <input type=checkbox name=chkall value=on onClick='CheckAll(this.form)'>
  560. </div></td>
  561. <td colspan="6"><select name="checked" id="checked">
  562. <option value="1">确认</option>
  563. <option value="2">取消</option>
  564. <option value="3">退货</option>
  565. <option value="0">未确认</option>
  566. </select>
  567. <input type="submit" name="Submit" value="设置订单状态" onClick="document.listdd.doing.value='1';document.listdd.enews.value='SetShopDd';document.listdd.action='ListDd.php';">
  568. &nbsp;
  569. <select name="outproduct" id="outproduct">
  570. <option value="1">已发货</option>
  571. <option value="2">备货中</option>
  572. <option value="0">未发货</option>
  573. </select>
  574. <input type="submit" name="Submit2" value="设置发货状态" onClick="document.listdd.doing.value='2';document.listdd.enews.value='SetShopDd';document.listdd.action='ListDd.php';">
  575. &nbsp;
  576. <select name="haveprice" id="haveprice">
  577. <option value="1">已付款</option>
  578. <option value="0">未付款</option>
  579. </select>
  580. <input type="submit" name="Submit3" value="设置付款状态" onClick="document.listdd.doing.value='3';document.listdd.enews.value='SetShopDd';document.listdd.action='ListDd.php';">
  581. &nbsp;
  582. <select name="cutmaxnum" id="cutmaxnum">
  583. <option value="1">还原库存</option>
  584. <option value="0">减少库存</option>
  585. </select>
  586. <input type="submit" name="Submit32" value="设置库存" onClick="document.listdd.doing.value='5';document.listdd.enews.value='DoCutMaxnum';document.listdd.action='ecmsshop.php';">
  587. &nbsp;
  588. <input type="submit" name="Submit5" value="删除订单" onClick="document.listdd.doing.value='4';document.listdd.enews.value='SetShopDd';document.listdd.action='ListDd.php';">
  589. </td>
  590. </tr>
  591. <tr bgcolor="#FFFFFF">
  592. <td> <div align="center"></div></td>
  593. <td colspan="6"> <div align="left">&nbsp;
  594. <?=$returnpage?>
  595. </div></td>
  596. </tr>
  597. <tr bgcolor="#FFFFFF">
  598. <td>&nbsp;</td>
  599. <td colspan="6"><font color="#666666">订购者为灰色,则为非会员购买;退货不自动还原库存,需手动还原库存;已还原过的库存系统不会重复还原。</font></td>
  600. </tr>
  601. </form>
  602. </table>
  603. </body>
  604. </html>
  605. <?
  606. db_close();
  607. $empire=null;
  608. ?>