<?php $title = ($isSelf ? '我' : $this->filter(userName($member['uid']))) . '的日志 - ' . setting('webname');?>
<?php include_once tpl('globalHeader');;?>
<style type="text/css">.f{color: #666666;}.r{color:red;}</style>
<div class="nav"><?php echo backLink();?> <?php echo memberLink();?> <?php echo indexLink();?></div>
<?php if ($isSelf):?>
<div class="pl">
<?php echo ilink('写新日记',url('system',array('s'=>'member','c'=>'diary','a'=>'add')));?>.<?php echo ilink('分类管理',url('system',array('s'=>'member','c'=>'diary','a'=>'type')));?>
</div>
<div class="kind"><?php if ($isSelf):?>我<?php else:?><?php echo $this->filter(userName($member['uid']));?><?php endif;?>的日志</div>
<?php endif;?>

<?php if (!empty($diaries)):?>
	<?php $page = ($pageObj->getCurrentPage() - 1) * $pageObj->getPageSize();?>
	<?php foreach ($diaries as $diary):?>
        <div class="comment">
		<?php echo ++$page;?>.<?php if ($diary['istoped']):?>[置顶]<?endif;?><?php if (2 == $diary['privacy']):?>[<span class="r">私</span>]<?php endif;?><?php if ($diary['password']):?>[密]<?php endif;?><?php if ($diary['name']):?>&lt;<?php echo ilink($this->filter($diary['name']),url('system',array('s'=>'member','c'=>'diary','tid'=>$diary['tid'])));?>&gt;<?php endif;?><?php echo ilink($this->filter($diary['subject']),url('system',array('s'=>'member','c'=>'diary','a'=>'read','id'=>$diary['id'])));?>(<span class="f"><?php echo $diary['comments'];?>评/<?php echo $diary['views'];?>阅</span>)
		<br/>
		<b>摘要</b>:<span class="f"><?php echo iUbbCode($this->filter($diary['abstract']));?></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:?>
	暂无日志<br/>
<?php endif;?>

<div class="kind">日志分类</div>
<div class="content">
<?php if (!empty($typeList)):?>
	<?php foreach ($typeList as $type):?>
		<?php echo ilink($this->filter($type['name']),url('system',array('s'=>'member','c'=>'diary','uid'=>$this->uid(),'tid'=>$type['id'])))?>(<?php echo $type['num'];?>)<br/>
	<?php endforeach;?>
<?php else:?>
	暂无分类
<?php endif;?>
</div>
返回<?php echo memberLink();?>.<?php echo indexLink();?>
<br/>
<?php include_once tpl('globalFooter');?>