12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273747576777879808182838485868788899091929394959697989910010110210310410510610710810911011111211311411511611711811912012112212312412512612712812913013113213313413513613713813914014114214314414514614714814915015115215315415515615715815916016116216316416516616716816917017117217317417517617717817918018118218318418518618718818919019119219319419519619719819920020120220320420520620720820921021121221321421521621721821922022122222322422522622722822923023123223323423523623723823924024124224324424524624724824925025125225325425525625725825926026126226326426526626726826927027127227327427527627727827928028128228328428528628728828929029129229329429529629729829930030130230330430530630730830931031131231331431531631731831932032132232332432532632732832933033133233333433533633733833934034134234334434534634734834935035135235335435535635735835936036136236336436536636736836937037137237337437537637737837938038138238338438538638738838939039139239339439539639739839940040140240340440540640740840941041141241341441541641741841942042142242342442542642742842943043143243343443543643743843944044144244344444544644744844945045145245345445545645745845946046146246346446546646746846947047147247347447547647747847948048148248348448548648748848949049149249349449549649749849950050150250350450550650750850951051151251351451551651751851952052152252352452552652752852953053153253353453553653753853954054154254354454554654754854955055155255355455555655755855956056156256356456556656756856957057157257357457557657757857958058158258358458558658758858959059159259359459559659759859960060160260360460560660760860961061161261361461561661761861962062162262362462562662762862963063163263363463563663763863964064164264364464564664764864965065165265365465565665765865966066166266366466566666766866967067167267367467567667767867968068168268368468568668768868969069169269369469569669769869970070170270370470570670770870971071171271371471571671771871972072172272372472572672772872973073173273373473573673773873974074174274374474574674774874975075175275375475575675775875976076176276376476576676776876977077177277377477577677777877978078178278378478578678778878979079179279379479579679779879980080180280380480580680780880981081181281381481581681781881982082182282382482582682782882983083183283383483583683783883984084184284384484584684784884985085185285385485585685785885986086186286386486586686786886987087187287387487587687787887988088188288388488588688788888989089189289389489589689789889990090190290390490590690790890991091191291391491591691791891992092192292392492592692792892993093193293393493593693793893994094194294394494594694794894995095195295395495595695795895996096196296396496596696796896997097197297397497597697797897998098198298398498598698798898999099199299399499599699799899910001001100210031004100510061007100810091010101110121013101410151016101710181019102010211022102310241025102610271028102910301031103210331034103510361037103810391040104110421043104410451046104710481049105010511052105310541055105610571058105910601061106210631064106510661067106810691070107110721073107410751076107710781079108010811082108310841085108610871088108910901091109210931094109510961097109810991100110111021103110411051106110711081109111011111112111311141115111611171118111911201121112211231124112511261127112811291130113111321133113411351136113711381139114011411142114311441145114611471148114911501151115211531154115511561157115811591160116111621163116411651166116711681169117011711172117311741175117611771178117911801181118211831184118511861187118811891190119111921193119411951196119711981199120012011202120312041205120612071208120912101211121212131214121512161217121812191220 |
- <?php if(!defined('IN_DISCUZ')) exit('Access Denied'); ?><?php
- $return = <<<EOF
- <style>
- .robgz {
- color:#fc4201;
- }
- .eventtitle {
- font-size:14px;
- font-family:'Microsoft YaHei';
- line-height:26px;
- font-weight:bold;
- color:#0092ff;
- }
- .xjmenu {
- height:32px;
- }
- .xjmenu_a {
- width:80px;
- line-height:32px;
- float:left;
- height:32px;
- text-align:center;
- border-top:{$_G['style']['specialborder']} 1px solid;
- border-left:{$_G['style']['specialborder']} 1px solid;
- border-right:{$_G['style']['specialborder']} 1px solid;
- border-bottom:{$_G['style']['wrapbg']} 1px solid;
- margin-left:10px;
- font-weight:bold;
- cursor:pointer;
- background-color:{$_G['style']['wrapbg']};
- margin-bottom:-1px;
- }
- .xjmenu_b {
- width:80px;
- line-height:32px;
- float:left;
- height:32px;
- text-align:center;
- margin-left:10px;
- cursor:pointer;
- background-color:{$_G['style']['specialbg']};
- border:{$_G['style']['specialborder']} 1px solid;
- margin-bottom:-1px;
- }
- .xjmain {
- border-top:{$_G['style']['specialborder']} 1px solid;
- padding:15px;
- margin-bottom:10px;
- }
- a.bm_btn {
- display:inline-block;
- width:200px;
- height:28px;
- text-align:center;
- background: #ee5816;
- padding-top:2px;
- color:#FFFFFF;
- border:#c03b00 solid 1px;
- font-size:15px;
- font-weight:bold;
- text-decoration:none;
- }
- a:hover.bm_btn {
- background-color:#c03b00;
- }
- a.bm_btn2 {
- display:inline-block;
- width:200px;
- height:28px;
- text-align:center;
- background: #d0d0d0;
- padding-top:2px;
- color:#666666;
- font-size:15px;
- font-weight:bold;
- text-decoration:none;
- }
- a.bm_btn3 {
- display:inline-block;
- width:200px;
- height:28px;
- text-align:center;
- background: #008f00;
- padding-top:2px;
- color:#ffffff;
- font-size:15px;
- font-weight:bold;
- text-decoration:none;
- }
- a.pay_btn{
- display:inline-block;
- width:200px;
- height:28px;
- text-align:center;
- background: #ee5816;
- padding-top:2px;
- color:#FFFFFF;
- border:#c03b00 solid 1px;
- font-size:15px;
- font-weight:bold;
- text-decoration:none;
- margin-top:10px;
- }
- a:hover.pay_btn {
- margin-top:10px;
- background-color:#c03b00;
- }
- a.eventmenu {
- display:inline-block;
- padding:4px 6px 2px 6px;
- color:#777777;
- text-decoration:none;
- line-height:12px;
- margin-left:5px;
- }
- a:hover.eventmenu {
- display:inline-block;
- padding:4px 6px 2px 6px;
- color:#ffffff;
- text-decoration:none;
- line-height:12px;
- margin-left:5px;
- background-color:#aaaaaa;
- }
- a.eventmenu_select {
- display:inline-block;
- padding:4px 6px 2px 6px;
- color:#ffffff;
- text-decoration:none;
- line-height:12px;
- margin-left:5px;
- background-color:#aaaaaa;
- }
- .jlpg {
- text-align:right;
- padding-right:10px;
- }
- .jlpg strong {
- display:inline-block;
- height:20px;
- width:20px;
- border:1px solid #CCCCCC;
- font-size:12px;
- text-align:center;
- margin-right:5px;
- background-color:#CCCCCC;
- color:#FFFFFF;
- }
- .jlpg a {
- display:inline-block;
- height:20px;
- width:20px;
- border:1px solid #CCCCCC;
- font-size:12px;
- text-align:center;
- margin-right:5px;
- }
- .userlist{ border-top:1px solid {$_G['style']['specialborder']}; border-left:1px solid {$_G['style']['specialborder']}; line-height:28px; text-align:center;}
- .userlist td{ border-bottom:1px {$_G['style']['specialborder']} solid;border-right:1px {$_G['style']['specialborder']} solid; padding:5px; background-color:#FFF;}
- .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;}
- .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;}
- </style>
- EOF;
- if($setting['project']['openproject']) {
- $return .= <<<EOF
- <div style="line-height:40px;">
- <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;">杩涘叆娲诲姩涓撻�</a>
- </div>
- EOF;
- }
- $return .= <<<EOF
- <ul class="xjmenu">
- <li class="xjmenu_a" onclick="remenu(1)" id="xjmenu1">娲诲姩浠嬬粛</li>
-
- EOF;
- if($setting['eventzy_enable']) {
- $return .= <<<EOF
- <li class="xjmenu_b" onclick="remenu(2)" id="xjmenu2">娲诲姩{$setting['eventzy_name']}</li>
-
- EOF;
- }
- $return .= <<<EOF
-
- EOF;
- if($hg) {
- $return .= <<<EOF
- <li class="xjmenu_b"><a href="forum.php?mod=viewthread&tid={$hg['tid']}" target="_blank">娲诲姩鍥為【</a></li>
-
- EOF;
- }
- $return .= <<<EOF
-
- EOF;
- if($timestamp>=$items['starttime'] and $timestamp<=$items['endtime']) {
- $return .= <<<EOF
- <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>
-
- EOF;
- } elseif($timestamp>$items['endtime']) {
- $return .= <<<EOF
- <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>
-
- EOF;
- } elseif($timestamp<$items['starttime']) {
- $return .= <<<EOF
- <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>
-
- EOF;
- }
- $return .= <<<EOF
- </ul>
- <div style="clear:both;"></div>
- <div class="xjmain" id="event1">
-
- EOF;
- if($items['postclass']==1) {
- $return .= <<<EOF
- <div style="color:#777;line-height:26px; font-size:14px; font-family:'Microsoft YaHei'; width:320px; float:left;"> <span class="eventtitle">娲诲姩鏂瑰紡:</span> {$postclass}<br />
- <span class="eventtitle">娲诲姩绫诲瀷:</span> {$eventclass['1']}<br />
- <span class="eventtitle">娲诲姩鍦板尯:</span> {$items['province']}{$citys}<br />
- <span class="eventtitle">寮€濮嬫椂闂�:</span> {$starttime}<br />
- <span class="eventtitle">缁撴潫鏃堕棿:</span> {$endtime}<br />
- <span class="eventtitle">娲诲姩鍦扮偣:</span> {$items['event_address']}<br />
- <span class="eventtitle">娲诲姩绠$悊:</span> {$event_adminlist}<br />
- <span class="eventtitle">鍙傚姞鍚嶉�:</span>
-
- EOF;
- if($items['event_number']==0) {
- $return .= <<<EOF
- 涓嶉檺
-
- EOF;
- } else {
- $return .= <<<EOF
- <span class="robgz">{$items['event_number']} 浜�</span>
-
- EOF;
- }
- $return .= <<<EOF
- <br />
- <span class="eventtitle">鎶ュ悕浜烘暟:</span> <span class="robgz">{$applycountnumber}</span> 浜� 寰呭�鏍� <span class="robgz">{$applycountnumberd}</span> 浜�<br />
-
- EOF;
- if($setting['cost']) {
- $return .= <<<EOF
- <span class="eventtitle">鍙傚姞璐圭敤:</span> <br />
-
- EOF;
- if(is_array($setting['cost'])) foreach($setting['cost'] as $value) {
- $return .= <<<EOF
- <div style="clear:both; height:30px;">
- <span style="padding:2px 8px; color:#FFF; background-color:#f6320c; border-radius:5px; margin-bottom:5px; float:left;">
- {$value['cost_name']}:{$value['cost_price']}鍏�
- EOF;
- if($value['cost_credits']>0 && $items['use_extcredits']>0) {
- $return .= <<<EOF
- 鎴杮$value['cost_credits']}{$extcredit_title}
- EOF;
- }
- $return .= <<<EOF
-
- EOF;
- if($value['cost_youhui'] !== '') {
- $return .= <<<EOF
-
- EOF;
- $value[cost_youhui]=$value[cost_price]-$value[cost_youhui];
- $return .= <<<EOF
-
- EOF;
- if($value['cost_youhui'] > 0) {
- $return .= <<<EOF
- VIP浼樻儬浠�:{$value['cost_youhui']}鍏�
-
- EOF;
- } else {
- $return .= <<<EOF
- VIP浼樻儬浠�:鍏嶈垂
-
- EOF;
- }
- $return .= <<<EOF
-
- EOF;
- }
- $return .= <<<EOF
- </span>
- </div>
-
- EOF;
- }
- $return .= <<<EOF
- <div style="clear:both;"></div>
-
- EOF;
- } else {
- $return .= <<<EOF
- <span class="eventtitle">鍙傚姞璐圭敤:</span>
-
- EOF;
- if($setting['eventaa']) {
- $return .= <<<EOF
- AA
- EOF;
- if($items['use_cost']>0) {
- $return .= <<<EOF
- {$items['use_cost']}鍏冨乏鍙�
- EOF;
- }
- $return .= <<<EOF
-
- EOF;
- } else {
- $return .= <<<EOF
- {$items['use_cost']} 鍏�
- EOF;
- if($items['use_extcredits_num']>0 && $items['use_extcredits']>0) {
- $return .= <<<EOF
- 鎴� {$items['use_extcredits_num']} {$extcredit_title}
- EOF;
- }
- $return .= <<<EOF
-
- EOF;
- }
- $return .= <<<EOF
- <br />
-
- EOF;
- if($setting['vip_discount']!=='') {
- $return .= <<<EOF
-
- EOF;
- $setting[vip_discount]=$items[use_cost]-$setting[vip_discount];
- $return .= <<<EOF
- <span class="eventtitle">VIP浼樻儬浠�:</span> <span class="robgz">
- EOF;
- if($setting['vip_discount']>0) {
- $return .= <<<EOF
- {$setting['vip_discount']} 鍏�
- EOF;
- } else {
- $return .= <<<EOF
- 鍏嶈垂
- EOF;
- }
- $return .= <<<EOF
- </span><br />
-
- EOF;
- }
- $return .= <<<EOF
-
- EOF;
- }
- $return .= <<<EOF
- <span class="eventtitle">鎶ュ悕鎴��:</span> <span class="robgz">{$activityexpiration}</span><br />
-
-
- EOF;
- if(is_array($setting['moreitem'])) foreach($setting['moreitem'] as $value) {
- $return .= <<<EOF
- <span class="eventtitle">{$value['itemname']}:</span> {$value['itemcontent']}<br />
-
- EOF;
- }
- $return .= <<<EOF
-
- <br />
- <!--线下活动按钮-->
- <!--条件当前时间小于(活动结束+30天)的时间-->
-
- EOF;
- if($timestamp<($items['endtime']+2592000)) {
- $return .= <<<EOF
- <!--过了报名时间,没有报名的-->
-
- EOF;
- if($items['activityexpiration']<=$timestamp and $verify==null) {
- $return .= <<<EOF
- <a href="javascript:" class="bm_btn2" title="鎶ュ悕鎴��">鎶ュ悕鎴��</a>
-
- EOF;
- } else {
- $return .= <<<EOF
-
-
- EOF;
- if(!$_G['uid']) {
- $return .= <<<EOF
- <a href="member.php?mod=logging&action=login" onclick="showWindow('login', this.href);return false;" class="bm_btn2" title="璇风櫥褰曞悗鎶ュ悕锛�">鎴戣�鍙傚姞(璇风櫥褰�)</a>
-
- EOF;
- } else {
- $return .= <<<EOF
-
- EOF;
- if($items['activitybegin']<$timestamp and $items['activityexpiration']>$timestamp and $verify==null) {
- $return .= <<<EOF
-
- EOF;
- if(!$setting['invitation']['open'] || ($setting['invitation']['open'] && $setting['invitation']['code'] == $_GET['icode'])) {
- $return .= <<<EOF
-
- EOF;
- if($bmbtnshow) {
- $return .= <<<EOF
-
- EOF;
- if($setting['onlyappbymejoin']) {
- $return .= <<<EOF
- <a href="javascript:" onclick="showDialog('璇蜂笅杞芥墜鏈篈PP瀹㈡埛绔�姤鍚�','confirm','','parent.location.href=\'{$_G['cache']['plugin']['xj_event']['appurl']}\'');" class="bm_btn">鎴戣�鍙傚姞</a>
-
- EOF;
- } elseif($setting['onlysubscribeweixin'] && $weixinsubscribe!=1) {
- $return .= <<<EOF
- <a href="javascript:" onclick="showDialog('璇峰厛鍏虫敞寰�俊鍙峰啀鎶ュ悕','confirm','','parent.location.href=\'{$_G['cache']['plugin']['xj_event']['weixinurl']}\'');" class="bm_btn">鎴戣�鍙傚姞</a>
-
- EOF;
- } else {
- $return .= <<<EOF
- <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>
-
- EOF;
- }
- $return .= <<<EOF
-
- EOF;
- }
- $return .= <<<EOF
-
- EOF;
- if($setting['reply'] && $replys<1) {
- $return .= <<<EOF
- <a href="javascript:" class="bm_btn2">鍥炲�鍚庡彲浠ユ姤鍚�</a>
-
- EOF;
- }
- $return .= <<<EOF
-
- EOF;
- }
- $return .= <<<EOF
-
- EOF;
- } elseif($items['activitybegin']>$timestamp and $verify==null) {
- $return .= <<<EOF
- <a href="javascript:" class="bm_btn2">鎶ュ悕杩樻湭寮€濮�</a>
-
- EOF;
- } else {
- $return .= <<<EOF
-
- EOF;
- if($verify==0) {
- $return .= <<<EOF
-
- EOF;
- if(!$pay_state) {
- $return .= <<<EOF
- <a href="javascript:" onclick="showDialog($('canceljoin').innerHTML, 'info', '鍙栨秷鎶ュ悕')" class="bm_btn">鍙栨秷鎶ュ悕</a>
- <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>
-
- EOF;
- }
- $return .= <<<EOF
-
- EOF;
- if($setting['eventpay']) {
- $return .= <<<EOF
-
- EOF;
- if($pay_state) {
- $return .= <<<EOF
- <a href="javascript:" class="pay_btn" style="background-color:#06C; border:#06C;">璐圭敤宸蹭粯寰呭�鏍�</a>
-
- EOF;
- } else {
- $return .= <<<EOF
- <a href="plugin.php?id=xj_event:event_pay&tid={$items['tid']}" class="pay_btn">鏀�粯璐圭敤</a>
-
- EOF;
- }
- $return .= <<<EOF
-
- EOF;
- }
- $return .= <<<EOF
-
- EOF;
- } else {
- $return .= <<<EOF
-
- EOF;
- if($setting['eventzy_enable']) {
- $return .= <<<EOF
- <a href="forum.php?mod=post&action=newthread&fid=
- EOF;
- if($setting['eventzy_fid']) {
- $return .= <<<EOF
- {$setting['eventzy_fid']}
- EOF;
- } else {
- $return .= <<<EOF
- {$_G['fid']}
- EOF;
- }
- $return .= <<<EOF
- &eid={$items['eid']}" class="bm_btn3" title="鎭�枩锛佹偍鐨勬姤鍚嶅凡琚��鏍搁€氳繃锛岀幇鍦ㄥ彲浠ュ彂琛ㄦ椿鍔ㄤ綔涓氫簡锛�">鍙戣〃娲诲姩{$setting['eventzy_name']}</a>
-
- EOF;
- }
- $return .= <<<EOF
-
- EOF;
- if($setting['canceljoin']==1 && $items['activityexpiration']>$timestamp) {
- $return .= <<<EOF
- <a href="javascript:" onclick="showDialog($('canceljoin').innerHTML, 'info', '鍙栨秷鎶ュ悕')" class="bm_btn" style="margin-top:10px;">鍙栨秷鎶ュ悕</a>
- <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>
-
- EOF;
- }
- $return .= <<<EOF
-
-
- EOF;
- if($setting['seccode']) {
- $return .= <<<EOF
- <div>
- 鎮ㄥ凡鎴愬姛鎶ュ悕娲诲姩锛屾姤鍚嶉獙璇佺爜:<span class="robgz">{$apply['seccode']}</span>
- </div>
-
- EOF;
- }
- $return .= <<<EOF
-
- EOF;
- }
- $return .= <<<EOF
-
-
- EOF;
- }
- $return .= <<<EOF
-
-
- EOF;
- }
- $return .= <<<EOF
-
- EOF;
- }
- $return .= <<<EOF
-
- EOF;
- }
- $return .= <<<EOF
- <!--线下活动按钮end-->
-
- </div>
- <div style="width:360px; float:right; text-align:center; padding-top:10px;"><img src="{$imgurl}" width="360" /></div>
- EOF;
- } elseif($items['postclass']==2) {
- $return .= <<<EOF
- <div style="color:#777;line-height:26px; font-size:14px; font-family:'Microsoft YaHei'; width:320px; float:left;"> <span class="eventtitle">娲诲姩鏂瑰紡:</span> {$postclass}<br />
- <span class="eventtitle">娲诲姩绫诲瀷:</span> {$eventclass['1']}<br />
- <span class="eventtitle">寮€濮嬫椂闂�:</span> {$starttime}<br />
- <span class="eventtitle">缁撴潫鏃堕棿:</span> {$endtime}<br />
- <span class="eventtitle">娲诲姩鍦板尯:</span> {$items['province']}{$citys}<br />
-
- EOF;
- if($items['use_extcredits_num']>0) {
- $return .= <<<EOF
- <span class="eventtitle">鍙備笌绉�垎:</span> {$items['use_extcredits_num']} {$extcredit_title}<br />
-
- EOF;
- }
- $return .= <<<EOF
- <span class="eventtitle">鍙傚姞浜烘暟:</span>
-
- EOF;
- if($items['event_number']==0) {
- $return .= <<<EOF
- 涓嶉檺
-
- EOF;
- } else {
- $return .= <<<EOF
- <span class="robgz">{$items['event_number']} 浜�</span>
-
- EOF;
- }
- $return .= <<<EOF
- <br />
- <span class="eventtitle">鎶ュ悕浜烘暟:</span> <span class="robgz">{$applycountnumber}</span> 浜� 寰呭�鏍� <span class="robgz">{$applycountnumberd}</span> 浜�<br />
-
- EOF;
- if($setting['cost']) {
- $return .= <<<EOF
- <span class="eventtitle">鍙傚姞璐圭敤:</span>
- EOF;
- if(is_array($setting['cost'])) foreach($setting['cost'] as $value) {
- $return .= <<<EOF
- {$value['cost_name']}{$value['cost_price']}鍏�
- EOF;
- }
- $return .= <<<EOF
- <br />
-
- EOF;
- } else {
- $return .= <<<EOF
- <span class="eventtitle">鍙傚姞璐圭敤:</span> {$items['use_cost']} 鍏�<br />
-
- EOF;
- }
- $return .= <<<EOF
-
- EOF;
- if($setting['vip_discount']) {
- $return .= <<<EOF
- <span class="eventtitle">VIP浼樻儬浠�:</span> <span class="robgz">{$setting['vip_discount']}鎶�</span><br />
-
- EOF;
- }
- $return .= <<<EOF
- <span class="eventtitle">鎶ュ悕鎴��:</span> <span class="robgz">{$activityexpiration}</span><br />
-
-
- EOF;
- if(is_array($setting['moreitem'])) foreach($setting['moreitem'] as $value) {
- $return .= <<<EOF
- <span class="eventtitle">{$value['itemname']}:</span> {$value['itemcontent']}<br />
-
- EOF;
- }
- $return .= <<<EOF
-
-
- <br />
- <!--线上活动按钮-->
- <!--条件当前时间小于(活动结束)的时间-->
-
- EOF;
- if($timestamp<$items['endtime']) {
- $return .= <<<EOF
- <!--过了报名时间,没有报名的-->
-
- EOF;
- if($items['activityexpiration']<=$timestamp and $verify==null) {
- $return .= <<<EOF
- <a href="javascript:" class="bm_btn2" title="鎶ュ悕鎴��">鎶ュ悕鎴��</a>
-
- EOF;
- } else {
- $return .= <<<EOF
-
-
- EOF;
- if(!$_G['uid']) {
- $return .= <<<EOF
- <a href="member.php?mod=logging&action=login" onclick="showWindow('login', this.href);return false;" class="bm_btn2" title="璇风櫥褰曞悗鎶ュ悕锛�">鎴戣�鍙傚姞(璇风櫥褰�)</a>
-
- EOF;
- } else {
- $return .= <<<EOF
-
- EOF;
- if($items['activitybegin']<$timestamp and $items['activityexpiration']>$timestamp and $verify==null) {
- $return .= <<<EOF
-
- EOF;
- if(!$setting['invitation']['open'] || ($setting['invitation']['open'] && $setting['invitation']['code'] == $_GET['icode'])) {
- $return .= <<<EOF
-
- EOF;
- if($bmbtnshow) {
- $return .= <<<EOF
- <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>
-
- EOF;
- }
- $return .= <<<EOF
-
- EOF;
- if($setting['reply'] && $replys<1) {
- $return .= <<<EOF
- <a href="javascript:" class="bm_btn2">鍥炲�鍚庡彲浠ユ姤鍚�</a>
-
- EOF;
- }
- $return .= <<<EOF
-
- EOF;
- }
- $return .= <<<EOF
-
- EOF;
- } elseif($items['activitybegin']>$timestamp and $verify==null) {
- $return .= <<<EOF
- <a href="javascript:" class="bm_btn2">鎶ュ悕杩樻湭寮€濮�</a>
-
- EOF;
- } else {
- $return .= <<<EOF
-
- EOF;
- if($verify==0) {
- $return .= <<<EOF
-
- EOF;
- if(!$pay_state) {
- $return .= <<<EOF
- <a href="javascript:" onclick="showDialog($('canceljoin').innerHTML, 'info', '鍙栨秷鎶ュ悕')" class="bm_btn">鍙栨秷鎶ュ悕</a>
- <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>
-
- EOF;
- }
- $return .= <<<EOF
-
- EOF;
- if($setting['eventpay']) {
- $return .= <<<EOF
-
- EOF;
- if($pay_state) {
- $return .= <<<EOF
- <a href="javascript:" class="pay_btn" style="background-color:#06C; border:#06C;">璐圭敤宸蹭粯寰呭�鏍�</a>
-
- EOF;
- } else {
- $return .= <<<EOF
- <a href="plugin.php?id=xj_event:event_pay&tid={$items['tid']}" class="pay_btn">鏀�粯璐圭敤</a>
-
- EOF;
- }
- $return .= <<<EOF
-
- EOF;
- }
- $return .= <<<EOF
-
- EOF;
- } else {
- $return .= <<<EOF
- <a href="forum.php?mod=post&action=newthread&fid=
- EOF;
- if($setting['eventzy_fid']) {
- $return .= <<<EOF
- {$setting['eventzy_fid']}
- EOF;
- } else {
- $return .= <<<EOF
- {$_G['fid']}
- EOF;
- }
- $return .= <<<EOF
- &eid={$items['eid']}" class="bm_btn3" title="鎭�枩锛佹偍鐨勬姤鍚嶅凡琚��鏍搁€氳繃锛岀幇鍦ㄥ彲浠ュ彂琛ㄦ椿鍔ㄤ綔涓氫簡锛�">鍙戣〃娲诲姩{$setting['eventzy_name']}</a>
-
- EOF;
- if($setting['canceljoin']==1 && $items['activityexpiration']>$timestamp) {
- $return .= <<<EOF
- <a href="javascript:" onclick="showDialog($('canceljoin').innerHTML, 'info', '鍙栨秷鎶ュ悕')" class="bm_btn" style="margin-top:10px;">鍙栨秷鎶ュ悕</a>
- <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>
-
- EOF;
- }
- $return .= <<<EOF
-
- EOF;
- if($setting['seccode']) {
- $return .= <<<EOF
- <div>
- 鎮ㄥ凡鎴愬姛鎶ュ悕娲诲姩锛屾姤鍚嶉獙璇佺爜:<span class="robgz">{$apply['seccode']}</span>
- </div>
-
- EOF;
- }
- $return .= <<<EOF
-
- EOF;
- }
- $return .= <<<EOF
-
-
- EOF;
- }
- $return .= <<<EOF
-
-
- EOF;
- }
- $return .= <<<EOF
-
- EOF;
- }
- $return .= <<<EOF
-
- EOF;
- }
- $return .= <<<EOF
- <!--线上活动按钮end-->
-
-
-
-
- </div>
-
-
- <div style="width:360px; float:right; text-align:center; padding-top:10px;"><img src="{$imgurl}" width="360"/></div>
- EOF;
- } if($items['verify'] == 1) {
- $return .= <<<EOF
- <img src="source/plugin/xj_event/images/rz.png" border="0" style="position:absolute; margin-top:100px; margin-left:290px;"/>
- EOF;
- }
- $return .= <<<EOF
- </div>
- <div class="xjmain" id="event2">
- <div style="color:#CCCCCC;">
- </div>
- <div id="event2_content">
- </div>
- </div>
- <script type="text/javascript">
- $('event2').style.display="none";
- function remenu(a){
- if(a == 2){
- ajaxget('plugin.php?id=xj_event:event_threadlist&eid={$items['eid']}&fid={$_G['fid']}','event2_content','','','','');
- }
- for(i=1;i<=2;i++){
- EOF;
- if(!$setting['eventzy_enable']) {
- $return .= <<<EOF
- if(i==2){
- continue;
- }
- EOF;
- }
- $return .= <<<EOF
- if(i==a){
- $('event'+i).style.display="block";
- $('xjmenu'+i).className='xjmenu_a';
- //document.getElementById('xjmenu'+i).className='xjmenu_a';
- //document.getElementById('postclass').value=i;
- }else{
- $('event'+i).style.display="none";
- $('xjmenu'+i).className='xjmenu_b';
- //document.getElementById('xjmenu'+i).className='xjmenu_b';
- }
- }
- }
- function userlist_menu(a){
- for(i=1;i<=3;i++){
- if(i==a){
- $('userlistmenu'+i).className='ulmenu1';
- }else{
- $('userlistmenu'+i).className='ulmenu2';
- }
- }
- if(a==1){
- ajaxget('plugin.php?id=xj_event:event_userlist&tid={$_GET['tid']}','joinlist_content');
- }else if(a==2){
- ajaxget('plugin.php?id=xj_event:event_userlist&tid={$_GET['tid']}&action=pass','joinlist_content');
- }else if(a==3){
- ajaxget('plugin.php?id=xj_event:event_userlist&tid={$_GET['tid']}&action=nopass','joinlist_content');
- }
- }
- </script>
- EOF;
- if($_G['uid'] == $_G['thread']['authorid'] or $_G['groupid']==1 or $event_admin) { if($setting['seccode']) {
- $return .= <<<EOF
- <div style="clear:both; height:20px;"></div>
- <div style="line-height:26px;"><span class="robgz">娲诲姩鍏ュ満鍒搁獙璇�:</span></div>
- <div style=" background-color:#e5edf2; border:1px solid #c2d5e3; padding:30px; margin-bottom:10px; text-align:center;">
- EOF;
- if($setting['nodaibaoming']) {
- $return .= <<<EOF
- <form name="checkseccode" method="post" action="plugin.php?id=xj_event:event_join_single&action=checkseccode&eid={$items['eid']}&tid={$tid}" target="_blank">
- EOF;
- } else {
- $return .= <<<EOF
- <form name="checkseccode" method="post" action="plugin.php?id=xj_event:event_join&action=checkseccode&eid={$items['eid']}&tid={$tid}" target="_blank">
- EOF;
- }
- $return .= <<<EOF
- <input type="hidden" name="formhash" value="{$_G['formhash']}" />
- 鎶ュ悕楠岃瘉鐮�:<input name="seccode" type="text" class="px" /> <button type="submit" name="checksubmit" class="pn pnc vm"><strong>楠岃瘉</strong></button>
- </form>
- </div>
- EOF;
- } } if($setting['invitation']['open'] && ($_G['uid'] == $_G['thread']['authorid'] or $_G['groupid']==1 or $event_admin) ) {
- $return .= <<<EOF
- <div style="clear:both; margin-bottom:10px; height:10px;"></div>
- <div style="padding:20px; border:1px solid #e5e5e5; background-color:#fcfcfc;">
- 閭€璇锋姤鍚嶉摼鎺�: <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>
- </div>
- <script src="source/plugin/xj_event/js/ZeroClipboard.js" type="text/javascript"></script>
- <script type="text/javascript">
- // 定义一个新的复制对象
- var clip = new ZeroClipboard( document.getElementById("d_clip_button"), {
- moviePath: "source/plugin/xj_event/js/ZeroClipboard.swf"
- } );
- // 复制内容到剪贴板成功后的操作
- clip.on( 'complete', function(client, args) {
- alert("澶嶅埗鎴愬姛");
- } );
- </script>
- EOF;
- }
- $return .= <<<EOF
- <div style="clear:both; height:10px;"></div>
- <div style=" margin-bottom:10px;" id='joinlist_content'></div>
- EOF;
- if($_G['uid'] == $_G['thread']['authorid'] or $_G['groupid']==1 or $event_admin) {
- $return .= <<<EOF
- <div style=" border-bottom:1px dashed #bbbbbb; clear:both;"></div>
- <div style="color:#777;line-height:32px; padding-left:10px;"> <span class="robgz">娲诲姩绠$悊: </span>
- <a href="javascript:" id="menu3" class="eventmenu" onclick="showWindow('setting', 'plugin.php?id=xj_event:event_setting&tid={$tid}')">娲诲姩璁剧疆</a>
- <a href="plugin.php?id=xj_event:event_joinmanage&tid={$tid}" id="menu1" class="eventmenu" target="_blank">鎶ュ悕绠$悊</a>
- <a href="javascript:" id="menu2" class="eventmenu" onclick="showWindow('accessmanage', 'plugin.php?id=xj_event:event_accessmanage&tid={$tid}')" title="瀵瑰弬鍔犳椿鍔ㄤ細鍛樿繘琛岃瘎浠�">璇勪环绠$悊</a>
- EOF;
- if($setting['eventzy_enable']) {
- $return .= <<<EOF
- <a href="plugin.php?id=xj_event:event_zymanage&eid={$items['eid']}" target="_blank" class="eventmenu" title="鎶婅创瀛愬叧鑱斿埌娲诲姩{$setting['eventzy_name']}">鍏宠仈{$setting['eventzy_name']}</a>
- EOF;
- }
- $return .= <<<EOF
- <a href="javascript:" id="menu4" class="eventmenu" onclick="showWindow('applymessage', 'plugin.php?id=xj_event:event_message&tid={$tid}')" title="瀵瑰弬鍔犳椿鍔ㄤ細鍛樿繘琛岀兢鍙戞秷鎭�拰鎻愰啋鐨勫姛鑳�">閫氱煡鎻愰啋</a>
- <a href="javascript:" id="menu4" class="eventmenu" onclick="showWindow('applysms', 'plugin.php?id=xj_event:event_sms&tid={$tid}')" title="瀵瑰弬鍔犳椿鍔ㄤ細鍛樿繘琛岀兢鍙戞秷鎭�拰鎻愰啋鐨勫姛鑳�">鐭�俊缇ゅ彂</a>
- <a href="forum.php?mod=post&action=newthread&fid={$_G['fid']}&eid={$items['eid']}&sort=1" id="menu5" class="eventmenu" title="鍙戣〃鏈��娲诲姩鐨勫洖椤捐创">娲诲姩鍥為【</a>
-
- EOF;
- if($_G['groupid']==1) {
- $return .= <<<EOF
-
- EOF;
- if($items['verify'] == 0) {
- $return .= <<<EOF
- <a href="plugin.php?id=xj_event:event_rz&tid={$tid}&action=confirm&formhash={$_G['formhash']}" id="menu5" class="eventmenu">璁よ瘉娲诲姩</a>
-
- EOF;
- } else {
- $return .= <<<EOF
- <a href="plugin.php?id=xj_event:event_rz&tid={$tid}&action=cancel&formhash={$_G['formhash']}" id="menu5" class="eventmenu">鍙栨秷璁よ瘉</a>
-
- EOF;
- }
- $return .= <<<EOF
-
- EOF;
- }
- $return .= <<<EOF
- <a href="plugin.php?id=xj_event:project_setting&tid={$tid}" id="menu6" class="eventmenu" title="鍙戣〃鏈��娲诲姩鐨勫洖椤捐创">璁剧疆涓撻�</a>
- <a href="plugin.php?id=xj_event:lottery_setting&act=cjsz&tid={$tid}" id="menu7" class="eventmenu" title="娲诲姩鎶藉�">娲诲姩鎶藉�</a>
- </div>
- EOF;
- }
- $return .= <<<EOF
- <div style=" border-bottom:1px dashed #bbbbbb; clear:both; margin-bottom:10px;"></div>
- <div id="canceljoin" style="display:none">
- <div style="width:300px; height:70px; text-align:center; line-height:60px; font-weight:bold; font-size:14px;"> 鏄�惁鍙栨秷鎶ュ悕锛� </div>
- <em class="xi1" id="return_canceljoin"></em>
- <div class="o pns">
- <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>
- </div>
- </div>
- <script type="text/javascript">
- function verifyform(){
- EOF;
- if($setting['session']) {
- $return .= <<<EOF
- if($('activity').session.value == ''){
- alert('鎶ュ悕椤硅�濉�啓瀹屾暣锛�');
- return false;
- }
- EOF;
- } if(is_array($selectuserfield)) foreach($selectuserfield as $fieldid) { if($_G['cache']['profilesetting'][$fieldid]['formtype'] == 'checkbox') {
- $return .= <<<EOF
- if($('activity').{$fieldid}.checked == false){
- alert('鎶ュ悕椤硅�濉�啓瀹屾暣锛�');
- return false;
- }
- EOF;
- } else {
- $return .= <<<EOF
- if($('activity').{$fieldid}.value == ''){
- alert('鎶ュ悕椤硅�濉�啓瀹屾暣锛�');
- return false;
- }
- EOF;
- } }
- $return .= <<<EOF
- return true;
- }
-
-
-
- function gbcount(message)
- {
- var max;
- max = 70;
- if (message.value.length > max) {
- message.value = message.value.substring(0,max);
- $('remain').innerHTML = 0;
- showDialog('娑堟伅涓嶈兘瓒呰繃70涓�瓧绗︼紒', 'alert', '');
- }else{
- $('remain').innerHTML = max - message.value.length;
- }
- }
- function cancelfull(){
- showDialog('鍙栨秷鎴愬姛锛�', 'right', '', 'location.href="'+window.location.href+'"');
- }
- function succeedhandle_activityapplies(locationhref, message) {
- showDialog(message, 'right', '', 'location.href="' + locationhref + '"');
- }
- EOF;
- if(!empty($_GET['menu'])) {
- $return .= <<<EOF
- remenu({$_GET['menu']});
- EOF;
- }
- $return .= <<<EOF
- </script>
- <script language="javascript">
- ajaxget('plugin.php?id=xj_event:event_userlist&tid={$_GET['tid']}','joinlist_content');
- </script>
- <div id="eventjoin" style="display:none">
- <iframe id="eventjoin_iframe" width="500" height="400" frameborder="0" src=""></iframe>
- </div>
- <div id="modifyjoin" style="display:none">
- <iframe id="modifyjoin_iframe" width="500" height="400" frameborder="0" src=""></iframe>
- </div>
- EOF;
- ?>
|