viewthread_event.htm 27 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573574575576577578579580581582583584585586587588589590591592593594595596597598
  1. <!--{block return}-->
  2. <style>
  3. .robgz {
  4. color:#fc4201;
  5. }
  6. .eventtitle {
  7. font-size:14px;
  8. font-family:'Microsoft YaHei';
  9. line-height:26px;
  10. font-weight:bold;
  11. color:#0092ff;
  12. }
  13. .xjmenu {
  14. height:32px;
  15. }
  16. .xjmenu_a {
  17. width:80px;
  18. line-height:32px;
  19. float:left;
  20. height:32px;
  21. text-align:center;
  22. border-top:{$_G[style][specialborder]} 1px solid;
  23. border-left:{$_G[style][specialborder]} 1px solid;
  24. border-right:{$_G[style][specialborder]} 1px solid;
  25. border-bottom:{$_G[style][wrapbg]} 1px solid;
  26. margin-left:10px;
  27. font-weight:bold;
  28. cursor:pointer;
  29. background-color:{$_G[style][wrapbg]};
  30. margin-bottom:-1px;
  31. }
  32. .xjmenu_b {
  33. width:80px;
  34. line-height:32px;
  35. float:left;
  36. height:32px;
  37. text-align:center;
  38. margin-left:10px;
  39. cursor:pointer;
  40. background-color:{$_G[style][specialbg]};
  41. border:{$_G[style][specialborder]} 1px solid;
  42. margin-bottom:-1px;
  43. }
  44. .xjmain {
  45. border-top:{$_G[style][specialborder]} 1px solid;
  46. padding:15px;
  47. margin-bottom:10px;
  48. }
  49. a.bm_btn {
  50. display:inline-block;
  51. width:200px;
  52. height:28px;
  53. text-align:center;
  54. background: #ee5816;
  55. padding-top:2px;
  56. color:#FFFFFF;
  57. border:#c03b00 solid 1px;
  58. font-size:15px;
  59. font-weight:bold;
  60. text-decoration:none;
  61. }
  62. a:hover.bm_btn {
  63. background-color:#c03b00;
  64. }
  65. a.bm_btn2 {
  66. display:inline-block;
  67. width:200px;
  68. height:28px;
  69. text-align:center;
  70. background: #d0d0d0;
  71. padding-top:2px;
  72. color:#666666;
  73. font-size:15px;
  74. font-weight:bold;
  75. text-decoration:none;
  76. }
  77. a.bm_btn3 {
  78. display:inline-block;
  79. width:200px;
  80. height:28px;
  81. text-align:center;
  82. background: #008f00;
  83. padding-top:2px;
  84. color:#ffffff;
  85. font-size:15px;
  86. font-weight:bold;
  87. text-decoration:none;
  88. }
  89. a.pay_btn{
  90. display:inline-block;
  91. width:200px;
  92. height:28px;
  93. text-align:center;
  94. background: #ee5816;
  95. padding-top:2px;
  96. color:#FFFFFF;
  97. border:#c03b00 solid 1px;
  98. font-size:15px;
  99. font-weight:bold;
  100. text-decoration:none;
  101. margin-top:10px;
  102. }
  103. a:hover.pay_btn {
  104. margin-top:10px;
  105. background-color:#c03b00;
  106. }
  107. a.eventmenu {
  108. display:inline-block;
  109. padding:4px 6px 2px 6px;
  110. color:#777777;
  111. text-decoration:none;
  112. line-height:12px;
  113. margin-left:5px;
  114. }
  115. a:hover.eventmenu {
  116. display:inline-block;
  117. padding:4px 6px 2px 6px;
  118. color:#ffffff;
  119. text-decoration:none;
  120. line-height:12px;
  121. margin-left:5px;
  122. background-color:#aaaaaa;
  123. }
  124. a.eventmenu_select {
  125. display:inline-block;
  126. padding:4px 6px 2px 6px;
  127. color:#ffffff;
  128. text-decoration:none;
  129. line-height:12px;
  130. margin-left:5px;
  131. background-color:#aaaaaa;
  132. }
  133. .jlpg {
  134. text-align:right;
  135. padding-right:10px;
  136. }
  137. .jlpg strong {
  138. display:inline-block;
  139. height:20px;
  140. width:20px;
  141. border:1px solid #CCCCCC;
  142. font-size:12px;
  143. text-align:center;
  144. margin-right:5px;
  145. background-color:#CCCCCC;
  146. color:#FFFFFF;
  147. }
  148. .jlpg a {
  149. display:inline-block;
  150. height:20px;
  151. width:20px;
  152. border:1px solid #CCCCCC;
  153. font-size:12px;
  154. text-align:center;
  155. margin-right:5px;
  156. }
  157. .userlist{ border-top:1px solid {$_G[style][specialborder]}; border-left:1px solid {$_G[style][specialborder]}; line-height:28px; text-align:center;}
  158. .userlist td{ border-bottom:1px {$_G[style][specialborder]} solid;border-right:1px {$_G[style][specialborder]} solid; padding:5px; background-color:#FFF;}
  159. .ulmenu1{ cursor:pointer; width:120px; height:32px; text-align:center; background-color:{$_G[style][commonbg]}; margin-bottom:-1px; float:left; border-right:1px solid {$_G[style][specialborder]}; font-size:14px; padding-top:7px;}
  160. .ulmenu2{ cursor:pointer; width:120px; height:31px; text-align:center; background-color:{$_G[style][specialbg]}; float:left; border-right:1px solid {$_G[style][specialborder]}; font-size:14px; padding-top:7px;}
  161. </style>
  162. <!--{if $setting['project']['openproject']}-->
  163. <div style="line-height:40px;">
  164. <a href="plugin.php?id=xj_event:project_show&tid=$tid" target="_blank" style=" font-size:14px; height:50px; line-height:50px; background-color:#f4f4f4; text-align:center; border:1px solid #eee; display:block; margin-bottom:10px;">{lang xj_event:jrhdzt}</a>
  165. </div>
  166. <!--{/if}-->
  167. <ul class="xjmenu">
  168. <li class="xjmenu_a" onclick="remenu(1)" id="xjmenu1">{lang xj_event:hdjs}</li>
  169. <!--{if $setting[eventzy_enable]}-->
  170. <li class="xjmenu_b" onclick="remenu(2)" id="xjmenu2">{lang xj_event:huodong}{$setting[eventzy_name]}</li>
  171. <!--{/if}-->
  172. <!--{if $hg}-->
  173. <li class="xjmenu_b"><a href="forum.php?mod=viewthread&tid={$hg[tid]}" target="_blank">{lang xj_event:hdgg}</a></li>
  174. <!--{/if}-->
  175. <!--{if $timestamp>=$items[starttime] and $timestamp<=$items[endtime]}-->
  176. <li style="width:100px;line-height:32px;float:left;height:32px;text-align:center;margin-left:10px;margin-top:-1px; background:url(source/plugin/xj_event/images/d.png) no-repeat 0px 7px; padding-left:10px;">{lang xj_event:bhdjxz}</li>
  177. <!--{elseif $timestamp>$items[endtime]}-->
  178. <li style="width:100px;line-height:32px;float:left;height:32px;text-align:center;margin-left:10px;margin-top:-1px; background:url(source/plugin/xj_event/images/t.png) no-repeat 0px 7px; padding-left:10px;">{lang xj_event:bhdyjs}</li>
  179. <!--{elseif $timestamp<$items[starttime]}-->
  180. <li style="width:100px;line-height:32px;float:left;height:32px;text-align:center;margin-left:10px;margin-top:-1px; background:url(source/plugin/xj_event/images/w.png) no-repeat 0px 7px; padding-left:10px;">{lang xj_event:bhdwks}</li>
  181. <!--{/if}-->
  182. </ul>
  183. <div style="clear:both;"></div>
  184. <div class="xjmain" id="event1">
  185. <!--{if $items[postclass]==1}-->
  186. <div style="color:#777;line-height:26px; font-size:14px; font-family:'Microsoft YaHei'; width:320px; float:left;"> <span class="eventtitle">{lang xj_event:hdfs}:</span> $postclass<br />
  187. <span class="eventtitle">{lang xj_event:hdlx}:</span> $eventclass[1]<br />
  188. <span class="eventtitle">{lang xj_event:hddq}:</span> {$items[province]}{$citys}<br />
  189. <span class="eventtitle">{lang xj_event:kssj}:</span> {$starttime}<br />
  190. <span class="eventtitle">{lang xj_event:jssj}:</span> {$endtime}<br />
  191. <span class="eventtitle">{lang xj_event:hddd}:</span> {$items[event_address]}<br />
  192. <span class="eventtitle">{lang xj_event:hdgl}:</span> {$event_adminlist}<br />
  193. <span class="eventtitle">{lang xj_event:cjme}:</span>
  194. <!--{if $items[event_number]==0}-->
  195. {lang xj_event:buxian}
  196. <!--{else}-->
  197. <span class="robgz">{$items[event_number]} {lang xj_event:ren}</span>
  198. <!--{/if}-->
  199. <br />
  200. <span class="eventtitle">{lang xj_event:bmrs}:</span> <span class="robgz">{$applycountnumber}</span> {lang xj_event:ren} {lang xj_event:daish} <span class="robgz">{$applycountnumberd}</span> {lang xj_event:ren}<br />
  201. <!--{if $setting[cost]}-->
  202. <span class="eventtitle">{lang xj_event:cjfy}:</span> <br />
  203. <!--{loop $setting[cost] $value}-->
  204. <div style="clear:both; height:30px;">
  205. <span style="padding:2px 8px; color:#FFF; background-color:#f6320c; border-radius:5px; margin-bottom:5px; float:left;">
  206. {$value[cost_name]}:{$value[cost_price]}{lang xj_event:yuan}<!--{if $value[cost_credits]>0 && $items[use_extcredits]>0}-->{lang xj_event:huo}{$value[cost_credits]}$extcredit_title <!--{/if}-->
  207. <!--{if $value[cost_youhui] !== ''}-->
  208. <!--{eval $value[cost_youhui]=$value[cost_price]-$value[cost_youhui];}-->
  209. <!--{if $value[cost_youhui] > 0}-->
  210. {lang xj_event:vipzhekou}:{$value[cost_youhui]}{lang xj_event:yuan}
  211. <!--{else}-->
  212. {lang xj_event:vipzhekou}:{lang xj_event:mianfei}
  213. <!--{/if}-->
  214. <!--{/if}-->
  215. </span>
  216. </div>
  217. <!--{/loop}-->
  218. <div style="clear:both;"></div>
  219. <!--{else}-->
  220. <span class="eventtitle">{lang xj_event:cjfy}:</span>
  221. <!--{if $setting[eventaa]}-->
  222. AA <!--{if $items[use_cost]>0}-->{$items[use_cost]}{lang xj_event:yuan}{lang xj_event:zuoyou}<!--{/if}-->
  223. <!--{else}-->
  224. {$items[use_cost]} {lang xj_event:yuan} <!--{if $items[use_extcredits_num]>0 && $items[use_extcredits]>0}-->{lang xj_event:huo} {$items[use_extcredits_num]} $extcredit_title<!--{/if}-->
  225. <!--{/if}--><br />
  226. <!--{if $setting[vip_discount]!==''}-->
  227. <!--{eval $setting[vip_discount]=$items[use_cost]-$setting[vip_discount];}-->
  228. <span class="eventtitle">{lang xj_event:vipzhekou}:</span> <span class="robgz"><!--{if $setting[vip_discount]>0}-->{$setting[vip_discount]} {lang xj_event:yuan}<!--{else}-->{lang xj_event:mianfei}<!--{/if}--></span><br />
  229. <!--{/if}-->
  230. <!--{/if}-->
  231. <span class="eventtitle">{lang xj_event:bmjz}:</span> <span class="robgz">{$activityexpiration}</span><br />
  232. <!--{loop $setting[moreitem] $value}-->
  233. <span class="eventtitle">$value[itemname]:</span> $value[itemcontent]<br />
  234. <!--{/loop}-->
  235. <br />
  236. <!--线下活动按钮-->
  237. <!--条件当前时间小于(活动结束+30天)的时间-->
  238. <!--{if $timestamp<($items[endtime]+2592000)}-->
  239. <!--过了报名时间,没有报名的-->
  240. <!--{if $items['activityexpiration']<=$timestamp and $verify==null}-->
  241. <a href="javascript:" class="bm_btn2" title="{lang xj_event:bmjz}">{lang xj_event:bmjz}</a>
  242. <!--{else}-->
  243. <!--{if !$_G[uid]}-->
  244. <a href="member.php?mod=logging&action=login" onclick="showWindow('login', this.href);return false;" class="bm_btn2" title="{lang xj_event:qdlhbm}">{lang xj_event:wycjqdl}</a>
  245. <!--{else}-->
  246. <!--{if $items['activitybegin']<$timestamp and $items['activityexpiration']>$timestamp and $verify==null}-->
  247. <!--{if !$setting[invitation][open] || ($setting[invitation][open] && $setting[invitation][code] == $_GET[icode])}-->
  248. <!--{if $bmbtnshow}-->
  249. <!--{if $setting[onlyappbymejoin]}-->
  250. <a href="javascript:" onclick="showDialog('{lang xj_event:qxzsjappkhdbm}','confirm','','parent.location.href=\'{$_G[cache][plugin][xj_event][appurl]}\'');" class="bm_btn">{lang xj_event:wycj}</a>
  251. <!--{elseif $setting[onlysubscribeweixin] && $weixinsubscribe!=1}-->
  252. <a href="javascript:" onclick="showDialog('{lang xj_event:qingxianguanzhuweixinhaozbm}','confirm','','parent.location.href=\'{$_G[cache][plugin][xj_event][weixinurl]}\'');" class="bm_btn">{lang xj_event:wycj}</a>
  253. <!--{else}-->
  254. <a href="javascript:" onclick="document.getElementById('eventjoin_iframe').src='plugin.php?id=xj_event:event_join&tid={$tid}';showDialog($('eventjoin').innerHTML, 'info', '{lang xj_event:wycj}');" class="bm_btn">{lang xj_event:wycj}</a>
  255. <!--{/if}-->
  256. <!--{/if}-->
  257. <!--{if $setting[reply] && $replys<1}-->
  258. <a href="javascript:" class="bm_btn2">{lang xj_event:hfhkybm}</a>
  259. <!--{/if}-->
  260. <!--{/if}-->
  261. <!--{elseif $items['activitybegin']>$timestamp and $verify==null}-->
  262. <a href="javascript:" class="bm_btn2">{lang xj_event:bmhwks}</a>
  263. <!--{else}-->
  264. <!--{if $verify==0}-->
  265. <!--{if !$pay_state}-->
  266. <a href="javascript:" onclick="showDialog($('canceljoin').innerHTML, 'info', '{lang xj_event:qxbm}')" class="bm_btn">{lang xj_event:qxbm}</a>
  267. <a href="javascript:" onclick="document.getElementById('modifyjoin_iframe').src='plugin.php?id=xj_event:event_join_modify&tid={$tid}';showDialog($('modifyjoin').innerHTML, 'info', '{lang xj_event:xgbmzl}');" class="bm_btn" style="margin-top:10px;">{lang xj_event:xgbmzl}</a>
  268. <!--{/if}-->
  269. <!--{if $setting[eventpay]}-->
  270. <!--{if $pay_state}-->
  271. <a href="javascript:" class="pay_btn" style="background-color:#06C; border:#06C;">{lang xj_event:fyyfdsh}</a>
  272. <!--{else}-->
  273. <a href="plugin.php?id=xj_event:event_pay&tid={$items[tid]}" class="pay_btn">{lang xj_event:zhifufy}</a>
  274. <!--{/if}-->
  275. <!--{/if}-->
  276. <!--{else}-->
  277. <!--{if $setting[eventzy_enable]}-->
  278. <a href="forum.php?mod=post&action=newthread&fid=<!--{if $setting[eventzy_fid]}-->{$setting[eventzy_fid]}<!--{else}-->{$_G[fid]}<!--{/if}-->&eid={$items[eid]}" class="bm_btn3" title="{lang xj_event:ldbmypshtg}">{lang xj_event:fbhdzy}{$setting[eventzy_name]}</a>
  279. <!--{/if}-->
  280. <!--{if $setting[canceljoin]==1 && $items['activityexpiration']>$timestamp}-->
  281. <a href="javascript:" onclick="showDialog($('canceljoin').innerHTML, 'info', '{lang xj_event:qxbm}')" class="bm_btn" style="margin-top:10px;">{lang xj_event:qxbm}</a>
  282. <a href="javascript:" onclick="document.getElementById('modifyjoin_iframe').src='plugin.php?id=xj_event:event_join_modify&tid={$tid}';showDialog($('modifyjoin').innerHTML, 'info', '{lang xj_event:xgbmzl}');" class="bm_btn" style="margin-top:10px;">{lang xj_event:xgbmzl}</a>
  283. <!--{/if}-->
  284. <!--{if $setting[seccode]}-->
  285. <div>
  286. {lang xj_event:nycgbmhdbmyzm}:<span class="robgz">{$apply[seccode]}</span>
  287. </div>
  288. <!--{/if}-->
  289. <!--{/if}-->
  290. <!--{/if}-->
  291. <!--{/if}-->
  292. <!--{/if}-->
  293. <!--{/if}-->
  294. <!--线下活动按钮end-->
  295. </div>
  296. <div style="width:360px; float:right; text-align:center; padding-top:10px;"><img src="$imgurl" width="360" /></div>
  297. <!--{elseif $items[postclass]==2}-->
  298. <div style="color:#777;line-height:26px; font-size:14px; font-family:'Microsoft YaHei'; width:320px; float:left;"> <span class="eventtitle">{lang xj_event:hdfs}:</span> $postclass<br />
  299. <span class="eventtitle">{lang xj_event:hdlx}:</span> $eventclass[1]<br />
  300. <span class="eventtitle">{lang xj_event:kssj}:</span> {$starttime}<br />
  301. <span class="eventtitle">{lang xj_event:jssj}:</span> {$endtime}<br />
  302. <span class="eventtitle">{lang xj_event:hddq}:</span> {$items[province]}{$citys}<br />
  303. <!--{if $items[use_extcredits_num]>0}-->
  304. <span class="eventtitle">{lang xj_event:cyjf}:</span> {$items[use_extcredits_num]} $extcredit_title<br />
  305. <!--{/if}-->
  306. <span class="eventtitle">{lang xj_event:cjrs}:</span>
  307. <!--{if $items[event_number]==0}-->
  308. {lang xj_event:buxian}
  309. <!--{else}-->
  310. <span class="robgz">{$items[event_number]} {lang xj_event:ren}</span>
  311. <!--{/if}-->
  312. <br />
  313. <span class="eventtitle">{lang xj_event:bmrs}:</span> <span class="robgz">{$applycountnumber}</span> {lang xj_event:ren} {lang xj_event:daish} <span class="robgz">{$applycountnumberd}</span> {lang xj_event:ren}<br />
  314. <!--{if $setting[cost]}-->
  315. <span class="eventtitle">{lang xj_event:cjfy}:</span> <!--{loop $setting[cost] $value}-->{$value[cost_name]}{$value[cost_price]}{lang xj_event:yuan} <!--{/loop}--><br />
  316. <!--{else}-->
  317. <span class="eventtitle">{lang xj_event:cjfy}:</span> {$items[use_cost]} {lang xj_event:yuan}<br />
  318. <!--{/if}-->
  319. <!--{if $setting[vip_discount]}-->
  320. <span class="eventtitle">{lang xj_event:vipzhekou}:</span> <span class="robgz">{$setting[vip_discount]}{lang xj_event:zhe}</span><br />
  321. <!--{/if}-->
  322. <span class="eventtitle">{lang xj_event:bmjz}:</span> <span class="robgz">{$activityexpiration}</span><br />
  323. <!--{loop $setting[moreitem] $value}-->
  324. <span class="eventtitle">$value[itemname]:</span> $value[itemcontent]<br />
  325. <!--{/loop}-->
  326. <br />
  327. <!--线上活动按钮-->
  328. <!--条件当前时间小于(活动结束)的时间-->
  329. <!--{if $timestamp<$items[endtime]}-->
  330. <!--过了报名时间,没有报名的-->
  331. <!--{if $items['activityexpiration']<=$timestamp and $verify==null}-->
  332. <a href="javascript:" class="bm_btn2" title="{lang xj_event:bmjz}">{lang xj_event:bmjz}</a>
  333. <!--{else}-->
  334. <!--{if !$_G[uid]}-->
  335. <a href="member.php?mod=logging&action=login" onclick="showWindow('login', this.href);return false;" class="bm_btn2" title="{lang xj_event:qdlhbm}">{lang xj_event:wycjqdl}</a>
  336. <!--{else}-->
  337. <!--{if $items['activitybegin']<$timestamp and $items['activityexpiration']>$timestamp and $verify==null}-->
  338. <!--{if !$setting[invitation][open] || ($setting[invitation][open] && $setting[invitation][code] == $_GET[icode])}-->
  339. <!--{if $bmbtnshow}-->
  340. <a href="javascript:" onclick="document.getElementById('eventjoin_iframe').src='plugin.php?id=xj_event:event_join&tid={$tid}';showDialog($('eventjoin').innerHTML, 'info', '{lang xj_event:wycj}');" class="bm_btn">{lang xj_event:wycj}</a>
  341. <!--{/if}-->
  342. <!--{if $setting[reply] && $replys<1}-->
  343. <a href="javascript:" class="bm_btn2">{lang xj_event:hfhkybm}</a>
  344. <!--{/if}-->
  345. <!--{/if}-->
  346. <!--{elseif $items['activitybegin']>$timestamp and $verify==null}-->
  347. <a href="javascript:" class="bm_btn2">{lang xj_event:bmhwks}</a>
  348. <!--{else}-->
  349. <!--{if $verify==0}-->
  350. <!--{if !$pay_state}-->
  351. <a href="javascript:" onclick="showDialog($('canceljoin').innerHTML, 'info', '{lang xj_event:qxbm}')" class="bm_btn">{lang xj_event:qxbm}</a>
  352. <a href="javascript:" onclick="document.getElementById('modifyjoin_iframe').src='plugin.php?id=xj_event:event_join_modify&tid={$tid}';showDialog($('modifyjoin').innerHTML, 'info', '{lang xj_event:xgbmzl}');" class="bm_btn" style="margin-top:10px;">{lang xj_event:xgbmzl}</a>
  353. <!--{/if}-->
  354. <!--{if $setting[eventpay]}-->
  355. <!--{if $pay_state}-->
  356. <a href="javascript:" class="pay_btn" style="background-color:#06C; border:#06C;">{lang xj_event:fyyfdsh}</a>
  357. <!--{else}-->
  358. <a href="plugin.php?id=xj_event:event_pay&tid={$items[tid]}" class="pay_btn">{lang xj_event:zhifufy}</a>
  359. <!--{/if}-->
  360. <!--{/if}-->
  361. <!--{else}-->
  362. <a href="forum.php?mod=post&action=newthread&fid=<!--{if $setting[eventzy_fid]}-->{$setting[eventzy_fid]}<!--{else}-->{$_G[fid]}<!--{/if}-->&eid={$items[eid]}" class="bm_btn3" title="{lang xj_event:ldbmypshtg}">{lang xj_event:fbhdzy}{$setting[eventzy_name]}</a>
  363. <!--{if $setting[canceljoin]==1 && $items['activityexpiration']>$timestamp}-->
  364. <a href="javascript:" onclick="showDialog($('canceljoin').innerHTML, 'info', '{lang xj_event:qxbm}')" class="bm_btn" style="margin-top:10px;">{lang xj_event:qxbm}</a>
  365. <a href="javascript:" onclick="document.getElementById('modifyjoin_iframe').src='plugin.php?id=xj_event:event_join_modify&tid={$tid}';showDialog($('modifyjoin').innerHTML, 'info', '{lang xj_event:xgbmzl}');" class="bm_btn" style="margin-top:10px;">{lang xj_event:xgbmzl}</a>
  366. <!--{/if}-->
  367. <!--{if $setting[seccode]}-->
  368. <div>
  369. {lang xj_event:nycgbmhdbmyzm}:<span class="robgz">{$apply[seccode]}</span>
  370. </div>
  371. <!--{/if}-->
  372. <!--{/if}-->
  373. <!--{/if}-->
  374. <!--{/if}-->
  375. <!--{/if}-->
  376. <!--{/if}-->
  377. <!--线上活动按钮end-->
  378. </div>
  379. <div style="width:360px; float:right; text-align:center; padding-top:10px;"><img src="$imgurl" width="360"/></div>
  380. <!--{/if}-->
  381. <!--{if $items[verify] == 1}-->
  382. <img src="source/plugin/xj_event/images/rz.png" border="0" style="position:absolute; margin-top:100px; margin-left:290px;"/>
  383. <!--{/if}-->
  384. </div>
  385. <div class="xjmain" id="event2">
  386. <div style="color:#CCCCCC;">
  387. </div>
  388. <div id="event2_content">
  389. </div>
  390. </div>
  391. <script type="text/javascript">
  392. $('event2').style.display="none";
  393. function remenu(a){
  394. if(a == 2){
  395. ajaxget('plugin.php?id=xj_event:event_threadlist&eid={$items[eid]}&fid={$_G[fid]}','event2_content','','','','');
  396. }
  397. for(i=1;i<=2;i++){
  398. <!--{if !$setting[eventzy_enable]}-->
  399. if(i==2){
  400. continue;
  401. }
  402. <!--{/if}-->
  403. if(i==a){
  404. $('event'+i).style.display="block";
  405. $('xjmenu'+i).className='xjmenu_a';
  406. //document.getElementById('xjmenu'+i).className='xjmenu_a';
  407. //document.getElementById('postclass').value=i;
  408. }else{
  409. $('event'+i).style.display="none";
  410. $('xjmenu'+i).className='xjmenu_b';
  411. //document.getElementById('xjmenu'+i).className='xjmenu_b';
  412. }
  413. }
  414. }
  415. function userlist_menu(a){
  416. for(i=1;i<=3;i++){
  417. if(i==a){
  418. $('userlistmenu'+i).className='ulmenu1';
  419. }else{
  420. $('userlistmenu'+i).className='ulmenu2';
  421. }
  422. }
  423. if(a==1){
  424. ajaxget('plugin.php?id=xj_event:event_userlist&tid={$_GET[tid]}','joinlist_content');
  425. }else if(a==2){
  426. ajaxget('plugin.php?id=xj_event:event_userlist&tid={$_GET[tid]}&action=pass','joinlist_content');
  427. }else if(a==3){
  428. ajaxget('plugin.php?id=xj_event:event_userlist&tid={$_GET[tid]}&action=nopass','joinlist_content');
  429. }
  430. }
  431. </script>
  432. <!--{if $_G[uid] == $_G[thread][authorid] or $_G[groupid]==1 or $event_admin}-->
  433. <!--{if $setting[seccode]}-->
  434. <div style="clear:both; height:20px;"></div>
  435. <div style="line-height:26px;"><span class="robgz">{lang xj_event:yanzbm}:</span></div>
  436. <div style=" background-color:#e5edf2; border:1px solid #c2d5e3; padding:30px; margin-bottom:10px; text-align:center;">
  437. <!--{if $setting['nodaibaoming']}-->
  438. <form name="checkseccode" method="post" action="plugin.php?id=xj_event:event_join_single&action=checkseccode&eid={$items[eid]}&tid={$tid}" target="_blank">
  439. <!--{else}-->
  440. <form name="checkseccode" method="post" action="plugin.php?id=xj_event:event_join&action=checkseccode&eid={$items[eid]}&tid={$tid}" target="_blank">
  441. <!--{/if}-->
  442. <input type="hidden" name="formhash" value="{$_G[formhash]}" />
  443. {lang xj_event:baomyzm}:<input name="seccode" type="text" class="px" /> <button type="submit" name="checksubmit" class="pn pnc vm"><strong>{lang xj_event:yanzheng}</strong></button>
  444. </form>
  445. </div>
  446. <!--{/if}-->
  447. <!--{/if}-->
  448. <!--{if $setting[invitation][open] && ($_G[uid] == $_G[thread][authorid] or $_G[groupid]==1 or $event_admin) }-->
  449. <div style="clear:both; margin-bottom:10px; height:10px;"></div>
  450. <div style="padding:20px; border:1px solid #e5e5e5; background-color:#fcfcfc;">
  451. {lang xj_event:yaoqbmlj}: <input type="text" value="{$_G[setting][siteurl]}/forum.php?mod=viewthread&tid=$tid&icode={$setting[invitation][code]}" id="fe_text" style="width:340px;" /> <button id="d_clip_button" class="my_clip_button" data-clipboard-target="fe_text"><b>{lang xj_event:fuzdjtb}</b></button>
  452. </div>
  453. <script type="text/javascript" src="source/plugin/xj_event/js/ZeroClipboard.js"></script>
  454. <script type="text/javascript">
  455. // 定义一个新的复制对象
  456. var clip = new ZeroClipboard( document.getElementById("d_clip_button"), {
  457. moviePath: "source/plugin/xj_event/js/ZeroClipboard.swf"
  458. } );
  459. // 复制内容到剪贴板成功后的操作
  460. clip.on( 'complete', function(client, args) {
  461. alert("{lang xj_event:wuzhicg}");
  462. } );
  463. </script>
  464. <!--{/if}-->
  465. <div style="clear:both; height:10px;"></div>
  466. <div style=" margin-bottom:10px;" id='joinlist_content'></div>
  467. <!--{if $_G[uid] == $_G[thread][authorid] or $_G[groupid]==1 or $event_admin}-->
  468. <div style=" border-bottom:1px dashed #bbbbbb; clear:both;"></div>
  469. <div style="color:#777;line-height:32px; padding-left:10px;"> <span class="robgz">{lang xj_event:hdgl}: </span>
  470. <a href="javascript:" id="menu3" class="eventmenu" onclick="showWindow('setting', 'plugin.php?id=xj_event:event_setting&tid={$tid}')">{lang xj_event:hdsz}</a>
  471. <a href="plugin.php?id=xj_event:event_joinmanage&tid={$tid}" id="menu1" class="eventmenu" target="_blank">{lang xj_event:bmgl}</a>
  472. <a href="javascript:" id="menu2" class="eventmenu" onclick="showWindow('accessmanage', 'plugin.php?id=xj_event:event_accessmanage&tid={$tid}')" title="{lang xj_event:dcjhdhyjxpj}">{lang xj_event:pjgl}</a>
  473. <!--{if $setting[eventzy_enable]}-->
  474. <a href="plugin.php?id=xj_event:event_zymanage&eid={$items[eid]}" target="_blank" class="eventmenu" title="{lang xj_event:btzgldhd}{$setting[eventzy_name]}">{lang xj_event:guanlian}{$setting[eventzy_name]}</a>
  475. <!--{/if}-->
  476. <a href="javascript:" id="menu4" class="eventmenu" onclick="showWindow('applymessage', 'plugin.php?id=xj_event:event_message&tid={$tid}')" title="{lang xj_event:dcjhdhyjxqfxxhtxdgl}">{lang xj_event:dztx}</a>
  477. <a href="javascript:" id="menu4" class="eventmenu" onclick="showWindow('applysms', 'plugin.php?id=xj_event:event_sms&tid={$tid}')" title="{lang xj_event:dcjhdhyjxqfxxhtxdgl}">{lang xj_event:duanxqf}</a>
  478. <a href="forum.php?mod=post&action=newthread&fid={$_G[fid]}&eid={$items[eid]}&sort=1" id="menu5" class="eventmenu" title="{lang xj_event:fbbchddhgt}">{lang xj_event:hdgg}</a>
  479. <!--{if $_G[groupid]==1}-->
  480. <!--{if $items[verify] == 0}-->
  481. <a href="plugin.php?id=xj_event:event_rz&tid={$tid}&action=confirm&formhash={$_G[formhash]}" id="menu5" class="eventmenu">{lang xj_event:rzhd}</a>
  482. <!--{else}-->
  483. <a href="plugin.php?id=xj_event:event_rz&tid={$tid}&action=cancel&formhash={$_G[formhash]}" id="menu5" class="eventmenu">{lang xj_event:qxrz}</a>
  484. <!--{/if}-->
  485. <!--{/if}-->
  486. <a href="plugin.php?id=xj_event:project_setting&tid={$tid}" id="menu6" class="eventmenu" title="{lang xj_event:fbbchddhgt}">{lang xj_event:shezzt}</a>
  487. <a href="plugin.php?id=xj_event:lottery_setting&act=cjsz&tid={$tid}" id="menu7" class="eventmenu" title="{lang xj_event:huodcj}">{lang xj_event:huodcj}</a>
  488. </div>
  489. <!--{/if}-->
  490. <div style=" border-bottom:1px dashed #bbbbbb; clear:both; margin-bottom:10px;"></div>
  491. <div id="canceljoin" style="display:none">
  492. <div style="width:300px; height:70px; text-align:center; line-height:60px; font-weight:bold; font-size:14px;"> {lang xj_event:sfqxbm} </div>
  493. <em class="xi1" id="return_canceljoin"></em>
  494. <div class="o pns">
  495. <button type="submit" class="pn pnc" onclick="ajaxget('plugin.php?id=xj_event:event_join&tid={$tid}&action=cannel&formhash={$_G[formhash]}', 'return_canceljoin', 'return_canceljoin','','','cancelfull()');"><span>{lang xj_event:queding}</span></button>
  496. </div>
  497. </div>
  498. <script type="text/javascript">
  499. function verifyform(){
  500. <!--{if $setting[session]}-->
  501. if($('activity').session.value == ''){
  502. alert('{lang xj_event:bmxqtxwz}');
  503. return false;
  504. }
  505. <!--{/if}-->
  506. <!--{loop $selectuserfield $fieldid}-->
  507. <!--{if $_G[cache][profilesetting][$fieldid][formtype] == 'checkbox'}-->
  508. if($('activity').{$fieldid}.checked == false){
  509. alert('{lang xj_event:bmxqtxwz}');
  510. return false;
  511. }
  512. <!--{else}-->
  513. if($('activity').{$fieldid}.value == ''){
  514. alert('{lang xj_event:bmxqtxwz}');
  515. return false;
  516. }
  517. <!--{/if}-->
  518. <!--{/loop}-->
  519. return true;
  520. }
  521. function gbcount(message)
  522. {
  523. var max;
  524. max = 70;
  525. if (message.value.length > max) {
  526. message.value = message.value.substring(0,max);
  527. $('remain').innerHTML = 0;
  528. showDialog('{lang xj_event:xxbncggzf}', 'alert', '');
  529. }else{
  530. $('remain').innerHTML = max - message.value.length;
  531. }
  532. }
  533. function cancelfull(){
  534. showDialog('{lang xj_event:qxcg}', 'right', '', 'location.href="'+window.location.href+'"');
  535. }
  536. function succeedhandle_activityapplies(locationhref, message) {
  537. showDialog(message, 'right', '', 'location.href="' + locationhref + '"');
  538. }
  539. <!--{if !empty($_GET[menu])}-->
  540. remenu({$_GET[menu]});
  541. <!--{/if}-->
  542. </script>
  543. <script language="javascript">
  544. ajaxget('plugin.php?id=xj_event:event_userlist&tid={$_GET[tid]}','joinlist_content');
  545. </script>
  546. <div id="eventjoin" style="display:none">
  547. <iframe id="eventjoin_iframe" width="500" height="400" frameborder="0" src=""></iframe>
  548. </div>
  549. <div id="modifyjoin" style="display:none">
  550. <iframe id="modifyjoin_iframe" width="500" height="400" frameborder="0" src=""></iframe>
  551. </div>
  552. <!--{/block}-->