<!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=<?php echo $cfg_soft_lang; ?>" />
<title><?php echo $cfg_webname; ?> - 留言本</title>
<link href="<?php echo $cfg_templeturl; ?>/default/style/dedecms.css" rel="stylesheet" type="text/css" media="screen" />
<style>
	.lefttd {
		border-left:1px solid #dedede;
		border-right:1px solid #dedede;
	}
	.ltd {
		border-left:1px solid #dedede;
		border-right:1px solid #dedede;
		border-top:1px solid #dedede;
		border-bottom:1px dashed #dedede;
	}
	.msgtd {
		line-height:180%;
		border-right:1px solid #dedede;
		border-left:1px solid #dedede;
		padding:5px;
		text-align:left;
		vertical-align:top;
	}
	.timetd {
		border-right:1px solid #dedede;
		border-left:1px solid #dedede;
		border-top:1px solid #dedede;
		border-bottom:1px dashed #dedede;
		padding-left:5px;
	}
	.bottomtd {
		border-right:1px solid #dedede;
		border-top:1px dashed #dedede;
		padding-left:5px;
	}
	.writetable td {
		padding: 5px;
	}
	.writetd {
		background:url(img/wbg.gif);
	}
	.pagetable {
		border:1px solid #dedede;
		margin-bottom:8px;
		background:#fafafa;
	}
 .pagelistbox {
 	
 }
 .pagelistbox span{
 	  border:1px solid #dedede;
 	  padding:2px;
 	  margin-right:3px;
 	  background:#efefef;
 }
 .pagelistbox a {
 	  border:1px solid #dedede;
 	  padding:2px;
 	  margin-right:3px;
 	  background:#efefef;
 	  padding-left:5px;
 	  padding-right:5px;
 }
 .rebox {
   width:98%;
   padding:3px;
   border:1px solid #dedede;
 }
 a:link{color:#ff0000;}
</style>
</head>
<body class="mapspage">

<div class="w960 clear center mt1">
  <div class="sp-title">
    <h2>留言列表</h2>
  </div>
  <?php 
  $ntt=0;
  $bgcc = '#FBFEED';
  ?>
  {dede:datalist}
    <table width='100%' border='0' align="center" cellpadding='0' cellspacing='0' style="<?php echo (($ntt==0) ? "background:{$bgcc}" : 'background:#ffffff'); ?>">
      <tr>
      	<td height="26" class='timetd'>
      		 <font color="#FF9900">姓名：</font><b><?php echo $fields['title']; ?></b>　<font color="#FF9900">邮件或电话：</font><b><?php echo $fields['uname']; ?></b><span style='color:#bbbbbb;float:right;padding-right:10px;'>来自：<?php echo $fields['ip']; ?> 留言时间: <?php echo MyDate('Y-m-d H:i',$fields['dtime']); ?></span>
    	  
      	</td>
      </tr>
      <tr>
   		<td class='msgtd'><span style="float:left;margin:10px;display:block;width:80px;height:26px;line-height:26px;text-align:center;background-color:#F90;color:#ffffff;">留言内容</span><?php echo $fields['msg']; ?></td>
      </tr>
      <tr>
      	<td height="26" class="bottomtd">
      		<?php if($g_isadmin) { ?>
      		<a href='guestbook.php?action=admin&id=<?php echo $fields['id']; ?>&job=del'><img src='guestbook/images/del.gif' border=0 height=16 width=16 />[删除]</a>
      	  <?php }  ?>
      	</td>
      </tr>
    </table>
    <?php if($ntt==0){$ntt=1;}else{ $ntt=0; } ?>
    {/dede:datalist}
    
   <table border='0' cellpadding='0' cellspacing='0' width='100%' align='center' class='pagetable'>
     <tr>
        <td align="center" height='28'> {dede:pagelist listsize='5'/} </td>
     </tr>
   </table>
    
  
</div>
</body>
</html>
