sellserverclose.php 2.8 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374757677787980818283
  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_serverorder where orderbh='".$orderbh."' and selluserid=".$userid);if(!$row=mysql_fetch_array($res)){php_toheader("sellserverorder.php");}
  8. if(sqlzhuru($_POST[yjcode])=="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("支付密码有误!","sellserverclose.php?orderbh=".$orderbh);}
  12. if($row[ddzt]!=1 && $row[ddzt]!=2){Audit_alert("未知错误!","sellserverorderview.php?orderbh=".$orderbh);}
  13. updatetable("yjcode_serverorder","ddzt=3 where selluserid=".$userid." and id=".$row[id]);
  14. php_toheader("sellserverorderview.php?orderbh=".$orderbh);
  15. }
  16. ?>
  17. <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
  18. <html xmlns="http://www.w3.org/1999/xhtml">
  19. <head>
  20. <meta http-equiv="x-ua-compatible" content="ie=7" />
  21. <meta http-equiv="Content-Type" content="text/html; charset=gb2312" />
  22. <title>用户管理面板 - <?=webname?></title>
  23. <? include("cssjs.html");?>
  24. <link href="css/sell.css" rel="stylesheet" type="text/css" />
  25. </head>
  26. <body>
  27. <? include("../tem/top.html");?>
  28. <? include("top.php");?>
  29. <div class="yjcode">
  30. <? include("left.php");?>
  31. <!--RB-->
  32. <div class="userright">
  33. <? include("sellzf.php");?>
  34. <!--白B-->
  35. <div class="rkuang">
  36. <? include("sellserverorderv.php");?>
  37. <? if($row[ddzt]==1 || $row[ddzt]==2){?>
  38. <script language="javascript">
  39. function tj(){
  40. if((document.f1.t1.value).replace("/\s/","")==""){alert("请输入支付密码");document.f1.t1.focus();return false;}
  41. if(!confirm("确定要取消该订单吗?")){return false;}
  42. layer.msg('正在提交', {icon: 16 ,time: 0,shade :0.25});
  43. f1.action="sellserverclose.php?orderbh=<?=$orderbh?>";
  44. }
  45. </script>
  46. <form name="f1" method="post" onsubmit="return tj()">
  47. <ul class="ordercz">
  48. <li class="l1">
  49. <strong>* 站长提示:</strong><br>
  50. * 买方未付款,取消订单,双方无责,不过依然建议先与买方沟通协商好<br>
  51. * 如果对本单无异议,建议接手本单 【<a href="queren.php?orderbh=<?=$orderbh?>">点击接单</a>】
  52. </li>
  53. <li class="l2">请输入您的支付密码:(<a href="zfmm.php" class="red">忘了支付密码?</a>)</li>
  54. <li class="l3"><input name="t1" class="inp" size="30" type="password"/></li>
  55. <li class="l4"><?=tjbtnr("取消订单")?></li>
  56. </ul>
  57. <input type="hidden" value="close" name="yjcode" />
  58. <input type="hidden" value="<?=$orderbh?>" name="orderbh" />
  59. </form>
  60. <? }?>
  61. <div class="clear clear10"></div>
  62. </div>
  63. <!--白E-->
  64. </div>
  65. <!--RE-->
  66. </div>
  67. <div class="clear clear15"></div>
  68. <? include("../tem/bottom.html");?>
  69. </body>
  70. </html>