<!--{eval $_TPL['titles'] = array('Event');}-->
<!--{template header}-->
<!--{if !empty($_SGLOBAL[inajax])}-->
<div id="space_event">
<h3 class="feed_header">
<a href="cp.php?ac=event" class="r_option" target="_blank">Events</a>
Total ($count Events)</h3>
<!--{if $eventlist}-->
<ul class="line_list">
<!--{loop $eventlist $event}-->
<li>
<p class="r_option">
<!--{if $event[grade] == 0}-->
<span class="event_state">Pending</span>
<!--{/if}-->
<!--{if $event[endtime]<$_SGLOBAL[timestamp]}-->
<span class="event_state">Finished</span>
<!--{elseif $event[deadline]<$_SGLOBAL[timestamp]}-->
<span class="event_state">Participate Last Date</span>
<!--{/if}-->
</p>
<h4><a href="space.php?do=event&id=$event[eventid]" target="_blank">$event[title]</a><span class="gray">[<!--{$_SGLOBAL[eventclass][$event[classid]][classname]}-->]</span></h4>
<p><span class="gray">Time:</span> <!--{eval echo sgmdate("mÔÂdÈÕ H:i", $event[starttime])}--> - <!--{eval echo sgmdate("mÔÂdÈÕ H:i", $event[endtime])}--></p>
<p><span class="gray">Location:</span> $event[province] $event[city] $event[location]</p>
</li>
<!--{/loop}-->
</ul>
<div class="page">$multi</div>
<!--{else}-->
<div class="c_form">Not-related activities.</div>
<!--{/if}-->
</div><br>
<!--{else}-->
<!--{if $space[self]}-->
<div class="searchbar floatright">
<form method="get" action="space.php">
<input name="searchkey" value="" size="15" class="t_input" type="text">
<input name="searchsubmit" value="Search Event" class="submit" type="submit">
<input type="hidden" name="searchmode" value="1" />
<input type="hidden" name="do" value="event" />
<input type="hidden" name="view" value="all" />
</form>
</div>
<h2 class="title"><img src="image/app/event.gif" />Event</h2>
<div class="tabs_header">
<ul class="tabs">
<li $menu[all]><a href="space.php?do=event&view=all"><span>All Event</span></a></li>
<li $menu[recommend]><a href="space.php?do=event&view=recommend"><span>Recommended Event</span></a></li>
<li $menu[city]><a href="space.php?do=event&view=city"><span>Local Event</span></a></li>
<!--{if $space[friendnum]}-->
<li $menu[friend]><a href="space.php?do=event&view=friend"><span>Friend's Event</span></a></li>
<!--{/if}-->
<li $menu[me]><a href="space.php?uid=$space[uid]&do=event&view=me"><span>My Event</span></a></li>
<li class="null"><a href="cp.php?ac=event" class="t_button">Create New Event</a></li>
</ul>
</div>
<!--{else}-->
<!--{eval
$_TPL['spacetitle'] = "Event";
$_TPL['spacemenus'][] = "<a href=\"space.php?uid=$space[uid]&do=event&view=me\">Friends all Event</a>";
}-->
<!--{template space_menu}-->
<!--{/if}-->
<div class="h_status">
<!--{if $menu[all]}-->
<a $submenus[going] href="space.php?do=event&view=all&type=going">Going on</a>
<span class="pipe">|</span><a $submenus[over] href="space.php?do=event&view=all&type=over">Finished</a>
<!--{elseif $menu[recommend]}-->
<a $submenus[hot] href="space.php?do=event&view=recommend&type=hot">Top Event</a>
<span class="pipe">|</span><a $submenus[admin] href="space.php?do=event&view=recommend&type=admin">Best of Best</a>
<!--{elseif $menu[city]}-->
<a $submenus[going] href="space.php?do=event&view=city&type=going">Going on Event</a>
<span class="pipe">|</span><a $submenus[over] href="space.php?do=event&view=city&type=over">Finished</a>
<!--{elseif $menu[friend]}-->
<a $submenus[all] href="space.php?do=event&view=friend&type=all">All</a>
<span class="pipe">|</span><a $submenus[join] href="space.php?do=event&view=friend&type=join">Join Event</a>
<span class="pipe">|</span><a $submenus[follow] href="space.php?do=event&view=friend&type=follow">May be join</a>
<span class="pipe">|</span><a $submenus[org] href="space.php?do=event&view=friend&type=org">Organizations</a>
<!--{elseif $menu[me]}-->
<a $submenus[all] href="space.php?uid=$space[uid]&do=event&view=me&type=all">All</a>
<span class="pipe">|</span><a $submenus[join] href="space.php?uid=$space[uid]&do=event&view=me&type=join">Join Event</a>
<span class="pipe">|</span><a $submenus[follow] href="space.php?uid=$space[uid]&do=event&view=me&type=follow">May be Join</a>
<span class="pipe">|</span><a $submenus[org] href="space.php?uid=$space[uid]&do=event&view=me&type=org">Organizations</a>
<!--{/if}-->
</div>
<!--{if $searchkey}-->
<div class="h_status">Event search <span style="color:red;font-weight:bold;">$searchkey</span> results</div>
<!--{/if}-->
<div id="content">
<!--{if $view == "all" && !empty($recommendevents)}-->
<div class="rec_event_list">
<h2>
<div class="r_option"><a href="space.php?do=event&view=recommend&type=admin">More</a></div>
Best of Best
</h2>
<ol>
<!--{loop $recommendevents $key $value}-->
<li>
<div class="event_icon">
<a href="space.php?do=event&id=$value[eventid]"><img class="poster_pre" src="$value[pic]" alt="$value[title]" onerror="this.src='$_SGLOBAL[eventclass][$value[classid]][poster]'"></a>
</div>
<div class="event_content">
<h4><a href="space.php?do=event&id=$value[eventid]">$value[title]</a> <span class="gray">[<!--{$_SGLOBAL[eventclass][$value[classid]][classname]}-->]</span></h4>
<p>Time: <!--{eval echo sgmdate("mÔÂdÈÕ H:i", $value[starttime])}--> - <!--{eval echo sgmdate("mÔÂdÈÕ H:i", $value[endtime])}--></p>
</div>
</li>
<!--{/loop}-->
</ol>
</div>
<!--{/if}-->
<!--{if $view == "city"}-->
<div>
<!--{if $_GET[city]}-->
Now! You can browse <b>$_GET[province] - $_GET[city]</b> Events.
<a href="#" onclick="$('viewcityevents').style.display=''; this.blur(); return false;">Browse other city.</a>
<!--{elseif $_GET[province]}-->
You can now browse the $_GET[province] event.
<!--{if $space[province] == $_GET[province] && $space[city]}-->
You can also just browse <a href="space.php?do=event&view=city&province=$space[province]&city=$space[city]">$space[city]</a> events.
<!--{/if}-->
<a href="#" onclick="$('viewcityevents').style.display=''; this.blur(); return false;">Browse other cities.</a>
<!--{/if}-->
<script type="text/javascript" src="source/script_city.js"></script>
<form id="viewcityevents" action="space.php" method="GET" style="display:none;">
<input type="hidden" name="do" value="event" />
<input type="hidden" name="view" value="city" />
<span id="eventcitybox"></span>
<script type="text/javascript">
showprovince('province', 'city', '$_GET[province]', 'eventcitybox');
showcity('city', '$_GET[city]', 'province', 'eventcitybox');
</script>
<input class="submit" type="submit" value="Browse" />
</form>
<!--{if !$space[resideprovince]}-->
<div class="c_form">
You have not set any default city, <a href="cp.php?ac=profile" target="_blank">click here to set</a> your city.
</div>
<!--{/if}-->
</div>
<!--{/if}-->
<!--{if !empty($eventlist)}-->
<div class="event_list">
<ol>
<!--{eval $hiddecount = 0}-->
<!--{loop $eventlist $key $event}-->
<!--{if $event[uid] != $_SGLOBAL[supe_uid] && ($event[grade]==0 || ($event[public]==0 && ($_GET[view]!='me' || $_GET[uid] != $_SGLOBAL[supe_uid])))}-->
<!--{eval $hiddencount = $hiddencount + 1}-->
<!--{else}-->
<li>
<div class="event_icon">
<a href="space.php?do=event&id=$event[eventid]"><img class="poster_pre" src="$event[pic]" alt="$event[title]" onerror="this.src='$_SGLOBAL[eventclass][$event[classid]][poster]'"></a>
</div>
<div class="event_content">
<h4 class="event_title"><a href="space.php?do=event&id=$event[eventid]">$event[title]</a><span class="gray">[<!--{$_SGLOBAL[eventclass][$event[classid]][classname]}-->]</span></h4>
<ul>
<li>
<span class="gray">Time: </span> <!--{eval echo sgmdate("mÔÂdÈÕ H:i", $event[starttime])}--> - <!--{eval echo sgmdate("mÔÂdÈÕ H:i", $event[endtime])}-->
<!--{if $event[grade] == 0}-->
<span class="event_state"> Pending</span>
<!--{/if}-->
<!--{if $event[endtime]<$_SGLOBAL[timestamp]}-->
<span class="event_state"> finished</span>
<!--{elseif $event[deadline]<$_SGLOBAL[timestamp]}-->
<span class="event_state"> Last entry date:</span>
<!--{/if}-->
</li>
<li><span class="gray">Location:</span>
<a href="space.php?uid=$_GET[uid]&do=event&view=$view&type=$type&classid=$_GET[classid]&province=$event[province]&date=$_GET[date]">$event[province]</a>
<a href="space.php?uid=$_GET[uid]&do=event&view=$view&type=$type&classid=$_GET[classid]&province=$event[province]&city=$event[city]&date=$_GET[date]">$event[city]</a>
$event[location]
</li>
<li><span class="gray">Posted:</span> <a href="space.php?uid=$event[uid]">$_SN[$event[uid]]</a></li>
<!--{if $fevents[$event[eventid]]}-->
<li><span class="gray">Friends:</span>
<!--{loop $fevents[$event[eventid]] $value}-->
<a href="space.php?uid=$value[fuid]">$_SN[$value[fuid]]</a>
<!--{if $value[status] == 2}--><span class="gray">Attending</span>
<!--{elseif $value[status] == 3}--><span class="gray">Organizers</span>
<!--{elseif $value[status] == 4}--><span class="gray">Creator</span>
<!--{else}--><span class="gray">interested</span>
<!--{/if}-->
<!--{/loop}-->
</li>
<!--{/if}-->
<li style="margin: 5px 0 0;">$event[viewnum] Views $event[membernum] Attending $event[follownum] interested</li>
</ul>
</div>
</li>
<!--{/if}-->
<!--{/loop}-->
</ol>
<!--{if $hiddencount}-->
<div>This page has $hiddencount events, due to privacy settings.</div>
<!--{/if}-->
<div class="page">$multi</div>
</div>
<!--{else}-->
<div class="c_form">
<!--{if $view == "me"}-->
There is no related activities.
<!--{else}-->
<br/>
Not-related activities. You can <a href="cp.php?ac=event">create new event</a>
<!--{/if}-->
</div>
<!--{/if}-->
</div><!--//×ó²àÄÚÈݽáÊø//-->
<div id="sidebar">
<!--{if $view == "all"}-->
<div class="sidebox">
<h2 class="title">
<p class="r_option">
<a href="space.php?uid=$_GET[uid]&do=event&view=$view&type=$type&classid=$_GET[classid]&province=$_GET[province]&city=$_GET[city]">All</a>
</p>
Calender
</h2>
<div class="calendarbox" id="eventcalendar"></div>
</div>
<script type="text/javascript" charset="$_SC[charset]">
function showcalendar(month){
var month = month ? "&month="+month : "";
ajaxget('cp.php?ac=event&op=calendar' + month + '&date=$_GET[date]&url=<!--{eval echo urlencode($theurl)}-->', 'eventcalendar');
}
showcalendar();
</script>
<!--{/if}-->
<!--{if $view != 'friend'}-->
<div class="sidebox">
<h2 class="title">
<p class="r_option">
<a href="space.php?uid=$_GET[uid]&do=event&view=$view&type=$type&date=$_GET[date]&uid=$_GET[uid]">All</a>
</p>
Categories
</h2>
<ul class="event_cat">
<!--{loop $_SGLOBAL[eventclass] $value}-->
<li<!--{if $_GET[classid] == $value[classid]}--> class="on"<!--{/if}-->>
<a href="space.php?uid=$_GET[uid]&do=event&view=$view&type=$type&classid=$value[classid]&province=$_GET[province]&city=$_GET[city]&date=$_GET[date]">$value[classname]</a></li>
<!--{/loop}-->
</ul>
</div>
<!--{/if}-->
<!--{if $followevents}-->
<div class="sidebox">
<h2 class="title">
<div class="r_option"><a href="space.php?do=event&view=me&type=follow">¸ü¶à</a></div>
I am Interested in
</h2>
<ul class="attention">
<!--{loop $followevents $value}-->
<li style="height: auto;">
<p>
<a href="space.php?do=event&id=$value[eventid]">$value[title]</a>
</p>
<p class="gray" style="text-align:left">
<!--{if $_SGLOBAL[timestamp] > $value[endtime]}-->
Finished
<!--{else}-->
<!--{eval echo sgmdate("nÔÂjÈÕ",$value[starttime])}-->
<!--{/if}-->
$value[membernum] Attending /
$value[follownum] interested
</p>
<p>
<!--{if $value[threadnum]}-->
<a href="space.php?do=event&id=$value[eventid]&view=thread">
$value[threadnum] Topic
</a>
<!--{/if}-->
<!--{if $value[picnum]}-->
<a href="space.php?do=event&id=$value[eventid]&view=pic">
$value[picnum] Photos
</a>
<!--{/if}-->
</p>
</li>
<!--{/loop}-->
</ul>
</div>
<!--{/if}-->
<!--{if $friendevents}-->
<div class="sidebox">
<h2 class="title">
<div class="r_option"><a href="space.php?do=event&view=friend">More</a></div>
Friends recentely visited Event list
</h2>
<ul class="attention">
<!--{loop $friendevents $value}-->
<li style="height: auto;">
<p>
<a href="space.php?do=event&id=$value[eventid]">$value[title]</a>
</p>
<p class="gray" style="text-align:left">
Friends:
<!--{loop $value[friends] $fuid}-->
<a href="space.php?uid=$fuid" target="_blank">$_SN[$fuid]</a>
<!--{/loop}-->
</p>
<p class="gray" style="text-align:left">
<!--{if $_SGLOBAL[timestamp] > $value[endtime]}-->
Closed
<!--{else}-->
<!--{eval echo sgmdate("nÔÂjÈÕ",$value[starttime])}-->
<!--{/if}-->
$value[membernum] Attending /
$value[follownum] Interested
</p>
<p>
<!--{if $value[threadnum]}-->
<a href="space.php?do=event&id=$value[eventid]&view=thread">
$value[threadnum] Discussion
</a>
<!--{/if}-->
<!--{if $value[picnum]}-->
<a href="space.php?do=event&id=$value[eventid]&view=pic">
$value[picnum] Photos
</a>
<!--{/if}-->
</p>
</li>
<!--{/loop}-->
</ul>
</div>
<!--{/if}-->
<!--{if $hotevents}-->
<div class="sidebox">
<h2 class="title">
<div class="r_option"><a href="space.php?do=event&view=recommend&type=hot">More</a></div>
Popular Events
</h2>
<ul class="attention">
<!--{loop $hotevents $value}-->
<li style="height: auto;">
<p>
<a href="space.php?do=event&id=$value[eventid]">$value[title]</a>
</p>
<p class="gray" style="text-align:left">
<!--{if $_SGLOBAL[timestamp] > $value[endtime]}-->
Finished
<!--{else}-->
<!--{eval echo sgmdate("nÔÂjÈÕ",$value[starttime])}-->
<!--{/if}-->
$value[membernum] attending /
$value[follownum] interested
</p>
<p>
<!--{if $value[threadnum]}-->
<a href="space.php?do=event&id=$value[eventid]&view=thread">
$value[threadnum] Topic
</a>
<!--{/if}-->
<!--{if $value[picnum]}-->
<a href="space.php?do=event&id=$value[eventid]&view=pic">
$value[picnum] Photos
</a>
<!--{/if}-->
</p>
</li>
<!--{/loop}-->
</ul>
</div>
<!--{/if}-->
</div>
<!--{/if}-->
<!--{template footer}-->