wsq_join_vcode.inc.php 4.1 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110
  1. <?php
  2. /**
  3. * [Discuz!] (C)2001-2099 Comsenz Inc.
  4. * This is NOT a freeware, use is subject to license terms
  5. *
  6. * $Id: install.php 34718 2014-07-14 08:56:39Z nemohou $
  7. */
  8. if(!defined('IN_DISCUZ')) {
  9. exit('Access Denied');
  10. }
  11. if(!$_G['uid']) {
  12. showmessage('not_loggedin', NULL, array(), array('login' => 1));
  13. }
  14. $uid = intval($_G['uid']);
  15. $siteid = $_G['wechat']['setting']['wsq_siteid'];
  16. $applyid = intval($_GET['applyid']);
  17. $apply = DB::fetch_first("SELECT * FROM ".DB::table('xj_eventapply')." WHERE applyid=$applyid");
  18. $items = DB::fetch_first("SELECT * FROM ".DB::table('xj_event')." WHERE eid=".$apply['eid']);
  19. $thread = DB::fetch(DB::query("SELECT subject FROM ".DB::table('forum_thread')." WHERE tid = ".$apply['tid']));
  20. $setting = unserialize($items['setting']);
  21. ?>
  22. <script type="text/javascript" src="http://wsq.discuz.com/cdn/discuz/js/openjs.js"></script>
  23. <script>
  24. var menu = new Array();
  25. WSQ.initBtmBar(menu);
  26. WSQ.showBtmBar();
  27. WSQ.initPlugin({name:'<?php echo lang('plugin/xj_event', 'hdrcj'); ?>'});
  28. </script>
  29. <style type="text/css">
  30. #container {margin:5px;}
  31. body {height:100%;}
  32. .input1{padding:14px; line-height:14px; width:100%;-moz-border-radius: 4px; -webkit-border-radius: 4px; border-radius:4px; border:1px solid #d8d8d8;}
  33. select{height:42px;-webkit-appearance:none;appearance:none;border:none;font-size:14px;padding:0px 10px;display:block;width:100%;-webkit-box-sizing:border-box;box-sizing:border-box;background-color: #FFFFFF;color:#aaa;border-radius:4px;}
  34. .selectdiv{margin-top:0px;outline:none;-moz-border-radius: 4px; -webkit-border-radius: 4px; border-radius:4px; border:1px solid #d8d8d8;position:relative;}
  35. .checkbox {
  36. width: 19px;
  37. height: 25px;
  38. padding: 0 5px 0 0;
  39. background: url(checkbox.png) no-repeat;
  40. display: block;
  41. float: left;
  42. }
  43. label{float:left; font-size:14px; line-height:30px;}
  44. </style>
  45. <script type="text/javascript" src="source/plugin/xj_event/js/jquery.js"></script>
  46. <script type="text/javascript">
  47. $(function(){
  48. $("#testbtn").click(function(){
  49. $.ajax({
  50. type: 'POST',
  51. url: 'plugin.php?id=xj_event:wsq_join&tid=<?php echo $tid; ?>&action=full',
  52. //data: {level:'fff', roomnumber:'bbb'},
  53. data:$('#bmform').serialize(),
  54. dataType: 'json',
  55. cache: false,
  56. error: function(){
  57. alert('error');
  58. return false;
  59. },
  60. success:function(json){
  61. if(json.full == 2){
  62. alert(json.showmessage);
  63. if(json.tourl != null){
  64. top.location.href=json.tourl;
  65. }
  66. return false;
  67. }
  68. if(json.full == 1){
  69. alert('<?php echo lang('plugin/xj_event','gxnbmcg'); ?>');
  70. window.location.href="http://wsq.discuz.com/?c=index&a=viewthread&f=wx&tid=<?php echo $tid; ?>&siteid=<?php echo $siteid; ?>&_bpage=1";
  71. return true;
  72. }else{
  73. alert('error');
  74. return false;
  75. }
  76. }
  77. });
  78. });
  79. });
  80. </script>
  81. </head>
  82. <body>
  83. <div style="margin:20px 10px;">
  84. <div style=" border:1px solid #ccc; background-color:#fff; padding:15px;">
  85. <div style="font-weight:bold; line-height:28px;">
  86. <?php echo $thread['subject']; ?>
  87. </div>
  88. <div style="font-size:12px; line-height:24px; padding:10px 0px;">
  89. <div style="float:left; width:40%;"><?php echo lang('plugin/xj_event', 'chanci'); ?>:<?php echo $setting['session'][$apply['session']]; ?></div>
  90. <div style="float:right; width:40%; text-align:right;"><?php echo lang('plugin/xj_event', 'renshu'); ?>:<?php echo $apply['applynumber']; ?></div>
  91. </div>
  92. <div style="clear:both; height:10px;"></div>
  93. <div style="padding:20px; border-top:1px solid #aaa; text-align:center;">
  94. <img src="plugin.php?id=xj_event:qrcode_vcode&tid=<?php echo $apply['tid']; ?>&seccode=<?php echo $apply['seccode']; ?>" style="width:100%;">
  95. <span style="font-size:20px;font-family: Microsoft YaHei;"><?php echo lang('plugin/xj_event', 'yanzhenma'); ?>:<?php echo $apply['seccode']; ?></span>
  96. </div>
  97. <div style="font-size:12px; color:#999; line-height:18px;">
  98. <?php echo lang('plugin/xj_event', 'smyzmhewmy'); ?>
  99. </div>
  100. </div>
  101. </div>
  102. </body>
  103. </html>