sellclose.php 2.8 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687
  1. <?
  2. include("../config/conn.php");
  3. include("../config/function.php");
  4. sesCheck();
  5. $userid=returnuserid($_SESSION["SHOPUSER"]);
  6. $orderbh=$_GET[orderbh];
  7. while0("*","yjcode_order where orderbh='".$orderbh."' and selluserid=".$userid);if(!$row=mysql_fetch_array($res)){php_toheader("sellorder.php");}
  8. if(sqlzhuru($_POST[jvs])=="close"){
  9. zwzr();
  10. $zfmm=sha1(sqlzhuru($_POST[t1]));
  11. if(panduan("uid,zfmm","yjcode_user where zfmm='".$zfmm."' and uid='".$_SESSION[SHOPUSER]."'")==0){Audit_alert("支付密码有误!","sellclose.php?orderbh=".$orderbh);}
  12. if($row[ddzt]!="wait"){Audit_alert("未知错误!","sellorderview.php?orderbh=".$orderbh);}
  13. $allmoney=$row[money1]*$row[num];
  14. PointUpdateM($row[userid],$allmoney);
  15. PointIntoM($row[userid],"卖家取消订单",$allmoney);
  16. $sj=date("Y-m-d H:i:s");
  17. updatetable("yjcode_order","ddzt='close',closesj='".$sj."' where selluserid=".$userid." and id=".$row[id]);
  18. php_toheader("sellorderview.php?orderbh=".$orderbh);
  19. }
  20. ?>
  21. <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
  22. <html xmlns="http://www.w3.org/1999/xhtml">
  23. <head>
  24. <meta http-equiv="x-ua-compatible" content="ie=7" />
  25. <meta http-equiv="Content-Type" content="text/html; charset=gb2312" />
  26. <title>用户管理面板 - <?=webname?></title>
  27. <? include("cssjs.html");?>
  28. <link href="css/sell.css" rel="stylesheet" type="text/css" />
  29. </head>
  30. <body>
  31. <? include("../tem/top.html");?>
  32. <? include("top.php");?>
  33. <div class="yjcode">
  34. <? include("left.php");?>
  35. <!--RB-->
  36. <div class="userright">
  37. <? include("sellzf.php");?>
  38. <!--白B-->
  39. <div class="rkuang">
  40. <? include("sellorderv.php");?>
  41. <? if($row[ddzt]=="wait"){?>
  42. <script language="javascript">
  43. function tj(){
  44. if((document.f1.t1.value).replace("/\s/","")==""){alert("请输入支付密码");document.f1.t1.focus();return false;}
  45. if(!confirm("确定要取消该订单吗?")){return false;}
  46. layer.msg('正在提交', {icon: 16 ,time: 0,shade :0.25});
  47. tjwait();
  48. f1.action="sellclose.php?orderbh=<?=$orderbh?>";
  49. }
  50. </script>
  51. <form name="f1" method="post" onsubmit="return tj()">
  52. <ul class="ordercz">
  53. <li class="l1">
  54. <strong>* 站长提示:</strong><br>
  55. * 您尚未发货,取消订单后,买家支付的费用将直接退回至其帐号内<br>
  56. </li>
  57. <li class="l2">请输入您的支付密码:(<a href="zfmm.php" class="red">忘了支付密码?</a>)</li>
  58. <li class="l3"><input name="t1" class="inp" size="30" type="password"/></li>
  59. <li class="l4"><?=tjbtnr("取消订单")?></li>
  60. </ul>
  61. <input type="hidden" value="close" name="jvs" />
  62. <input type="hidden" value="<?=$orderbh?>" name="orderbh" />
  63. </form>
  64. <? }?>
  65. <div class="clear clear10"></div>
  66. </div>
  67. <!--白E-->
  68. </div>
  69. <!--RE-->
  70. </div>
  71. <div class="clear clear15"></div>
  72. <? include("../tem/bottom.html");?>
  73. </body>
  74. </html>