Login   Register  
PHP Classes
elePHPant
Icontem

File: view.ctp

Recommend this page to a friend!
Stumble It! Stumble It! Bookmark in del.icio.us Bookmark in del.icio.us
  Classes of lijun wang  >  blog  >  view.ctp  >  Download  
File: view.ctp
Role: Auxiliary script
Content type: text/plain
Description: /blogs/views view
Class: blog
A blog system implemented with CakePHP framework
Author: By
Last change:
Date: 2009-07-24 01:16
Size: 2,830 bytes
 

Contents

Class file image Download
<?php 
/**
 * 查看商家文章(blog)文件
 *
 * @author wlj lesorb <lesorb@126.com>
 * @version 1.0
 */    
?>

<div id="mid">您好!&nbsp;欢迎光临-
<font style="color:#086898;"><?php echo $html->link(__($commuser['Commuser']['commerName'], true), array('controller'=>'commusers','action'=>'view',$commuser['Commuser']['id']));?></font>
-的博客&nbsp;&nbsp;&nbsp;
</div>
<?php 
$this
->pageTitle '--欢迎访问--'.$commuser['Commuser']['commerName'].'--博客--';
$session_UID $session->read('Users.id');
?>
<!--站点负责人(博主)信息 -->     
              <?php $defaultTFace = (trim($commuser['User']['face'])!='')?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>&nbsp;&nbsp;
                    <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>
          <!--站点负责人信息 -->

<div class="blogs view">
<h2><?php  __('博客');?></h2>
    <dl><?php $i 0$class ' class="altrow"';?>

            <?php echo $html->link('【'.$blog['Blogclass']['name'].'】', array('controller'=> 'blog_classes''action'=>'view'$blog['Blogclass']['id'])); ?>
                    
            <?php echo $blog['Blog']['title']; ?>
            
            <?php echo $blog['Blog']['description']; ?>
            
                <div>标签:    <?php echo $blog['Blog']['tag']; ?></div>            
                <div>查看数:    <?php echo $blog['Blog']['view']; ?></div>
                <div>回复数:    <?php echo $blog['Blog']['replay']; ?></div>
        
            <span class="fr_bt3">(于<?php echo round((time()-strtotime($blog['Blog']['modified']))/86400);?>天前)</span>

    </dl>
</div>
<?php if($blog['Blog']['user_id'] == $session_UID){?>
<div class="actions">
    <ul>
        <li><?php echo $html->link(__('编辑'true), array('action'=>'edit','manage'=>true$blog['Blog']['id'])); ?> </li>
        <li><?php echo $html->link(__('所有日志'true), array('action'=>'lists')); ?> </li>
        <li><?php echo $html->link(__('新的日志'true), array('action'=>'add','manage'=>true)); ?> </li>
        
        <li><?php echo $html->link(__('新的日志类别'true), array('controller'=> 'blog_classes''action'=>'add','manage'=>true)); ?> </li>
    </ul>
</div>
<?php }?>