<?php
	!defined('IN_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>
<meta http-equiv="Content-Type" content="text/html; charset=gb2312" />
<meta http-equiv="X-UA-Compatible" content="IE=EmulateIE7" />
<link href="admin/template/images/tm_right.css" type="text/css" rel="stylesheet" />
<link href="statics/ui-jquery/jquery-ui.css" type="text/css" rel="stylesheet" />
<title>网站后台管理</title>
<script language="javascript" src="statics/ui-jquery/jquery-1.8.3.js"></script>
<script language="javascript" src="statics/ui-jquery/jquery-ui.js"></script>
<script language="javascript" src="admin/template/images/tm-core.js"></script>
<script language="javascript" type="text/javascript">
	$(document).ready(function(){
		$('#status').val('<?php echo $status;?>');
		$('#ishidden').val('<?php echo $ishidden;?>');
	});
</script>
</head>

<body>
	
	<div class="manage-tips">
	 全部留言
	</div>
	<form action="" method="post" name="myform" id="myform">
	<input type="hidden" name="do_submit" value="1" />
	<input type="hidden" name="mod" value="<?php echo $mod;?>" />
	<input type="hidden" name="action" value="<?php echo $action;?>" />
	<input type="hidden" name="file" value="<?php echo $file;?>" />
	<input type="hidden" name="job" id="job" />

	<table class="table-list" cellpadding="1" cellspacing="1">
		<tr>
		
			<th>ID</th>
			<th>单位</th>
			<th>留言昵称</th>
			<th>留言内容</th>
		
			<?php if(SITETYPE){?><th>所属分站</th><?php }?>
		</tr>
		<?php if($res){?>
		<?php foreach($res as $no => $r){?>
		<tr id="tr_<?php echo $r['id'];?>" <?php echo ($no%2)?'':'class="light"';?>>
		
			<td><?php echo $r['id'];?></td>
			<td><?php echo $r['danwei'];?></td>
		    <td><?php echo $r['name'];?></td>
		    <td><?php echo $r['liuyan'];?></td>			
		</tr>
		<?php }?>
		<tr class="page">
			<td colspan="<?php echo SITETYPE?'9':'8';?>">
			<?php echo $conobj->pagestring;?>
			</td>
		</tr>
		<?php }else{echo '<tr class="light"><td colspan="'.(SITETYPE?'9':'8').'">暂无数据</td></tr>';}?>
		</form>
	</table>
</body>
</html>
