<?php
	!defined('DIRCMS_MANAGE') && exit('Access Denied!');
?>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<title>报名管理</title>
<meta http-equiv="Content-Type" content="text/html; charset=gb2312"/>
<meta http-equiv="X-UA-Compatible" content="IE=EmulateIE7" />
<link rel="stylesheet" type="text/css" href="admin/template/css/style.css" />
<script type="text/javascript" src="images/js/jquery.min.js"></script>
<script type="text/javascript" src="admin/template/js/admin.js"></script>
</head>
<body>
<div id="wrap">
	<div class="tab">
		<ul>
			<li><a href="javascript:void(0);" class="on">报名管理</a></li>		
		</ul>
	</div>
	<div class="main">
		<div class="search">
			<form action="?" method="get" name="search">
			<input type="hidden" name="file" value="<?php echo $file;?>"> 
			<input type="hidden" name="action" value="<?php echo $action;?>"> 
			<input type="hidden" name="contentid" value="<?php echo $contentid;?>"> 
				<fieldset>
					<legend>查找</legend>
						输入标题：
						<input type="text" name="k" size="35" value="<?php echo $k?htmlspecialchars(stripslashes($k)):'';?>" />
						<input type="submit" class="button" value="开始查找" />
				</fieldset>
			</form>
		</div>
		<table cellspacing="0" class="datalist" id="list">
		<tr>
			<th width="167">标题</th>
			<th width="68">报名人</th>
			<th width="34">性别</th>
			<th width="77">电话</th>
			<th width="78">Email</th>
			<th width="74">qq</th>
			<th width="51">人数</th>
			<th width="158">留言</th>
		</tr>
		<?php if($result){foreach($result as $val){?>
		<tr>
			<td width="167" align="left"><a href="show.php?id=<?php echo $val['contentid'];?>" title="<?php echo $val['title'];?>" target="_blank"><?php echo htmlspecialchars(sub_string($val['title'],20));?></A></td>
			<td width="68" align="center"><?php echo $val['username'];?></td>
			<td width="34" align="center"><?php echo $val['sex']?'男士':'女士';?></td>
			<td width="77" align="center"><?php echo $val['tel'];?></td>
			<td width="78" align="center"><?php echo $val['email'];?></td>
			<td width="74" align="center"><?php echo $val['qq'];?></td>
			<td width="51" align="center"><?php echo $val['num'];?></td>
			<td width="158" align="center"><?php echo $val['msg'];?></td>
		</tr>
		<?php }?>
		<?php }else{?>
		<tr><td colspan="8">尚没有发现报名...</td></tr>	
		<?php }?>
		<tr>
			<td colspan="8"><?php echo $pages;?></td>
		</tr>
		</table>
	</div>
</div>
</body>
</html>