3_xj_event_viewthread_event.tpl.php 30 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273747576777879808182838485868788899091929394959697989910010110210310410510610710810911011111211311411511611711811912012112212312412512612712812913013113213313413513613713813914014114214314414514614714814915015115215315415515615715815916016116216316416516616716816917017117217317417517617717817918018118218318418518618718818919019119219319419519619719819920020120220320420520620720820921021121221321421521621721821922022122222322422522622722822923023123223323423523623723823924024124224324424524624724824925025125225325425525625725825926026126226326426526626726826927027127227327427527627727827928028128228328428528628728828929029129229329429529629729829930030130230330430530630730830931031131231331431531631731831932032132232332432532632732832933033133233333433533633733833934034134234334434534634734834935035135235335435535635735835936036136236336436536636736836937037137237337437537637737837938038138238338438538638738838939039139239339439539639739839940040140240340440540640740840941041141241341441541641741841942042142242342442542642742842943043143243343443543643743843944044144244344444544644744844945045145245345445545645745845946046146246346446546646746846947047147247347447547647747847948048148248348448548648748848949049149249349449549649749849950050150250350450550650750850951051151251351451551651751851952052152252352452552652752852953053153253353453553653753853954054154254354454554654754854955055155255355455555655755855956056156256356456556656756856957057157257357457557657757857958058158258358458558658758858959059159259359459559659759859960060160260360460560660760860961061161261361461561661761861962062162262362462562662762862963063163263363463563663763863964064164264364464564664764864965065165265365465565665765865966066166266366466566666766866967067167267367467567667767867968068168268368468568668768868969069169269369469569669769869970070170270370470570670770870971071171271371471571671771871972072172272372472572672772872973073173273373473573673773873974074174274374474574674774874975075175275375475575675775875976076176276376476576676776876977077177277377477577677777877978078178278378478578678778878979079179279379479579679779879980080180280380480580680780880981081181281381481581681781881982082182282382482582682782882983083183283383483583683783883984084184284384484584684784884985085185285385485585685785885986086186286386486586686786886987087187287387487587687787887988088188288388488588688788888989089189289389489589689789889990090190290390490590690790890991091191291391491591691791891992092192292392492592692792892993093193293393493593693793893994094194294394494594694794894995095195295395495595695795895996096196296396496596696796896997097197297397497597697797897998098198298398498598698798898999099199299399499599699799899910001001100210031004100510061007100810091010101110121013101410151016101710181019102010211022102310241025102610271028102910301031103210331034103510361037103810391040104110421043104410451046104710481049105010511052105310541055105610571058105910601061106210631064106510661067106810691070107110721073107410751076107710781079108010811082108310841085108610871088108910901091109210931094109510961097109810991100110111021103110411051106110711081109111011111112111311141115111611171118111911201121112211231124112511261127112811291130113111321133113411351136113711381139114011411142114311441145114611471148114911501151115211531154115511561157115811591160116111621163116411651166116711681169117011711172117311741175117611771178117911801181118211831184118511861187118811891190119111921193119411951196119711981199120012011202120312041205120612071208120912101211121212131214121512161217121812191220
  1. <?php if(!defined('IN_DISCUZ')) exit('Access Denied'); ?><?php
  2. $return = <<<EOF
  3. <style>
  4. .robgz {
  5. color:#fc4201;
  6. }
  7. .eventtitle {
  8. font-size:14px;
  9. font-family:'Microsoft YaHei';
  10. line-height:26px;
  11. font-weight:bold;
  12. color:#0092ff;
  13. }
  14. .xjmenu {
  15. height:32px;
  16. }
  17. .xjmenu_a {
  18. width:80px;
  19. line-height:32px;
  20. float:left;
  21. height:32px;
  22. text-align:center;
  23. border-top:{$_G['style']['specialborder']} 1px solid;
  24. border-left:{$_G['style']['specialborder']} 1px solid;
  25. border-right:{$_G['style']['specialborder']} 1px solid;
  26. border-bottom:{$_G['style']['wrapbg']} 1px solid;
  27. margin-left:10px;
  28. font-weight:bold;
  29. cursor:pointer;
  30. background-color:{$_G['style']['wrapbg']};
  31. margin-bottom:-1px;
  32. }
  33. .xjmenu_b {
  34. width:80px;
  35. line-height:32px;
  36. float:left;
  37. height:32px;
  38. text-align:center;
  39. margin-left:10px;
  40. cursor:pointer;
  41. background-color:{$_G['style']['specialbg']};
  42. border:{$_G['style']['specialborder']} 1px solid;
  43. margin-bottom:-1px;
  44. }
  45. .xjmain {
  46. border-top:{$_G['style']['specialborder']} 1px solid;
  47. padding:15px;
  48. margin-bottom:10px;
  49. }
  50. a.bm_btn {
  51. display:inline-block;
  52. width:200px;
  53. height:28px;
  54. text-align:center;
  55. background: #ee5816;
  56. padding-top:2px;
  57. color:#FFFFFF;
  58. border:#c03b00 solid 1px;
  59. font-size:15px;
  60. font-weight:bold;
  61. text-decoration:none;
  62. }
  63. a:hover.bm_btn {
  64. background-color:#c03b00;
  65. }
  66. a.bm_btn2 {
  67. display:inline-block;
  68. width:200px;
  69. height:28px;
  70. text-align:center;
  71. background: #d0d0d0;
  72. padding-top:2px;
  73. color:#666666;
  74. font-size:15px;
  75. font-weight:bold;
  76. text-decoration:none;
  77. }
  78. a.bm_btn3 {
  79. display:inline-block;
  80. width:200px;
  81. height:28px;
  82. text-align:center;
  83. background: #008f00;
  84. padding-top:2px;
  85. color:#ffffff;
  86. font-size:15px;
  87. font-weight:bold;
  88. text-decoration:none;
  89. }
  90. a.pay_btn{
  91. display:inline-block;
  92. width:200px;
  93. height:28px;
  94. text-align:center;
  95. background: #ee5816;
  96. padding-top:2px;
  97. color:#FFFFFF;
  98. border:#c03b00 solid 1px;
  99. font-size:15px;
  100. font-weight:bold;
  101. text-decoration:none;
  102. margin-top:10px;
  103. }
  104. a:hover.pay_btn {
  105. margin-top:10px;
  106. background-color:#c03b00;
  107. }
  108. a.eventmenu {
  109. display:inline-block;
  110. padding:4px 6px 2px 6px;
  111. color:#777777;
  112. text-decoration:none;
  113. line-height:12px;
  114. margin-left:5px;
  115. }
  116. a:hover.eventmenu {
  117. display:inline-block;
  118. padding:4px 6px 2px 6px;
  119. color:#ffffff;
  120. text-decoration:none;
  121. line-height:12px;
  122. margin-left:5px;
  123. background-color:#aaaaaa;
  124. }
  125. a.eventmenu_select {
  126. display:inline-block;
  127. padding:4px 6px 2px 6px;
  128. color:#ffffff;
  129. text-decoration:none;
  130. line-height:12px;
  131. margin-left:5px;
  132. background-color:#aaaaaa;
  133. }
  134. .jlpg {
  135. text-align:right;
  136. padding-right:10px;
  137. }
  138. .jlpg strong {
  139. display:inline-block;
  140. height:20px;
  141. width:20px;
  142. border:1px solid #CCCCCC;
  143. font-size:12px;
  144. text-align:center;
  145. margin-right:5px;
  146. background-color:#CCCCCC;
  147. color:#FFFFFF;
  148. }
  149. .jlpg a {
  150. display:inline-block;
  151. height:20px;
  152. width:20px;
  153. border:1px solid #CCCCCC;
  154. font-size:12px;
  155. text-align:center;
  156. margin-right:5px;
  157. }
  158. .userlist{ border-top:1px solid {$_G['style']['specialborder']}; border-left:1px solid {$_G['style']['specialborder']}; line-height:28px; text-align:center;}
  159. .userlist td{ border-bottom:1px {$_G['style']['specialborder']} solid;border-right:1px {$_G['style']['specialborder']} solid; padding:5px; background-color:#FFF;}
  160. .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;}
  161. .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;}
  162. </style>
  163. EOF;
  164. if($setting['project']['openproject']) {
  165. $return .= <<<EOF
  166. <div style="line-height:40px;">
  167. <a href="plugin.php?id=xj_event:project_show&amp;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;">杩涘叆娲诲姩涓撻�</a>
  168. </div>
  169. EOF;
  170. }
  171. $return .= <<<EOF
  172. <ul class="xjmenu">
  173. <li class="xjmenu_a" onclick="remenu(1)" id="xjmenu1">娲诲姩浠嬬粛</li>
  174. EOF;
  175. if($setting['eventzy_enable']) {
  176. $return .= <<<EOF
  177. <li class="xjmenu_b" onclick="remenu(2)" id="xjmenu2">娲诲姩{$setting['eventzy_name']}</li>
  178. EOF;
  179. }
  180. $return .= <<<EOF
  181. EOF;
  182. if($hg) {
  183. $return .= <<<EOF
  184. <li class="xjmenu_b"><a href="forum.php?mod=viewthread&amp;tid={$hg['tid']}" target="_blank">娲诲姩鍥為【</a></li>
  185. EOF;
  186. }
  187. $return .= <<<EOF
  188. EOF;
  189. if($timestamp>=$items['starttime'] and $timestamp<=$items['endtime']) {
  190. $return .= <<<EOF
  191. <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;">鏈�椿鍔ㄨ繘琛屼腑</li>
  192. EOF;
  193. } elseif($timestamp>$items['endtime']) {
  194. $return .= <<<EOF
  195. <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;">鏈�椿鍔ㄥ凡缁撴潫</li>
  196. EOF;
  197. } elseif($timestamp<$items['starttime']) {
  198. $return .= <<<EOF
  199. <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;">鏈�椿鍔ㄦ湭寮€濮�</li>
  200. EOF;
  201. }
  202. $return .= <<<EOF
  203. </ul>
  204. <div style="clear:both;"></div>
  205. <div class="xjmain" id="event1">
  206. EOF;
  207. if($items['postclass']==1) {
  208. $return .= <<<EOF
  209. <div style="color:#777;line-height:26px; font-size:14px; font-family:'Microsoft YaHei'; width:320px; float:left;"> <span class="eventtitle">娲诲姩鏂瑰紡:</span> {$postclass}<br />
  210. <span class="eventtitle">娲诲姩绫诲瀷:</span> {$eventclass['1']}<br />
  211. <span class="eventtitle">娲诲姩鍦板尯:</span> {$items['province']}{$citys}<br />
  212. <span class="eventtitle">寮€濮嬫椂闂�:</span> {$starttime}<br />
  213. <span class="eventtitle">缁撴潫鏃堕棿:</span> {$endtime}<br />
  214. <span class="eventtitle">娲诲姩鍦扮偣:</span> {$items['event_address']}<br />
  215. <span class="eventtitle">娲诲姩绠$悊:</span> {$event_adminlist}<br />
  216. <span class="eventtitle">鍙傚姞鍚嶉�:</span>
  217. EOF;
  218. if($items['event_number']==0) {
  219. $return .= <<<EOF
  220. 涓嶉檺
  221. EOF;
  222. } else {
  223. $return .= <<<EOF
  224. <span class="robgz">{$items['event_number']} 浜�</span>
  225. EOF;
  226. }
  227. $return .= <<<EOF
  228. <br />
  229. <span class="eventtitle">鎶ュ悕浜烘暟:</span> <span class="robgz">{$applycountnumber}</span> 浜� 寰呭�鏍� <span class="robgz">{$applycountnumberd}</span> 浜�<br />
  230. EOF;
  231. if($setting['cost']) {
  232. $return .= <<<EOF
  233. <span class="eventtitle">鍙傚姞璐圭敤:</span> <br />
  234. EOF;
  235. if(is_array($setting['cost'])) foreach($setting['cost'] as $value) {
  236. $return .= <<<EOF
  237. <div style="clear:both; height:30px;">
  238. <span style="padding:2px 8px; color:#FFF; background-color:#f6320c; border-radius:5px; margin-bottom:5px; float:left;">
  239. {$value['cost_name']}:{$value['cost_price']}鍏�
  240. EOF;
  241. if($value['cost_credits']>0 && $items['use_extcredits']>0) {
  242. $return .= <<<EOF
  243. 鎴杮$value['cost_credits']}{$extcredit_title}
  244. EOF;
  245. }
  246. $return .= <<<EOF
  247. EOF;
  248. if($value['cost_youhui'] !== '') {
  249. $return .= <<<EOF
  250. EOF;
  251. $value[cost_youhui]=$value[cost_price]-$value[cost_youhui];
  252. $return .= <<<EOF
  253. EOF;
  254. if($value['cost_youhui'] > 0) {
  255. $return .= <<<EOF
  256. VIP浼樻儬浠�:{$value['cost_youhui']}鍏�
  257. EOF;
  258. } else {
  259. $return .= <<<EOF
  260. VIP浼樻儬浠�:鍏嶈垂
  261. EOF;
  262. }
  263. $return .= <<<EOF
  264. EOF;
  265. }
  266. $return .= <<<EOF
  267. </span>
  268. </div>
  269. EOF;
  270. }
  271. $return .= <<<EOF
  272. <div style="clear:both;"></div>
  273. EOF;
  274. } else {
  275. $return .= <<<EOF
  276. <span class="eventtitle">鍙傚姞璐圭敤:</span>
  277. EOF;
  278. if($setting['eventaa']) {
  279. $return .= <<<EOF
  280. AA
  281. EOF;
  282. if($items['use_cost']>0) {
  283. $return .= <<<EOF
  284. {$items['use_cost']}鍏冨乏鍙�
  285. EOF;
  286. }
  287. $return .= <<<EOF
  288. EOF;
  289. } else {
  290. $return .= <<<EOF
  291. {$items['use_cost']} 鍏�
  292. EOF;
  293. if($items['use_extcredits_num']>0 && $items['use_extcredits']>0) {
  294. $return .= <<<EOF
  295. 鎴� {$items['use_extcredits_num']} {$extcredit_title}
  296. EOF;
  297. }
  298. $return .= <<<EOF
  299. EOF;
  300. }
  301. $return .= <<<EOF
  302. <br />
  303. EOF;
  304. if($setting['vip_discount']!=='') {
  305. $return .= <<<EOF
  306. EOF;
  307. $setting[vip_discount]=$items[use_cost]-$setting[vip_discount];
  308. $return .= <<<EOF
  309. <span class="eventtitle">VIP浼樻儬浠�:</span> <span class="robgz">
  310. EOF;
  311. if($setting['vip_discount']>0) {
  312. $return .= <<<EOF
  313. {$setting['vip_discount']} 鍏�
  314. EOF;
  315. } else {
  316. $return .= <<<EOF
  317. 鍏嶈垂
  318. EOF;
  319. }
  320. $return .= <<<EOF
  321. </span><br />
  322. EOF;
  323. }
  324. $return .= <<<EOF
  325. EOF;
  326. }
  327. $return .= <<<EOF
  328. <span class="eventtitle">鎶ュ悕鎴��:</span> <span class="robgz">{$activityexpiration}</span><br />
  329. EOF;
  330. if(is_array($setting['moreitem'])) foreach($setting['moreitem'] as $value) {
  331. $return .= <<<EOF
  332. <span class="eventtitle">{$value['itemname']}:</span> {$value['itemcontent']}<br />
  333. EOF;
  334. }
  335. $return .= <<<EOF
  336. <br />
  337. <!--线下活动按钮-->
  338. <!--条件当前时间小于(活动结束+30天)的时间-->
  339. EOF;
  340. if($timestamp<($items['endtime']+2592000)) {
  341. $return .= <<<EOF
  342. <!--过了报名时间,没有报名的-->
  343. EOF;
  344. if($items['activityexpiration']<=$timestamp and $verify==null) {
  345. $return .= <<<EOF
  346. <a href="javascript:" class="bm_btn2" title="鎶ュ悕鎴��">鎶ュ悕鎴��</a>
  347. EOF;
  348. } else {
  349. $return .= <<<EOF
  350. EOF;
  351. if(!$_G['uid']) {
  352. $return .= <<<EOF
  353. <a href="member.php?mod=logging&amp;action=login" onclick="showWindow('login', this.href);return false;" class="bm_btn2" title="璇风櫥褰曞悗鎶ュ悕锛�">鎴戣�鍙傚姞(璇风櫥褰�)</a>
  354. EOF;
  355. } else {
  356. $return .= <<<EOF
  357. EOF;
  358. if($items['activitybegin']<$timestamp and $items['activityexpiration']>$timestamp and $verify==null) {
  359. $return .= <<<EOF
  360. EOF;
  361. if(!$setting['invitation']['open'] || ($setting['invitation']['open'] && $setting['invitation']['code'] == $_GET['icode'])) {
  362. $return .= <<<EOF
  363. EOF;
  364. if($bmbtnshow) {
  365. $return .= <<<EOF
  366. EOF;
  367. if($setting['onlyappbymejoin']) {
  368. $return .= <<<EOF
  369. <a href="javascript:" onclick="showDialog('璇蜂笅杞芥墜鏈篈PP瀹㈡埛绔�姤鍚�','confirm','','parent.location.href=\'{$_G['cache']['plugin']['xj_event']['appurl']}\'');" class="bm_btn">鎴戣�鍙傚姞</a>
  370. EOF;
  371. } elseif($setting['onlysubscribeweixin'] && $weixinsubscribe!=1) {
  372. $return .= <<<EOF
  373. <a href="javascript:" onclick="showDialog('璇峰厛鍏虫敞寰�俊鍙峰啀鎶ュ悕','confirm','','parent.location.href=\'{$_G['cache']['plugin']['xj_event']['weixinurl']}\'');" class="bm_btn">鎴戣�鍙傚姞</a>
  374. EOF;
  375. } else {
  376. $return .= <<<EOF
  377. <a href="javascript:" onclick="document.getElementById('eventjoin_iframe').src='plugin.php?id=xj_event:event_join&tid={$tid}';showDialog($('eventjoin').innerHTML, 'info', '鎴戣�鍙傚姞');" class="bm_btn">鎴戣�鍙傚姞</a>
  378. EOF;
  379. }
  380. $return .= <<<EOF
  381. EOF;
  382. }
  383. $return .= <<<EOF
  384. EOF;
  385. if($setting['reply'] && $replys<1) {
  386. $return .= <<<EOF
  387. <a href="javascript:" class="bm_btn2">鍥炲�鍚庡彲浠ユ姤鍚�</a>
  388. EOF;
  389. }
  390. $return .= <<<EOF
  391. EOF;
  392. }
  393. $return .= <<<EOF
  394. EOF;
  395. } elseif($items['activitybegin']>$timestamp and $verify==null) {
  396. $return .= <<<EOF
  397. <a href="javascript:" class="bm_btn2">鎶ュ悕杩樻湭寮€濮�</a>
  398. EOF;
  399. } else {
  400. $return .= <<<EOF
  401. EOF;
  402. if($verify==0) {
  403. $return .= <<<EOF
  404. EOF;
  405. if(!$pay_state) {
  406. $return .= <<<EOF
  407. <a href="javascript:" onclick="showDialog($('canceljoin').innerHTML, 'info', '鍙栨秷鎶ュ悕')" class="bm_btn">鍙栨秷鎶ュ悕</a>
  408. <a href="javascript:" onclick="document.getElementById('modifyjoin_iframe').src='plugin.php?id=xj_event:event_join_modify&tid={$tid}';showDialog($('modifyjoin').innerHTML, 'info', '淇�敼鎶ュ悕璧勬枡');" class="bm_btn" style="margin-top:10px;">淇�敼鎶ュ悕璧勬枡</a>
  409. EOF;
  410. }
  411. $return .= <<<EOF
  412. EOF;
  413. if($setting['eventpay']) {
  414. $return .= <<<EOF
  415. EOF;
  416. if($pay_state) {
  417. $return .= <<<EOF
  418. <a href="javascript:" class="pay_btn" style="background-color:#06C; border:#06C;">璐圭敤宸蹭粯寰呭�鏍�</a>
  419. EOF;
  420. } else {
  421. $return .= <<<EOF
  422. <a href="plugin.php?id=xj_event:event_pay&amp;tid={$items['tid']}" class="pay_btn">鏀�粯璐圭敤</a>
  423. EOF;
  424. }
  425. $return .= <<<EOF
  426. EOF;
  427. }
  428. $return .= <<<EOF
  429. EOF;
  430. } else {
  431. $return .= <<<EOF
  432. EOF;
  433. if($setting['eventzy_enable']) {
  434. $return .= <<<EOF
  435. <a href="forum.php?mod=post&amp;action=newthread&amp;fid=
  436. EOF;
  437. if($setting['eventzy_fid']) {
  438. $return .= <<<EOF
  439. {$setting['eventzy_fid']}
  440. EOF;
  441. } else {
  442. $return .= <<<EOF
  443. {$_G['fid']}
  444. EOF;
  445. }
  446. $return .= <<<EOF
  447. &amp;eid={$items['eid']}" class="bm_btn3" title="鎭�枩锛佹偍鐨勬姤鍚嶅凡琚��鏍搁€氳繃锛岀幇鍦ㄥ彲浠ュ彂琛ㄦ椿鍔ㄤ綔涓氫簡锛�">鍙戣〃娲诲姩{$setting['eventzy_name']}</a>
  448. EOF;
  449. }
  450. $return .= <<<EOF
  451. EOF;
  452. if($setting['canceljoin']==1 && $items['activityexpiration']>$timestamp) {
  453. $return .= <<<EOF
  454. <a href="javascript:" onclick="showDialog($('canceljoin').innerHTML, 'info', '鍙栨秷鎶ュ悕')" class="bm_btn" style="margin-top:10px;">鍙栨秷鎶ュ悕</a>
  455. <a href="javascript:" onclick="document.getElementById('modifyjoin_iframe').src='plugin.php?id=xj_event:event_join_modify&tid={$tid}';showDialog($('modifyjoin').innerHTML, 'info', '淇�敼鎶ュ悕璧勬枡');" class="bm_btn" style="margin-top:10px;">淇�敼鎶ュ悕璧勬枡</a>
  456. EOF;
  457. }
  458. $return .= <<<EOF
  459. EOF;
  460. if($setting['seccode']) {
  461. $return .= <<<EOF
  462. <div>
  463. 鎮ㄥ凡鎴愬姛鎶ュ悕娲诲姩锛屾姤鍚嶉獙璇佺爜:<span class="robgz">{$apply['seccode']}</span>
  464. </div>
  465. EOF;
  466. }
  467. $return .= <<<EOF
  468. EOF;
  469. }
  470. $return .= <<<EOF
  471. EOF;
  472. }
  473. $return .= <<<EOF
  474. EOF;
  475. }
  476. $return .= <<<EOF
  477. EOF;
  478. }
  479. $return .= <<<EOF
  480. EOF;
  481. }
  482. $return .= <<<EOF
  483. <!--线下活动按钮end-->
  484. </div>
  485. <div style="width:360px; float:right; text-align:center; padding-top:10px;"><img src="{$imgurl}" width="360" /></div>
  486. EOF;
  487. } elseif($items['postclass']==2) {
  488. $return .= <<<EOF
  489. <div style="color:#777;line-height:26px; font-size:14px; font-family:'Microsoft YaHei'; width:320px; float:left;"> <span class="eventtitle">娲诲姩鏂瑰紡:</span> {$postclass}<br />
  490. <span class="eventtitle">娲诲姩绫诲瀷:</span> {$eventclass['1']}<br />
  491. <span class="eventtitle">寮€濮嬫椂闂�:</span> {$starttime}<br />
  492. <span class="eventtitle">缁撴潫鏃堕棿:</span> {$endtime}<br />
  493. <span class="eventtitle">娲诲姩鍦板尯:</span> {$items['province']}{$citys}<br />
  494. EOF;
  495. if($items['use_extcredits_num']>0) {
  496. $return .= <<<EOF
  497. <span class="eventtitle">鍙備笌绉�垎:</span> {$items['use_extcredits_num']} {$extcredit_title}<br />
  498. EOF;
  499. }
  500. $return .= <<<EOF
  501. <span class="eventtitle">鍙傚姞浜烘暟:</span>
  502. EOF;
  503. if($items['event_number']==0) {
  504. $return .= <<<EOF
  505. 涓嶉檺
  506. EOF;
  507. } else {
  508. $return .= <<<EOF
  509. <span class="robgz">{$items['event_number']} 浜�</span>
  510. EOF;
  511. }
  512. $return .= <<<EOF
  513. <br />
  514. <span class="eventtitle">鎶ュ悕浜烘暟:</span> <span class="robgz">{$applycountnumber}</span> 浜� 寰呭�鏍� <span class="robgz">{$applycountnumberd}</span> 浜�<br />
  515. EOF;
  516. if($setting['cost']) {
  517. $return .= <<<EOF
  518. <span class="eventtitle">鍙傚姞璐圭敤:</span>
  519. EOF;
  520. if(is_array($setting['cost'])) foreach($setting['cost'] as $value) {
  521. $return .= <<<EOF
  522. {$value['cost_name']}{$value['cost_price']}鍏�
  523. EOF;
  524. }
  525. $return .= <<<EOF
  526. <br />
  527. EOF;
  528. } else {
  529. $return .= <<<EOF
  530. <span class="eventtitle">鍙傚姞璐圭敤:</span> {$items['use_cost']} 鍏�<br />
  531. EOF;
  532. }
  533. $return .= <<<EOF
  534. EOF;
  535. if($setting['vip_discount']) {
  536. $return .= <<<EOF
  537. <span class="eventtitle">VIP浼樻儬浠�:</span> <span class="robgz">{$setting['vip_discount']}鎶�</span><br />
  538. EOF;
  539. }
  540. $return .= <<<EOF
  541. <span class="eventtitle">鎶ュ悕鎴��:</span> <span class="robgz">{$activityexpiration}</span><br />
  542. EOF;
  543. if(is_array($setting['moreitem'])) foreach($setting['moreitem'] as $value) {
  544. $return .= <<<EOF
  545. <span class="eventtitle">{$value['itemname']}:</span> {$value['itemcontent']}<br />
  546. EOF;
  547. }
  548. $return .= <<<EOF
  549. <br />
  550. <!--线上活动按钮-->
  551. <!--条件当前时间小于(活动结束)的时间-->
  552. EOF;
  553. if($timestamp<$items['endtime']) {
  554. $return .= <<<EOF
  555. <!--过了报名时间,没有报名的-->
  556. EOF;
  557. if($items['activityexpiration']<=$timestamp and $verify==null) {
  558. $return .= <<<EOF
  559. <a href="javascript:" class="bm_btn2" title="鎶ュ悕鎴��">鎶ュ悕鎴��</a>
  560. EOF;
  561. } else {
  562. $return .= <<<EOF
  563. EOF;
  564. if(!$_G['uid']) {
  565. $return .= <<<EOF
  566. <a href="member.php?mod=logging&amp;action=login" onclick="showWindow('login', this.href);return false;" class="bm_btn2" title="璇风櫥褰曞悗鎶ュ悕锛�">鎴戣�鍙傚姞(璇风櫥褰�)</a>
  567. EOF;
  568. } else {
  569. $return .= <<<EOF
  570. EOF;
  571. if($items['activitybegin']<$timestamp and $items['activityexpiration']>$timestamp and $verify==null) {
  572. $return .= <<<EOF
  573. EOF;
  574. if(!$setting['invitation']['open'] || ($setting['invitation']['open'] && $setting['invitation']['code'] == $_GET['icode'])) {
  575. $return .= <<<EOF
  576. EOF;
  577. if($bmbtnshow) {
  578. $return .= <<<EOF
  579. <a href="javascript:" onclick="document.getElementById('eventjoin_iframe').src='plugin.php?id=xj_event:event_join&tid={$tid}';showDialog($('eventjoin').innerHTML, 'info', '鎴戣�鍙傚姞');" class="bm_btn">鎴戣�鍙傚姞</a>
  580. EOF;
  581. }
  582. $return .= <<<EOF
  583. EOF;
  584. if($setting['reply'] && $replys<1) {
  585. $return .= <<<EOF
  586. <a href="javascript:" class="bm_btn2">鍥炲�鍚庡彲浠ユ姤鍚�</a>
  587. EOF;
  588. }
  589. $return .= <<<EOF
  590. EOF;
  591. }
  592. $return .= <<<EOF
  593. EOF;
  594. } elseif($items['activitybegin']>$timestamp and $verify==null) {
  595. $return .= <<<EOF
  596. <a href="javascript:" class="bm_btn2">鎶ュ悕杩樻湭寮€濮�</a>
  597. EOF;
  598. } else {
  599. $return .= <<<EOF
  600. EOF;
  601. if($verify==0) {
  602. $return .= <<<EOF
  603. EOF;
  604. if(!$pay_state) {
  605. $return .= <<<EOF
  606. <a href="javascript:" onclick="showDialog($('canceljoin').innerHTML, 'info', '鍙栨秷鎶ュ悕')" class="bm_btn">鍙栨秷鎶ュ悕</a>
  607. <a href="javascript:" onclick="document.getElementById('modifyjoin_iframe').src='plugin.php?id=xj_event:event_join_modify&tid={$tid}';showDialog($('modifyjoin').innerHTML, 'info', '淇�敼鎶ュ悕璧勬枡');" class="bm_btn" style="margin-top:10px;">淇�敼鎶ュ悕璧勬枡</a>
  608. EOF;
  609. }
  610. $return .= <<<EOF
  611. EOF;
  612. if($setting['eventpay']) {
  613. $return .= <<<EOF
  614. EOF;
  615. if($pay_state) {
  616. $return .= <<<EOF
  617. <a href="javascript:" class="pay_btn" style="background-color:#06C; border:#06C;">璐圭敤宸蹭粯寰呭�鏍�</a>
  618. EOF;
  619. } else {
  620. $return .= <<<EOF
  621. <a href="plugin.php?id=xj_event:event_pay&amp;tid={$items['tid']}" class="pay_btn">鏀�粯璐圭敤</a>
  622. EOF;
  623. }
  624. $return .= <<<EOF
  625. EOF;
  626. }
  627. $return .= <<<EOF
  628. EOF;
  629. } else {
  630. $return .= <<<EOF
  631. <a href="forum.php?mod=post&amp;action=newthread&amp;fid=
  632. EOF;
  633. if($setting['eventzy_fid']) {
  634. $return .= <<<EOF
  635. {$setting['eventzy_fid']}
  636. EOF;
  637. } else {
  638. $return .= <<<EOF
  639. {$_G['fid']}
  640. EOF;
  641. }
  642. $return .= <<<EOF
  643. &amp;eid={$items['eid']}" class="bm_btn3" title="鎭�枩锛佹偍鐨勬姤鍚嶅凡琚��鏍搁€氳繃锛岀幇鍦ㄥ彲浠ュ彂琛ㄦ椿鍔ㄤ綔涓氫簡锛�">鍙戣〃娲诲姩{$setting['eventzy_name']}</a>
  644. EOF;
  645. if($setting['canceljoin']==1 && $items['activityexpiration']>$timestamp) {
  646. $return .= <<<EOF
  647. <a href="javascript:" onclick="showDialog($('canceljoin').innerHTML, 'info', '鍙栨秷鎶ュ悕')" class="bm_btn" style="margin-top:10px;">鍙栨秷鎶ュ悕</a>
  648. <a href="javascript:" onclick="document.getElementById('modifyjoin_iframe').src='plugin.php?id=xj_event:event_join_modify&tid={$tid}';showDialog($('modifyjoin').innerHTML, 'info', '淇�敼鎶ュ悕璧勬枡');" class="bm_btn" style="margin-top:10px;">淇�敼鎶ュ悕璧勬枡</a>
  649. EOF;
  650. }
  651. $return .= <<<EOF
  652. EOF;
  653. if($setting['seccode']) {
  654. $return .= <<<EOF
  655. <div>
  656. 鎮ㄥ凡鎴愬姛鎶ュ悕娲诲姩锛屾姤鍚嶉獙璇佺爜:<span class="robgz">{$apply['seccode']}</span>
  657. </div>
  658. EOF;
  659. }
  660. $return .= <<<EOF
  661. EOF;
  662. }
  663. $return .= <<<EOF
  664. EOF;
  665. }
  666. $return .= <<<EOF
  667. EOF;
  668. }
  669. $return .= <<<EOF
  670. EOF;
  671. }
  672. $return .= <<<EOF
  673. EOF;
  674. }
  675. $return .= <<<EOF
  676. <!--线上活动按钮end-->
  677. </div>
  678. <div style="width:360px; float:right; text-align:center; padding-top:10px;"><img src="{$imgurl}" width="360"/></div>
  679. EOF;
  680. } if($items['verify'] == 1) {
  681. $return .= <<<EOF
  682. <img src="source/plugin/xj_event/images/rz.png" border="0" style="position:absolute; margin-top:100px; margin-left:290px;"/>
  683. EOF;
  684. }
  685. $return .= <<<EOF
  686. </div>
  687. <div class="xjmain" id="event2">
  688. <div style="color:#CCCCCC;">
  689. </div>
  690. <div id="event2_content">
  691. </div>
  692. </div>
  693. <script type="text/javascript">
  694. $('event2').style.display="none";
  695. function remenu(a){
  696. if(a == 2){
  697. ajaxget('plugin.php?id=xj_event:event_threadlist&eid={$items['eid']}&fid={$_G['fid']}','event2_content','','','','');
  698. }
  699. for(i=1;i<=2;i++){
  700. EOF;
  701. if(!$setting['eventzy_enable']) {
  702. $return .= <<<EOF
  703. if(i==2){
  704. continue;
  705. }
  706. EOF;
  707. }
  708. $return .= <<<EOF
  709. if(i==a){
  710. $('event'+i).style.display="block";
  711. $('xjmenu'+i).className='xjmenu_a';
  712. //document.getElementById('xjmenu'+i).className='xjmenu_a';
  713. //document.getElementById('postclass').value=i;
  714. }else{
  715. $('event'+i).style.display="none";
  716. $('xjmenu'+i).className='xjmenu_b';
  717. //document.getElementById('xjmenu'+i).className='xjmenu_b';
  718. }
  719. }
  720. }
  721. function userlist_menu(a){
  722. for(i=1;i<=3;i++){
  723. if(i==a){
  724. $('userlistmenu'+i).className='ulmenu1';
  725. }else{
  726. $('userlistmenu'+i).className='ulmenu2';
  727. }
  728. }
  729. if(a==1){
  730. ajaxget('plugin.php?id=xj_event:event_userlist&tid={$_GET['tid']}','joinlist_content');
  731. }else if(a==2){
  732. ajaxget('plugin.php?id=xj_event:event_userlist&tid={$_GET['tid']}&action=pass','joinlist_content');
  733. }else if(a==3){
  734. ajaxget('plugin.php?id=xj_event:event_userlist&tid={$_GET['tid']}&action=nopass','joinlist_content');
  735. }
  736. }
  737. </script>
  738. EOF;
  739. if($_G['uid'] == $_G['thread']['authorid'] or $_G['groupid']==1 or $event_admin) { if($setting['seccode']) {
  740. $return .= <<<EOF
  741. <div style="clear:both; height:20px;"></div>
  742. <div style="line-height:26px;"><span class="robgz">娲诲姩鍏ュ満鍒搁獙璇�:</span></div>
  743. <div style=" background-color:#e5edf2; border:1px solid #c2d5e3; padding:30px; margin-bottom:10px; text-align:center;">
  744. EOF;
  745. if($setting['nodaibaoming']) {
  746. $return .= <<<EOF
  747. <form name="checkseccode" method="post" action="plugin.php?id=xj_event:event_join_single&amp;action=checkseccode&amp;eid={$items['eid']}&amp;tid={$tid}" target="_blank">
  748. EOF;
  749. } else {
  750. $return .= <<<EOF
  751. <form name="checkseccode" method="post" action="plugin.php?id=xj_event:event_join&amp;action=checkseccode&amp;eid={$items['eid']}&amp;tid={$tid}" target="_blank">
  752. EOF;
  753. }
  754. $return .= <<<EOF
  755. <input type="hidden" name="formhash" value="{$_G['formhash']}" />
  756. 鎶ュ悕楠岃瘉鐮�:<input name="seccode" type="text" class="px" /> <button type="submit" name="checksubmit" class="pn pnc vm"><strong>楠岃瘉</strong></button>
  757. </form>
  758. </div>
  759. EOF;
  760. } } if($setting['invitation']['open'] && ($_G['uid'] == $_G['thread']['authorid'] or $_G['groupid']==1 or $event_admin) ) {
  761. $return .= <<<EOF
  762. <div style="clear:both; margin-bottom:10px; height:10px;"></div>
  763. <div style="padding:20px; border:1px solid #e5e5e5; background-color:#fcfcfc;">
  764. 閭€璇锋姤鍚嶉摼鎺�: <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>澶嶅埗鍒板壀璐存澘</b></button>
  765. </div>
  766. <script src="source/plugin/xj_event/js/ZeroClipboard.js" type="text/javascript"></script>
  767. <script type="text/javascript">
  768. // 定义一个新的复制对象
  769. var clip = new ZeroClipboard( document.getElementById("d_clip_button"), {
  770. moviePath: "source/plugin/xj_event/js/ZeroClipboard.swf"
  771. } );
  772. // 复制内容到剪贴板成功后的操作
  773. clip.on( 'complete', function(client, args) {
  774. alert("澶嶅埗鎴愬姛");
  775. } );
  776. </script>
  777. EOF;
  778. }
  779. $return .= <<<EOF
  780. <div style="clear:both; height:10px;"></div>
  781. <div style=" margin-bottom:10px;" id='joinlist_content'></div>
  782. EOF;
  783. if($_G['uid'] == $_G['thread']['authorid'] or $_G['groupid']==1 or $event_admin) {
  784. $return .= <<<EOF
  785. <div style=" border-bottom:1px dashed #bbbbbb; clear:both;"></div>
  786. <div style="color:#777;line-height:32px; padding-left:10px;"> <span class="robgz">娲诲姩绠$悊: </span>
  787. <a href="javascript:" id="menu3" class="eventmenu" onclick="showWindow('setting', 'plugin.php?id=xj_event:event_setting&tid={$tid}')">娲诲姩璁剧疆</a>
  788. <a href="plugin.php?id=xj_event:event_joinmanage&amp;tid={$tid}" id="menu1" class="eventmenu" target="_blank">鎶ュ悕绠$悊</a>
  789. <a href="javascript:" id="menu2" class="eventmenu" onclick="showWindow('accessmanage', 'plugin.php?id=xj_event:event_accessmanage&tid={$tid}')" title="瀵瑰弬鍔犳椿鍔ㄤ細鍛樿繘琛岃瘎浠�">璇勪环绠$悊</a>
  790. EOF;
  791. if($setting['eventzy_enable']) {
  792. $return .= <<<EOF
  793. <a href="plugin.php?id=xj_event:event_zymanage&amp;eid={$items['eid']}" target="_blank" class="eventmenu" title="鎶婅创瀛愬叧鑱斿埌娲诲姩{$setting['eventzy_name']}">鍏宠仈{$setting['eventzy_name']}</a>
  794. EOF;
  795. }
  796. $return .= <<<EOF
  797. <a href="javascript:" id="menu4" class="eventmenu" onclick="showWindow('applymessage', 'plugin.php?id=xj_event:event_message&tid={$tid}')" title="瀵瑰弬鍔犳椿鍔ㄤ細鍛樿繘琛岀兢鍙戞秷鎭�拰鎻愰啋鐨勫姛鑳�">閫氱煡鎻愰啋</a>
  798. <a href="javascript:" id="menu4" class="eventmenu" onclick="showWindow('applysms', 'plugin.php?id=xj_event:event_sms&tid={$tid}')" title="瀵瑰弬鍔犳椿鍔ㄤ細鍛樿繘琛岀兢鍙戞秷鎭�拰鎻愰啋鐨勫姛鑳�">鐭�俊缇ゅ彂</a>
  799. <a href="forum.php?mod=post&amp;action=newthread&amp;fid={$_G['fid']}&amp;eid={$items['eid']}&amp;sort=1" id="menu5" class="eventmenu" title="鍙戣〃鏈��娲诲姩鐨勫洖椤捐创">娲诲姩鍥為【</a>
  800. EOF;
  801. if($_G['groupid']==1) {
  802. $return .= <<<EOF
  803. EOF;
  804. if($items['verify'] == 0) {
  805. $return .= <<<EOF
  806. <a href="plugin.php?id=xj_event:event_rz&amp;tid={$tid}&amp;action=confirm&amp;formhash={$_G['formhash']}" id="menu5" class="eventmenu">璁よ瘉娲诲姩</a>
  807. EOF;
  808. } else {
  809. $return .= <<<EOF
  810. <a href="plugin.php?id=xj_event:event_rz&amp;tid={$tid}&amp;action=cancel&amp;formhash={$_G['formhash']}" id="menu5" class="eventmenu">鍙栨秷璁よ瘉</a>
  811. EOF;
  812. }
  813. $return .= <<<EOF
  814. EOF;
  815. }
  816. $return .= <<<EOF
  817. <a href="plugin.php?id=xj_event:project_setting&amp;tid={$tid}" id="menu6" class="eventmenu" title="鍙戣〃鏈��娲诲姩鐨勫洖椤捐创">璁剧疆涓撻�</a>
  818. <a href="plugin.php?id=xj_event:lottery_setting&amp;act=cjsz&amp;tid={$tid}" id="menu7" class="eventmenu" title="娲诲姩鎶藉�">娲诲姩鎶藉�</a>
  819. </div>
  820. EOF;
  821. }
  822. $return .= <<<EOF
  823. <div style=" border-bottom:1px dashed #bbbbbb; clear:both; margin-bottom:10px;"></div>
  824. <div id="canceljoin" style="display:none">
  825. <div style="width:300px; height:70px; text-align:center; line-height:60px; font-weight:bold; font-size:14px;"> 鏄�惁鍙栨秷鎶ュ悕锛� </div>
  826. <em class="xi1" id="return_canceljoin"></em>
  827. <div class="o pns">
  828. <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>纭�畾</span></button>
  829. </div>
  830. </div>
  831. <script type="text/javascript">
  832. function verifyform(){
  833. EOF;
  834. if($setting['session']) {
  835. $return .= <<<EOF
  836. if($('activity').session.value == ''){
  837. alert('鎶ュ悕椤硅�濉�啓瀹屾暣锛�');
  838. return false;
  839. }
  840. EOF;
  841. } if(is_array($selectuserfield)) foreach($selectuserfield as $fieldid) { if($_G['cache']['profilesetting'][$fieldid]['formtype'] == 'checkbox') {
  842. $return .= <<<EOF
  843. if($('activity').{$fieldid}.checked == false){
  844. alert('鎶ュ悕椤硅�濉�啓瀹屾暣锛�');
  845. return false;
  846. }
  847. EOF;
  848. } else {
  849. $return .= <<<EOF
  850. if($('activity').{$fieldid}.value == ''){
  851. alert('鎶ュ悕椤硅�濉�啓瀹屾暣锛�');
  852. return false;
  853. }
  854. EOF;
  855. } }
  856. $return .= <<<EOF
  857. return true;
  858. }
  859. function gbcount(message)
  860. {
  861. var max;
  862. max = 70;
  863. if (message.value.length > max) {
  864. message.value = message.value.substring(0,max);
  865. $('remain').innerHTML = 0;
  866. showDialog('娑堟伅涓嶈兘瓒呰繃70涓�瓧绗︼紒', 'alert', '');
  867. }else{
  868. $('remain').innerHTML = max - message.value.length;
  869. }
  870. }
  871. function cancelfull(){
  872. showDialog('鍙栨秷鎴愬姛锛�', 'right', '', 'location.href="'+window.location.href+'"');
  873. }
  874. function succeedhandle_activityapplies(locationhref, message) {
  875. showDialog(message, 'right', '', 'location.href="' + locationhref + '"');
  876. }
  877. EOF;
  878. if(!empty($_GET['menu'])) {
  879. $return .= <<<EOF
  880. remenu({$_GET['menu']});
  881. EOF;
  882. }
  883. $return .= <<<EOF
  884. </script>
  885. <script language="javascript">
  886. ajaxget('plugin.php?id=xj_event:event_userlist&tid={$_GET['tid']}','joinlist_content');
  887. </script>
  888. <div id="eventjoin" style="display:none">
  889. <iframe id="eventjoin_iframe" width="500" height="400" frameborder="0" src=""></iframe>
  890. </div>
  891. <div id="modifyjoin" style="display:none">
  892. <iframe id="modifyjoin_iframe" width="500" height="400" frameborder="0" src=""></iframe>
  893. </div>
  894. EOF;
  895. ?>