<?php
/**
* 商家日志文章(blog)文件
*
* @author wlj lesorb <lesorb@126.com>
* @version 1.0
*/
?>
<div id='com_top_menu'>
<ul>
<li><?php echo $html->link(__('首页', true), array('controller'=> 'commusers', 'action'=>'view', $this->params['pass'][0]));?></li>
<li><?php echo $html->link(__('产品服务', true), array('controller'=> 'commusers', 'action'=>'intro', $this->params['pass'][0]));?></li>
<li><?php echo $html->link(__('优惠折扣', true), array('controller'=> 'commsales', 'action'=>'lists', $this->params['pass'][0]));?></li>
<li><?php echo $html->link(__('视频图片', true), array('controller'=> 'albums', 'action'=>'view_pic', $this->params['pass'][0]));?></li>
<li class='currentm'><?php echo $html->link(__('博客', true), array('controller'=> 'blogs', 'action'=>'lists', $this->params['pass'][0]));?></li>
<li><?php echo $html->link(__('与我合作', true), array('controller'=> 'fellows', 'action'=>'commfriends', $this->params['pass'][0]));?></li>
</ul>
</div>
<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
$this->pageTitle = '--欢迎访问--'.$commuser['Commuser']['commerName'].'--博客--';
$session_UID = $session->read('Users.id');
?>
<div id="mid">
<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']['modified']))/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>
<?php
if(isset($rssUrl)){
echo $html->image('feed.png');
echo $html->link(__('订阅这个俱乐部',true),$rssUrl);
$html->meta('rss/xml',$rssUrl, array('title'=> $session->read('commuserCake.siteName')."- RSS Feed for this commerce user(s)"),false);
}
?>
</div>
|