<?php
/**
* 商家日志文章日期存档(blog)文件
*
* @author wlj lesorb <lesorb@126.com>
* @version 1.0
*/
?>
<?php
$this->pageTitle .= '--欢迎访问--'.$commuser['Commuser']['commerName'].'--博客--';
$session_UID = $session->read('Users.id');
?>
<div id="mid"><h2>您好! 欢迎光临-
<font style="color:#086898;"><?php echo $html->link(__($commuser['Commuser']['commerName'], true), array('controller'=>'commusers','action'=>'view',$commuser['Commuser']['id']));?></font>
-的博客 </h2>
</div>
<h3><li><?php echo $html->link(__('日志存档', true), '/blogs/archives/'.$commuser['Commuser']['id'].'/'.date('Y-m')); ?></li></h3>
<?php
if (isset($calendar)){
echo $this->element('blog_calendar');
$paginationLinksOptions['url'] = '/'.$this->params['pass'][0];
$prevNextLinksOptions['url'] = array($this->params['pass'][0]);
}
?>
<div id="ytou">
<?php if($commuser['User']['id'] == $session_UID){?>
<!-- 站点负责者可见部份
<span style='float:left;width:100px;'>
<a href="/manage/blogs/add/<?php echo $commuser['Commuser']['id'];?>"><img src="/img/commer/an_fa.gif" width="66" height="22" border="0" /></a>
</span>
-->
<?php }?>
<div class='ym'>
<?php echo $paginator->prev(__('上一页', true), array(), null);?>
<?php echo $paginator->numbers();?>
<?php echo $paginator->next(__('下一页', true), array(), null);?>
</div>
</div>
<!--站点负责人信息 -->
<?php $defaultTFace = (trim($commuser['User']['face'])!='')?'thumb_'.trim($commuser['User']['face']):'default.jpg';?>
<div id="fl">
<span class="fl2">
<?php echo $html->link(__($commuser['User']['aliasname'], true), array('controller'=>'users', 'action'=>'index',$commuser['User']['id'])); ?>
</span>
<span class="fl3">
<?php echo $html->image('/img/chiefs/'.$defaultTFace,array('url'=>'/users/index/'.$commuser['User']['id'],'width'=>70,'height'=>70));?>
</span>
<span class="fl5"><a href="javacript:;"><img src="/img/commer/an_lt.gif" width="65" height="23" border="0" /></a>
<a href="/fellows/fellowRequest/<?php echo $commuser['User']['id'];?>"><img src="/img/commer/an_hy.gif" width="65" height="23"border="0"/></a></span>
</div>
<!--站点负责人信息 -->
<?php
foreach ($blogs as $blog):
?>
<div class="f">
<!-- blog内容区 -->
<div id="fr1">
<!--<p><a>【类别: 】 </a></p>-->
<p class="fr_bt1">[<?php echo $html->link(__($blog['Blogclass']['name'], true), array('action'=>'classes',$blog['Blog']['commuser_id'].'/'.$blog['Blog']['blogclass_id'])); ?>]
<span class="fr_bt2"><?php echo $html->link(__( $blog['Blog']['title'], true), array('controller'=>'BlogReplies','action'=>'replies',$blog['Blog']['commuser_id'].'/'.$blog['Blog']['id']));?></span>
<span class="fr_bt3">(发布于<?php echo round((time()-strtotime($blog['Blog']['created']))/86400);?>天前)</span></p>
<span class="fr_tt"><?php echo $blog['Blog']['description']; ?></span>
<span>标签:<?php echo $blog['Blog']['tag']; ?></span>
<div>查看数: <?php echo $blog['Blog']['view_count']; ?></div>
<div>回复数: <?php echo $blog['Blog']['replay_count']; ?></div>
<!--blog互动区 -->
<!--/blog互动区 -->
</div>
<!--/blog内容区 -->
<!--管理者操作区 -->
<?php if($blog['Blog']['user_id'] == $session_UID){?>
<?php echo $html->link(__('编辑', true), array('action'=>'edit','manage'=>true, $blog['Blog']['id'])); ?>
<?php echo $html->link(__('发表新文章', true), array('action'=>'add','manage'=>true)); ?>
<?php }?>
<div style='clear:both'></div>
<!--/管理者操作区 -->
</div>
<?php endforeach;
?>
<div id='ytou'>
<div class='ym'>
<?php echo $paginator->prev(__('上一页', true), array(), null);?>
<?php echo $paginator->numbers();?>
<?php echo $paginator->next(__('下一页', true), array(), null);?>
</div>
</div>
</div>
|