PHP Classes
elePHPant
Icontem

File: manage_lists.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  >  manage_lists.ctp  >  Download  
File: manage_lists.ctp
Role: Auxiliary script
Content type: text/plain
Description: /manage/blogs/list view
Class: blog
A blog system implemented with CakePHP framework
Author: By
Last change:
Date: 6 years ago
Size: 2,412 bytes
 

Contents

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

 <div id='uinfo'>
    <div class="messages_menu" style="margin-top:10px">
        <ul>
            <?php
               
echo '<li>'.$html->link(__('类别列表', true), '/manage/blogs/classes').'</li>';
                echo
'<li>'.$html->link(__('添加新类别', true), '/manage/blogs/classAdd/').'</li>';
           
?>
</ul>
    </div>

<!-- 日志列表 start-->
<?php $paginator->options(array('url' => array('manage'=>true)));?>
<table border="0" cellspacing="1" style="border:1px solid #d1e3eb ">
    <tr height="30px" style="border:0px solid #d1e3eb;color:#fff;background-color:#086898;">

        <th width=100><?php __('标题');?></th>
        <th width=100><?php echo $paginator->sort('桉类别','blogclass_id');?></th>
        <th width=400><?php __('内容');?></th>
        <th width=100><?php echo $paginator->sort('桉时间','created');?></th>
        <th width=70><?php __('操作');?></th>
    </tr>
    <?php
   
foreach ($blogs as $blog):
       
$id=$blog['Blog']['id'];
   
?>

            <td style='padding-left:10px;'>

            <?php echo $blog['Blog']['title']; ?>

            </td><td style='padding-left:10px;'>

            <?php echo $blog['Blogclass']['name']; ?>

            </td><td style='padding-left:10px;'>

            <?php echo mb_substr($blog['Blog']['description'],0,60,'UTF-8'); ?>

            </td>
       
            <td style='padding-left:10px'>
                <?php echo $blog['Blog']['created']; ?>
</td>
       
            <td style='padding-left:10px' bgcolor="#edf9ff">
                <?php echo $html->link(__('查看', true), '/BlogReplies/replies/'.$session->read('Commer.cid').'/'.$id); ?>
<?php echo $html->link(__('编辑', true), '/manage/blogs/edit/'.$id); ?>
<!--
                    <?php echo $html->link(__('删除', true), '/manage/blogs/delete/'.$id, null, sprintf(__('您确定删除此消息吗 # %s?', true), $id)); ?>
-->
            </td>
        </tr>
    <?php endforeach; ?>
</table>

    <div class="paging">

        <?php echo $paginator->prev('<< '.__('上一页', true), array(), null, array('class'=>'disabled'));?>
| <?php echo $paginator->numbers();?>
<?php echo $paginator->next(__('下一页', true).' >>', array(), null, array('class'=>'disabled'));?>
</div>
    <div class="actions">
        <ul>
            <li><?php echo $html->link(__('发表新日志', true), '/manage/blogs/add'); ?></li>
        </ul>
    </div>
<!-- 日志列表 end -->
</div>