<?php echo $this->fetch('header.html'); ?>
<div class="row">
<div class="span12">
<?php echo $this->fetch('pm/nav.html'); ?>
 <table class='table table-bordered' width='100%'>
  <tr>
   <td>id</td>
   <td>发送者</td>
   <td>接收者</td>
   <td>时间</td>
   <td>内容</td>
   <td>操作</td>
  </tr>
 <?php $_from = $this->_var['data']; if (!is_array($_from) && !is_object($_from)) { $_from=array();}; $this->push_vars('', 'c');if (count($_from)):
    foreach ($_from AS $this->_var['c']):
?>
<tr>
   <td><?php echo $this->_var['c']['id']; ?></td>
   <td><?php echo $this->_var['c']['nickname']; ?></td>
   <td><?php echo $this->_var['c']['t_nickname']; ?></td>
   <td><?php echo date("Y-m-d H:i:s",$this->_var['c']['dateline']); ?></td>
   <td><?php echo $this->_var['c']['content']; ?></td>
   <td> <a href="javascript:;" class="delete" url="admin.php?m=admin_pm&a=delete&id=<?php echo $this->_var['c']['id']; ?>">删除</a></td>
  </tr>
   <?php endforeach; endif; unset($_from); ?><?php $this->pop_vars();; ?>
 </table>
<div><?php echo $this->_var['pagelist']; ?></div>
</div>
</div>
<?php echo $this->fetch('footer.html'); ?>