<?php $tag = $title;?>
<?php $title = $tag . ' - ' . setting('webname');?>
<?php include_once tpl('globalHeader');?>
<style type="text/css">.f{color: #666666;} .r{color: red;}</style>
<?php echo backLink();?> <?php echo ilink('信箱',url('system',array('s'=>'member','c'=>'message')));?> <?php echo ilink('书房',url('system',array('s'=>'member')));?>
<div class="nav"><?php echo $tag;?>列表</div>
<?php if (!empty($message)):?>
	<?php $page = ($pageObj->getCurrentPage() - 1) * $pageObj->getPageSize();?>
	<?php foreach ($message as $row):?>
        <div class="comment">
		<?php echo ilink('#'.++$page.' '.$this->filter($row['subject']),url('system',array('s'=>'member','c'=>'message','a'=>'read','mid'=>$row['mid'])));?> <a href="<?php echo url('system',array('s'=>'member','c'=>'message','a'=>'delete','do'=>'item','mid'=>$row['mid']));?>"><span class="r">删除</span></a>
		<br/>
		<span class="f">[发件人:<?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时i分", $row['createdate']);?>]</span>
		</div>
	<?php endforeach;?>
    <div class="search">
    当前共<?php echo $pageObj->getTotalRecord();?>条 [<?php echo $pageObj->getCurrentPage();?>/<?php echo $pageObj->getTotalPage();?>页]
	<br/>
	<?php echo $pageObj->show();?>
    </div>
<?php else:?>
	暂无短信
<?php endif;?>

<?php echo backLink();?>
<?php include_once tpl('globalFooter');?>