<?php if(!defined('IN_DISCUZ')) exit('Access Denied'); hookscriptoutput('list_ajax');?><?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_list_ajax&pc=<?php echo $_GET['pc'];?>&choose=new&offlineclass=<?php echo $_GET['offlineclass'];?>&onlineclass=<?php echo $_GET['onlineclass'];?>','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_list_ajax&pc=<?php echo $_GET['pc'];?>&choose=today&offlineclass=<?php echo $_GET['offlineclass'];?>&onlineclass=<?php echo $_GET['onlineclass'];?>','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_list_ajax&pc=<?php echo $_GET['pc'];?>&choose=soon&offlineclass=<?php echo $_GET['offlineclass'];?>&onlineclass=<?php echo $_GET['onlineclass'];?>','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:100px; 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>
            <div style="float:left; width:580px; line-height:24px;">
            <b class="xj_hll" style="margin-right:5px;"><a href="forum.php?mod=viewthread&amp;tid=<?php echo $value['tid'];?>" target="_blank"><?php echo $value['subject'];?></a></b>
            <?php if($value['starttime']<$_G['timestamp'] && $value['endtime']>$_G['timestamp']) { ?>
            	<img src="source/plugin/xj_event/images/hd_ico1.png" />
            <?php } elseif($value['starttime']>$nowtime) { ?>
                <img src="source/plugin/xj_event/images/hd_ico2.png"/>
            <?php } elseif($value['endtime']<$nowtime) { ?>
                <img src="source/plugin/xj_event/images/hd_ico3.png" />
            <?php } ?>
            <?php if($value['verify']==1) { ?>
            	<i style=" float:right;display:inline-block; height:21px; width:40px; background-color:#00a7ff; color:#FFFFFF; font-size:14px; text-align:center;font-family: '微软雅黑';">官方</i>
            <?php } ?>
            <br />
            <span class="xj_hll">活动组织者:</span><?php echo $value['author'];?>&nbsp;&nbsp;
            <span class="xj_hll">报名:</span><?php echo $value['applynumber'];?>/<?php if($value['event_number']>0) { ?><?php echo $value['event_number'];?>人<?php } else { ?>不限<?php } ?>&nbsp;&nbsp;
            <?php if($value['setting']['eventaa']) { ?>
            AA
            <?php } else { ?>
                <?php if($value['use_cost']>0) { ?>
                    <span class="xj_hll">费用:</span><?php echo $value['use_cost'];?>元/人
                <?php } else { ?> 
                    <span style="color:#FF6600; font-weight:bold;">免费</span>
                <?php } ?>
            <?php } ?>
            &nbsp;&nbsp;
            <span class="xj_hll">活动时间:</span><?php echo $value['starttimestr'];?>&nbsp;&nbsp;
            <?php if($value['zynumber']>0) { ?>
            <span class="xj_hll">作业:</span><?php echo $value['zynumber'];?>个 <a href="forum.php?mod=viewthread&amp;tid=<?php echo $value['tid'];?>&amp;menu=2" class="xi2" target="_blank">[查看]</a>
            <?php } ?>
            <br /> 
            <span style="color:#bbbbbb;"><?php echo $value['message'];?></span>
            </div>
        </div>
    </div>
    <?php } ?>
</div>
<?php if($multipage) { ?>
<div style=" clear:both; height:30px; padding-top:5px;"><?php echo $multipage;?></div>
<?php } include template('common/footer'); ?>