<?php include_once tpl('header');?>
<card title="<?php echo $title;?> - <?php echo setting('webname');?>">
<p align="left"><anchor>返回<prev/></anchor>/<?php echo ilink('信箱',url('system',array('s'=>'member','c'=>'message')));?>/<?php echo ilink('书房',url('system',array('s'=>'member')));?>/
<br/>
<?php if (!empty($message)):?>
	<?php $page = ($pageObj->getCurrentPage() - 1) * $pageObj->getPageSize();?>
	<?php foreach ($message as $row):?>
		<?php echo ilink('#'.++$page.' '.$this->filter($row['subject']),url('system',array('s'=>'member','c'=>'message','a'=>'read','mid'=>$row['mid'])));?> <?php echo ilink('删除',url('system',array('s'=>'member','c'=>'message','a'=>'delete','do'=>'item','mid'=>$row['mid'])));?>
		<br/>
		[发件人:<?php echo ilink($this->filter(userName($row['msgfromid'])),url('system',array('s'=>'member','c'=>'message','a'=>'dialog','uid'=>$row['msgfromid'])));?> 时间:<?php echo date("m月d日 H时", $row['createdate']);?>]
		<br/>
		---------------
		<br/>
	<?php endforeach;?>
    当前共<?php echo $pageObj->getTotalRecord();?>条 [<?php echo $pageObj->getCurrentPage();?>/<?php echo $pageObj->getTotalPage();?>页]
	<br/>
	<?php echo $pageObj->show();?>
	<br/>
<?php else:?>
	暂无短信<br/><br/>
<?php endif;?>

<anchor>返回上级<prev/></anchor><br/>
<?php include_once tpl('footer');?>