<?php if(!defined('IN_DISCUZ')) exit('Access Denied'); hookscriptoutput('center_top');?><?php include template('common/header'); ?><div>
    <div style="color:#858585; border-bottom:1px dashed #cccccc; padding-bottom:8px; padding-left:8px; margin-bottom:10px;">
    快捷选择:<a href="javascript:" onclick="ajaxget('plugin.php?id=xj_event:event_center_top&action=<?php echo $_GET['action'];?>&choose=new','event1','','','','');" class="<?php if($_GET['choose']=='new') { ?>eventmenu_select<?php } else { ?>eventmenu<?php } ?>" id="userlistmenu1">最新</a> | <a href="javascript:" onclick="ajaxget('plugin.php?id=xj_event:event_center_top&action=<?php echo $_GET['action'];?>&choose=today','event1','','','','');" class="<?php if($_GET['choose']=='today') { ?>eventmenu_select<?php } else { ?>eventmenu<?php } ?>" id="userlistmenu2">今日</a> | <a href="javascript:" onclick="ajaxget('plugin.php?id=xj_event:event_center_top&action=<?php echo $_GET['action'];?>&choose=soon','event1','','','','');" class="<?php if($_GET['choose']=='soon') { ?>eventmenu_select<?php } else { ?>eventmenu<?php } ?>" id="userlistmenu3">未来</a>
    </div>
    <?php if(is_array($toplist)) foreach($toplist as $key => $value) { ?>    <div class="xjevent">
        <div style="height:32px;"><b class="xj_hll"><a href="forum.php?mod=viewthread&amp;tid=<?php echo $value['tid'];?>" target="_blank"><?php echo $value['subject'];?></a></b></div>
        <div style="height:95px; margin-top:8px;">
            <a href="forum.php?mod=viewthread&amp;tid=<?php echo $value['tid'];?>" target="_blank"><img src="<?php if($value['activityaid_url']) { ?><?php echo $value['activityaid_url'];?><?php } else { ?>source/plugin/xj_event/images/nopic.jpg<?php } ?>" width="145" height="93" style="float:left; margin-right:8px;" border="0"/></a>
            <?php if($value['postclass'] == 1) { ?>
            	<img src="source/plugin/xj_event/images/img_ico02.png" <?php if(strpos($_SERVER['HTTP_USER_AGENT'],'Maxthon')) { ?>style="position:absolute; margin-top:46px; margin-left:-154px;"<?php } else { ?>style="position:absolute; margin-top:46px; margin-left:-194px;"<?php } ?> />
            <?php } elseif($value['postclass'] == 2) { ?>
            	<img src="source/plugin/xj_event/images/img_ico01.png" <?php if(strpos($_SERVER['HTTP_USER_AGENT'],'Maxthon')) { ?>style="position:absolute; margin-top:46px; margin-left:-154px;"<?php } else { ?>style="position:absolute; margin-top:46px; margin-left:-194px;"<?php } ?> />
            <?php } ?>
            
            <?php if($value['starttime']<$nowtime && $value['endtime']>$nowtime) { ?>
            	<img src="source/plugin/xj_event/images/hd_ico1.png" style="float:left;" />
            <?php } elseif($value['starttime']>$nowtime) { ?>
                <img src="source/plugin/xj_event/images/hd_ico2.png" style="float:left;" />
            <?php } elseif($value['endtime']<$nowtime) { ?>
                <img src="source/plugin/xj_event/images/hd_ico3.png" style="float:left;" />
            <?php } ?><br />
            <span>报名:<?php echo $value['applynumber'];?>/<?php if($value['event_number']>0) { ?><?php echo $value['event_number'];?>人<?php } else { ?>不限<?php } ?></span><br />
            <?php if($value['use_cost']>0) { ?>
            	<span>费用:<?php echo $value['use_cost'];?>元</span><br />
            <?php } ?>
            	<span>[<?php echo $value['citys'];?>]</span><br />
            <?php if($value['verify']==1) { ?>
            	<i style="display:inline-block; height:21px; width:40px; background-color:#00a7ff; color:#FFFFFF; font-size:14px; text-align:center;font-family: '微软雅黑';">官方</i>
            <?php } ?>
            
            
        </div>
    </div>
    <?php } ?>
</div><?php include template('common/footer'); ?>