<?php
//Nemo Cache @ 2012-09-23 23:30:34
echo '';
include_once template("header.htm",'template/default/','','','');
echo '
<div class="mainBody">
';
if ($master) {
echo '
　<table width="100%" border="0" cellpadding="0" cellspacing="1" class="List">
	<tr>
		<th>字条编号</th>
		<th>字条内容</th>
		<th>发送人</th>
		<th>接收人</th>
		<th>日期</th>
	</tr>
';
if(is_array($lovelist)) foreach ($lovelist as $love) {
echo '
<tr class="tr"><td class="ListA">';
echo $love['id'];
echo '</td>
<td class="ListB"><a href="'.$PHP_SELF.'?id=';
echo $love['id'];
echo '">'.$love['info'].'</a>（'.$love['ip'].'<a href='.$PHP_SELF.'?a=admin&m=del&id=';
echo $love['id'];
echo '><img src="images/close.gif" alt="删除" />)</a></td>
<td class="ListC">'.$love['send'].'</td><td class=""ListC"">'.$love['pick'].'</td><td class=""ListD"">';
echo date("$a", $love['postdate']);
echo '</td></tr>    
';
}
echo '  
<tr>
	<td colspan="5" class="ListP">
			<a href="'.$PHP_SELF.'?a=admin&m=editpass">修改密码</a>（字条总数：'.$row.'） '.$dispage.'
	</td>
</tr>
</table>
';
} else {
echo '
　<table width="100%" border="0" cellpadding="0" cellspacing="1" class="List">
	<tr>
		<th>字条编号</th>
		<th>字条内容</th>
		<th>发送人</th>
		<th>接收人</th>
		<th>日期</th>
	</tr>
';
if(is_array($lovelist)) foreach ($lovelist as $love) {
echo '
<tr class="tr"><td class="ListA">';
echo $love['id'];
echo '</td>
<td class="ListB"><a href="'.$PHP_SELF.'?id=';
echo $love['id'];
echo '">'.$love['info'].'</a></td>
<td class="ListC">'.$love['send'].'</td><td class=""ListC"">'.$love['pick'].'</td><td class=""ListD"">';
echo date("$a", $love['postdate']);
echo '</td></tr>    
';
}
echo '  
<tr>
	<td colspan="3" class="ListP">			</td>
    <td colspan="2" class="ListP">（字条总数：'.$row.'） '.$dispage.'	</td>
  </tr>
</table>
';
}
echo '
</div>
';
include_once template("footer.htm",'template/default/','','','');
echo '';
?>