<?php $title = '与' . $this->filter($member['username']) . '的对话 - ' . setting('webname');?>
<?php include_once tpl('globalHeader');?>
<style type="text/css">.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 ilink($this->filter($member['username']),url('system',array('s'=>'member','uid'=>$uid)));?>的对话〓</div>

<?php if (!empty($result)):?>
	<?php foreach ($result as $row):?>
		<?php if ($row['msgfromid'] == $suid):?><span class="r">我</span><?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/>
<div class="kind">直接回复</div>
<form action="<?php echo url('system',array('s'=>'member','c'=>'message','a'=>'send'));?>" method="post">
UID:<input type='text' name='msgto' value='<?php echo $uid;?>' size='10' />
<br/>
标题:<input type='text' name='subject' value='RE:' maxlength='70' />
<br/>
内容:<textarea name="message"></textarea>
<br/>
<input type="hidden" name="type" value="uid" />
<input type="submit" value="回复" />
</form>
<?php echo backLink();?>
<?php include_once tpl('globalFooter');?>