<?php include_once tpl('header');?>
<card title="<?php if ($isSelf):?>我<?php else:?><?php echo $this->filter($member['username']);?><?php endif;?>的日志 - <?php echo setting('webname');?>">
<p align="left">
<?php if ($isSelf):?>
<?php echo ilink('写新日记',url('system',array('s'=>'member','c'=>'diary','a'=>'add')));?>.<?php echo ilink('分类管理',url('system',array('s'=>'member','c'=>'diary','a'=>'type')));?>
<br/>
----------
<br/>
<?php if ($isSelf):?>我<?php else:?><?php echo $this->filter($member['username']);?><?php endif;?>的日志
<br/>
<?php endif;?>

<?php if (!empty($diaries)):?>
	<?php $page = ($pageObj->getCurrentPage() - 1) * $pageObj->getPageSize();?>
	<?php foreach ($diaries as $diary):?>
		<?php echo ++$page;?>.<?php if ($diary['istoped']):?>[置顶]<?endif;?><?php if (2 == $diary['privacy']):?>[私]<?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'])));?>(<?php echo $diary['comments'];?>评/<?php echo $diary['views'];?>阅)
		<br/>
		[摘要]<?php echo iUbbCode($this->filter($diary['abstract']));?>
		<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/>
<?php endif;?>

[日志分类]
<br/>
<?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:?>
	暂无分类<br/>
<?php endif;?>
<br/>
返回<?php echo memberLink();?>.<?php echo indexLink();?>
<br/>
<?php include_once tpl('footer');?>