shop1.php 2.2 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374
  1. <?
  2. include("../config/conn.php");
  3. include("../config/function.php");
  4. sesCheck();
  5. $sqluser="select * from yjcode_user where uid='".$_SESSION[SHOPUSER]."' and shopzt=2";mysql_query("SET NAMES 'GBK'");$resuser=mysql_query($sqluser);
  6. if(!$rowuser=mysql_fetch_array($resuser)){php_toheader("openshop3.php");}
  7. if(sqlzhuru($_POST[jvs])=="shop"){
  8. zwzr();
  9. $c1=sqlzhuru1($_POST[C1]);if(empty($c1)){$c1=1;}else{$c1=0;}
  10. $c2=sqlzhuru1($_POST[C2]);if(empty($c2)){$c2=1;}else{$c2=0;}
  11. updatetable("yjcode_user","ordertx1=".$c1.",ordertx2=".$c2." where id=".$rowuser[id]);
  12. php_toheader("shop1.php?t=suc");
  13. }
  14. ?>
  15. <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
  16. <html xmlns="http://www.w3.org/1999/xhtml">
  17. <head>
  18. <meta http-equiv="x-ua-compatible" content="ie=7" />
  19. <meta http-equiv="Content-Type" content="text/html; charset=gb2312" />
  20. <title>用户管理面板 - <?=webname?></title>
  21. <? include("cssjs.html");?>
  22. <script language="javascript">
  23. function tj(){
  24. layer.msg('正在提交', {icon: 16 ,time: 0,shade :0.25});
  25. tjwait();
  26. f1.action="shop1.php";
  27. }
  28. </script>
  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("rcap4.php");?>
  38. <script language="javascript">
  39. document.getElementById("rcap2").className="l1 l2";
  40. </script>
  41. <!--白B-->
  42. <div class="rkuang">
  43. <? systs("恭喜您,操作成功!","shop1.php")?>
  44. <form name="f1" method="post" onsubmit="return tj()">
  45. <input type="hidden" value="shop" name="jvs" />
  46. <ul class="uk">
  47. <li class="l1">订单通知:</li>
  48. <li class="l2">
  49. <label><input name="C1" type="checkbox" value="1"<? if(empty($rowuser[ordertx1])){?> checked="checked"<? }?> /> 短信通知</label>&nbsp;&nbsp;&nbsp;&nbsp;
  50. <label><input name="C2" type="checkbox" value="1"<? if(empty($rowuser[ordertx2])){?> checked="checked"<? }?> /> 邮件通知</label>
  51. </li>
  52. <li class="l3"><?=tjbtnr("提交")?></li>
  53. </ul>
  54. </form>
  55. </div>
  56. <!--白E-->
  57. </div>
  58. <!--RE-->
  59. </div>
  60. <div class="clear clear15"></div>
  61. <? include("../tem/bottom.html");?>
  62. </body>
  63. </html>