weixin.php 2.0 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475
  1. <?
  2. include("../config/conn.php");
  3. include("../config/function.php");
  4. sesCheck();
  5. if($_GET[action]=="del"){
  6. updatetable("yjcode_user","wxopenid='',unionid='' where uid='".$_SESSION[SHOPUSER]."'");
  7. php_toheader("weixin.php");
  8. }
  9. $wxlogin=preg_split("/,/",$rowcontrol[wxlogin]);
  10. ?>
  11. <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
  12. <html xmlns="http://www.w3.org/1999/xhtml">
  13. <head>
  14. <meta http-equiv="x-ua-compatible" content="ie=7" />
  15. <meta http-equiv="Content-Type" content="text/html; charset=gb2312" />
  16. <title>用户管理面板 - <?=webname?></title>
  17. <? include("cssjs.html");?>
  18. <link href="css/inf.css" rel="stylesheet" type="text/css" />
  19. </head>
  20. <body>
  21. <? include("../tem/top.html");?>
  22. <? include("top.php");?>
  23. <div class="yjcode">
  24. <? include("left.php");?>
  25. <!--RB-->
  26. <div class="userright">
  27. <? include("rcap1.php");?>
  28. <script language="javascript">
  29. document.getElementById("rcap9").className="l1 l2";
  30. </script>
  31. <!--白B-->
  32. <div class="rkuang">
  33. <? systs("恭喜您,操作成功!","weixin.php")?>
  34. <? if(empty($rowuser[wxopenid])){?>
  35. <ul class="qqtxt">
  36. <li class="l1">
  37. <a href="https://open.weixin.qq.com/connect/qrconnect?appid=<?=$wxlogin[0]?>&redirect_uri=<?=urlencode(weburl."reg/wxlogin.php")?>&response_type=code&scope=snsapi_login#wechat_redirect"><img src="img/wx.gif" width="50" /></a>
  38. <br>
  39. 点击按钮,立即绑定微信帐号
  40. </li>
  41. <li class="l2">
  42. 使用微信帐号登录本站,您可以……<br>
  43. 用微信帐号轻松登录<br>
  44. 无须记住本站的帐号和密码,随时使用微信扫一扫轻松登录
  45. </li>
  46. </ul>
  47. <? }else{?>
  48. <ul class="qqtxt">
  49. <li class="l3">
  50. <strong>您已将本站帐号与微信号码绑定</strong><br>
  51. 解除已绑定帐号?<br>
  52. <input type="button" class="btn1" onclick="gourl('weixin.php?action=del')" value="确认解除" />
  53. </li>
  54. </ul>
  55. <? }?>
  56. </div>
  57. <!--白E-->
  58. </div>
  59. <!--RE-->
  60. </div>
  61. <div class="clear clear15"></div>
  62. <? include("../tem/bottom.html");?>
  63. </body>
  64. </html>