<?php include_once tpl('header');?>
<card title="与<?php echo $this->filter($member['username']);?>的对话 - <?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 echo ilink($this->filter($member['username']),url('system',array('s'=>'member','uid'=>$uid)));?>的对话〓
<br/>

<?php if (!empty($result)):?>
	<?php foreach ($result as $row):?>
		<?php if ($row['msgfromid'] == $suid):?>我<?php else:?><?php echo ilink($this->filter(userName($row['msgfromid'])),url('system',array('s'=>'member','uid'=>$row['msgfromid'])));?>(UID:<?php echo $row['msgfromid'];?>)<?php endif;?>: <?php echo $row['message'];?> (<?php echo date('y/m/d H:i',$row['createdate']);?>)<br/>
	<?php endforeach;?>
	共<?php echo $pageObj->getTotalRecord();?>条短信 [<?php echo $pageObj->getCurrentPage();?>/<?php echo $pageObj->getTotalPage();?>页]
	<br/>
	<?php echo $pageObj->show();?>
<?php else:?>
	暂无对话消息<br/>
<?php endif;?>

<br/>
<br/>
〓直接回复〓
<br/>
UID:<input type='text' name='msgto' value='<?php echo $uid;?>' size='10' format='M*m' />
<br/>
标题:<input type='text' name='subject' value='RE:' maxlength='70' format='M*m' />
<br/>
内容:<input type='text' name='message' value='' format='M*m' /><br/>
<anchor><go href='<?php echo url('system',array('s'=>'member','c'=>'message','a'=>'send'));?>' accept-charset='utf-8' method='post'>
	<postfield name='type' value='uid'/>
	<postfield name='msgto' value='$(msgto)'/>
	<postfield name='subject' value='$(subject)'/>
	<postfield name='message' value='$(message)'/>
	</go>回复
</anchor>
<br/>
<anchor>返回上级<prev/></anchor><br/>
<?php include_once tpl('footer');?>