<?php if(!defined('IN_DISCUZ')) exit('Access Denied'); hookscriptoutput('event_my');?><?php include template('common/header'); ?><style>
.xjevent{margin:5px 5px;background:url(source/plugin/xj_event/images/xuxian.png) repeat-x 0px 139px; height:100px}
.xjevent b a{ font-size:14px; font-family: "微软雅黑";color:<?php echo $_G['style']['highlightlink'];?>;}
.xj_hll{color:<?php echo $_G['style']['highlightlink'];?>;}
.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;
}
</style>
<div id="wp" class="wp"><div id="pt" class="bm cl">
<div class="z">
<a href="./" class="nvhm" title="首页"><?php echo $_G['setting']['bbname'];?></a> <em>&rsaquo;</em>
<a href="plugin.php?id=xj_event:event_my">活动</a>
</div>
</div>
<div id="ct" class="ct2_a wp cl">
<div class="mn">
<div class="bm bw0">
<h1 class="mt">
我发起的活动
</h1>
<?php if($_GET['act']=='zz') { ?>
<p class="tbmu">我发起的活动: <span class="xi1"><?php echo $listcount;?></span> 次</p>
<?php } elseif($_GET['act']=='cj') { ?>
<p class="tbmu">我参加的活动: <span class="xi1"><?php echo $listcount;?></span> 次</p>
<?php } if($listcount>0) { 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 echo $value['picurl'];?>" 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']<$nowtime && $value['endtime']>$nowtime) { ?>
            	<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;
            <?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 } ?>&nbsp;&nbsp;
            <span class="xj_hll">活动时间:</span><?php echo $value['starttime'];?>&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 } } else { ?>
<p class="emp">暂无数据</p>
<?php } if($multipage) { ?>
<div style=" clear:both; height:30px; padding-top:5px;"><?php echo $multipage;?></div>
<?php } ?>
</div>
</div>
<div class="appl">
<div class="tbn">
<h2 class="mt bbda">活动</h2>
<ul>
<li<?php if($_GET['act']=='zz') { ?> class="a"<?php } ?>><a href="plugin.php?id=xj_event:event_my&amp;act=zz">我发起的活动</a></li>
<li<?php if($_GET['act']=='cj') { ?> class="a"<?php } ?>><a href="plugin.php?id=xj_event:event_my&amp;act=cj">我参加的活动</a></li>
</ul>
</div>
</div>
</div>	</div><?php include template('common/footer'); ?>