orderqxtk.php 2.9 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081
  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 userid=".$userid);if(!$row=mysql_fetch_array($res)){php_toheader("order.php");}
  8. if(sqlzhuru($_POST[jvs])=="qxtk" && $row[ddzt]=="back"){
  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("支付密码有误!","orderqxtk.php?orderbh=".$orderbh);}
  12. if($row[ddzt]!="back"){Audit_alert("未知错误!","orderview.php?orderbh=".$orderbh);}
  13. $oksj=date("Y-m-d H:i:s",strtotime("-30 second"));
  14. updatetable("yjcode_db","dboksj='".$oksj."' where orderbh='".$orderbh."'");
  15. deletetable("yjcode_tk where where orderbh='".$orderbh."'");
  16. if(empty($row[fhsj])){updatetable("yjcode_order","ddzt='wait' where orderbh='".$orderbh."'");}
  17. $str="买家取消了退款申请";
  18. intotable("yjcode_orderlog","orderbh,userid,selluserid,admin,txt,sj","'".$orderbh."',".$row[userid].",".$row[selluserid].",1,'".$str."','".getsj()."'");
  19. php_toheader("orderview.php?orderbh=".$orderbh);
  20. }
  21. ?>
  22. <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
  23. <html xmlns="http://www.w3.org/1999/xhtml">
  24. <head>
  25. <meta http-equiv="x-ua-compatible" content="ie=7" />
  26. <meta http-equiv="Content-Type" content="text/html; charset=gb2312" />
  27. <title>用户管理面板 - <?=webname?></title>
  28. <? include("cssjs.html");?>
  29. <link href="css/buy.css" rel="stylesheet" type="text/css" />
  30. </head>
  31. <body>
  32. <? include("../tem/top.html");?>
  33. <? include("top.php");?>
  34. <div class="yjcode">
  35. <? include("left.php");?>
  36. <!--RB-->
  37. <div class="userright">
  38. <!--白B-->
  39. <div class="rkuang">
  40. <? include("orderv.php");?>
  41. <? if($row[ddzt]=="back"){?>
  42. <script language="javascript">
  43. function tj(){
  44. if((document.f1.t1.value).replace("/\s/","")==""){alert("请输入支付密码");document.f1.t1.focus();return false;}
  45. layer.msg('正在操作,请稍候', {icon: 16 ,time: 0,shade :0.25});
  46. f1.action="orderqxtk.php?orderbh=<?=$orderbh?>";
  47. }
  48. </script>
  49. <form name="f1" method="post" onsubmit="return tj()">
  50. <ul class="ordercz">
  51. <li class="l1"><strong>取消退款申请的话,已发货的订单会<span class="red">自动转为交易成功</span>,请务必与卖家沟通好,确认商品没有问题的前提下,再进行该操作</strong></li>
  52. <li class="l2">请输入您的支付密码:(<a href="zfmm.php" class="red">忘了支付密码?</a>)</li>
  53. <li class="l3"><input name="t1" class="inp" size="30" type="password"/></li>
  54. <li class="l4"><?=tjbtnr("取消退款")?></li>
  55. </ul>
  56. <input type="hidden" value="qxtk" name="jvs" />
  57. <input type="hidden" value="<?=$orderbh?>" name="orderbh" />
  58. </form>
  59. <? }?>
  60. <div class="clear clear10"></div>
  61. </div>
  62. <!--白E-->
  63. </div>
  64. <!--RE-->
  65. </div>
  66. <div class="clear clear15"></div>
  67. <? include("../tem/bottom.html");?>
  68. </body>
  69. </html>