<!--<?php
print <<<EOT
-->
<style type="text/css">
.tt{border:1px solid $tdcolor;}
.tt table tr td,.tt table tr th{padding:.5em 0 .5em 1em;border-bottom:1px dotted #e4e4e4;}
.tt table tr th{text-align:right;font-weight:normal;}
.tt table{background:$forumcolorone;}
.tt .h{padding-left:1em;padding:0px;}
</style>
<form action="active.php?action=apply" method="post">
<div class="tt">
<table width="100%" align="center" cellspacing="0" cellpadding="0">
<tr><th>活動標題︰</th><td style="text-align:left;padding-left:1em;">$subject
<!--
EOT;
if($endtime < $timestamp){print<<<EOT
-->
<span style="color:red;">（活動已結束）</span>
<!--
EOT;
}print<<<EOT
-->
</td></tr>
<tr>
	<th>活動時間︰</th>
	<td>$active_starttime &nbsp;-&nbsp; $active_endtime</td>
</tr>
<tr>
	<th>活動地點︰</th>
	<td>$active_location</td>
</tr>
<tr>
	<th>人數限制︰</th>
	<td>$active_num</td>
</tr>
<tr>
	<th>已確認參加人數︰</th>
	<td>$act_y 人，[共計報名︰$act_total]
<!--
EOT;
if($authorid==$winduid){ print <<<EOT
-->
[<a href="active.php?action=view&tid=$tid"><font color="red">管理</font></a>]
<!--
EOT;
} print <<<EOT
-->
	</td>
</tr>
<tr>
	<th>性別要求︰</th>
<!--
EOT;
if($active_sexneed=='1'){ print <<<EOT
-->
	<td>僅限男性</td>
<!--
EOT;
}elseif($active_sexneed=='2'){ print <<<EOT
-->
	<td>僅限女性</td>
<!--
EOT;
}else{ print <<<EOT
-->
	<td>男女不限</td>
<!--
EOT;
} print <<<EOT
-->
</tr>
<tr>
	<th>活動費用︰</th>
	<td>$active_costs 元</td>
</tr>
<tr>
	<th>報名截止日期︰</th>
	<td>$active_deadline</td>
</tr>
<tr>
	<th>已參加活動成員︰</th>
	<td>
<!--
EOT;
foreach($actuserdb as $key => $value){print<<<EOT
-->
	<a href="u.php?action=show&uid=$value[winduid]">{$value[username]}</a>&nbsp;
<!--
EOT;
}print<<<EOT
-->&nbsp;
</td>
</tr>
<tr><th class="h" style="border-bottom:0;"></th><td class="h" style="border-bottom:0;">
<!--
EOT;
if(!$actmen){print <<<EOT
-->
<input type="hidden" name="tid" value="$tid" />
<input type="hidden" name="fpage" value="$fpage" />
<input class="btn" type="submit" value="我要參加" />
<!--
EOT;
}elseif($actmen['state']==0){print <<<EOT
-->
<div>您的申請已提交，請等候回音！</div>
<!--
EOT;
}elseif($actmen['state']==1){ print <<<EOT
-->
<div>您已被批準參加此次活動，<a href="active.php?action=view&tid=$tid"><font color="blue">查看詳情</font></a></div>
<!--
EOT;
}else{print <<<EOT
-->
<div>您的申請沒有通過！</div>
<!--
EOT;
} print <<<EOT
--></td></tr>
</table></div>
</form>
<!--
EOT;
?>
