<?php if(!defined('IN_DISCUZ')) exit('Access Denied'); hookscriptoutput('threadlist');?><?php include template('common/header'); ?><div>
排序: <?php if($setting['vote']['openvote'] == 1) { ?><a href="plugin.php?id=xj_event:event_threadlist&amp;eid=<?php echo $eid;?>&amp;order=tp" ajaxtarget="event2_content" class="eventmenu_select">投票</a><?php } ?> <a href="plugin.php?id=xj_event:event_threadlist&amp;eid=<?php echo $eid;?>&amp;order=dj" ajaxtarget="event2_content" class="eventmenu_select">点击</a> <a href="plugin.php?id=xj_event:event_threadlist&amp;eid=<?php echo $eid;?>&amp;order=hf" ajaxtarget="event2_content" class="eventmenu_select">回复</a> <a href="plugin.php?id=xj_event:event_threadlist&amp;eid=<?php echo $eid;?>&amp;order=sj" ajaxtarget="event2_content" class="eventmenu_select">时间</a>
</div>
      <?php if(is_array($threadlist)) foreach($threadlist as $key => $value) { ?>      <div style=" height:80px; margin-right:10px; margin-top:10px; line-height:20px; text-align:center; border-bottom:1px dashed #d0d0d0">
      <a href="forum.php?mod=viewthread&amp;tid=<?php echo $value['tid'];?>" target="_blank">
      <?php if(!empty($value['coverurl'])) { ?>
      <img src="<?php echo $value['coverurl'];?>" height="65" width="65" style="float:left; margin-right:10px; border:4px solid #f0f0f0;" />
      <?php } else { ?>
      <img src="source/plugin/xj_event/images/nopic.jpg" height="65" width="65" style="float:left; margin-right:10px; border:4px solid #f0f0f0;" />
      <?php } ?>
      </a>
      <div style="text-align:left; width:450px; float:left; padding-top:5px;">
      <a href="forum.php?mod=viewthread&amp;tid=<?php echo $value['tid'];?>" target="_blank" style="font-family:'微软雅黑'; font-size:16px; font-weight:bold; color:<?php echo LINK;?>; line-height:18px;"><?php echo $value['subject'];?></a>&nbsp;
      <br />
      <br />
      <span style="color:#5a5a5a;">查看: <b class="robgz"><?php echo $value['views'];?></b> 回复: <b class="robgz"><?php echo $value['replies'];?></b> 支持: <b class="robgz"><?php echo $value['recommend_add'];?></b> 发表于: <?php echo $value['strdateline'];?> </span>
      </div>
      <div style="float:left; width:70px; padding-top:20px;">
      <?php if($setting['vote']['openvote'] == 1) { ?>
      	<?php if($nowtime > $setting['vote']['votestarttime'] && $nowtime < $setting['vote']['voteendtime']) { ?>
      	<a href="plugin.php?id=xj_event:event_vote&amp;tid=<?php echo $value['tid'];?>&amp;eid=<?php echo $eid;?>&amp;formhash=<?php echo $_G['formhash'];?>" onclick="ajaxmenu(this, 3000, 0, 0, '43');return false;" style=" display:inline-block;  width:69px; height:22px; background: url(source/plugin/xj_event/images/tp.png); line-height:22px;"></a>
       	<?php } else { ?>
        <img src="source/plugin/xj_event/images/tp_close.png" align="absmiddle" title="<?php if($nowtime < $setting['vote']['votestarttime']) { ?>投票未开始<?php } if($nowtime > $setting['vote']['voteendtime']) { ?>投票已结束<?php } ?>"/>
        <?php } ?>
        <br />
      	票数:<b class="robgz"><?php echo $value['votes'];?></b>
      <?php } ?>
      </div>
      <div style="width:58px; float:right; padding:0px 10px;"><div class="avt y"><a href="home.php?mod=space&amp;uid=<?php echo $value['authorid'];?>"><?php echo $value['avatar'];?></a></div><div style="width:100px; text-align:left;"><?php echo $value['author'];?></div></div>
      </div>
      <?php } ?>
<div style="clear:both;"></div>
<div style="clear:both; height:30px; padding-top:10px;">
<div style="float:left; width:250px; height:30px; line-height:30px;">
<?php if($myapply>0) { ?>
<a href="forum.php?mod=post&amp;action=newthread&amp;fid=<?php if($setting['eventzy_fid']) { ?><?php echo $setting['eventzy_fid'];?><?php } else { ?><?php echo $fid;?><?php } ?>&amp;eid=<?php echo $eid;?>" target="_blank" class="eventmenu_select">+发表作业</a>
<?php } ?>
 已有<b class="robgz"><?php echo $applynumber;?></b>人参加，<b class="robgz"><?php echo $listcount;?></b>个活动作业</div>
<?php if($multipage) { ?>
<?php echo $multipage;?>
<?php } ?>
</div><?php include template('common/footer'); ?>