<html><hand>
<meta HTTP-EQUIV="Content-Type" CONTENT="text/html;charset=<?php echo CHARSET;?>">
<meta http-equiv="X-UA-Compatible" content="IE=EmulateIE7">
<meta HTTP-EQUIV="Content-Language" CONTENT="<?php echo CHARSET;?>">
<script language='JavaScript' src='admin/img/admin.js'></script>
<link href="admin/img/style.css" rel="stylesheet" type="text/css">
<?php 
if(!defined('IN_ADMIN')) exit('Access Denied');
switch ($action){
	case 'list':
	?>
<table width='100%' cellpadding=2 cellspacing=1 border=0 align=center class=td1>
<tr Class=td4><td colspan='8'><b>留言管理</b></td></tr>
<tr align=center Class=td3><td width='3%'></td>
<td width=*>留言标题</td>
<td width='15%'>类型</td>
<td width='15%'>姓名</td>
<td width='10%'>电话</td>
<td width='15%'>邮箱</td>
<td width='10%'>操作</td></tr>
<?php 
if(is_array($n) && !empty($n)){
	foreach($n as $ns){ 
	?>
<tr align=center class=td2 onMouseMove="this.className='td3'" onMouseOut="this.className='td2'">
<td><?=$ns['id']?></td>
<td><?=$ns['title']?></td>
<td><?=$ns['xz']?></td>
<td><?=$ns['name']?></td>
<td><?=$ns['tel']?></td>
<td><?=$ns['email']?></td>
<td><span class=Font5><a href="?file=guest&action=look&id=<?=$ns['id']?>">查看</a> | <a href="?file=guest&action=del&id=<?=$ns['id']?>">删除</a></span></td>
</tr>
<?php }}?>

</table>
<table width='100%' border=0 cellspacing=0 cellpadding=5 style='border-top:1px #C4D8ED solid'><tr><td align=center class=td2><?=$dispage;?></td></tr></table>

<?php 	
	break;
	case 'look':
	?>
<table width='100%' cellpadding=3 cellspacing=1 class=td1>
<input type="hidden" name=id value=<?=$ns['id']?>>
<tr class=td4><td colspan=2><strong>查看留言</strong></td></tr>
<tr class=td2><td width='10%'><strong>留言标题</strong></td>
<td width='90%'><?=$ns['title']?></td></tr>
<tr class=td2><td width='10%'><strong>性质</strong></td>
<td width='90%'><?=$ns['xz']?></td></tr>
<tr class=td2><td width='10%'><strong>姓名</strong></td>
<td width='90%'><?=$ns['name']?></td></tr>
<tr class=td2><td width='10%'><strong>电话</strong></td>
<td width='90%'><?=$ns['tel']?></td></tr>
<tr class=td2><td width='10%'><strong>邮箱</strong></td>
<td width='90%'><?=$ns['email']?></td></tr>

<tr class=td2><td><strong>内容</strong></td>
<td><?=$ns['body']?></td></tr>
</form>
</table>
	<?php 
	break;
}?>