PHP Classes

File: manage_lists.ctp

Recommend this page to a friend!
  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: 14 years ago
Size: 2,412 bytes


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

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

<!-- 日志列表 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>
foreach ($blogs as $blog):

            <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 style='padding-left:10px'>
                <?php echo $blog['Blog']['created']; ?>
            <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)); ?>
    <?php endforeach; ?>

    <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 class="actions">
            <li><?php echo $html->link(__('发表新日志', true), '/manage/blogs/add'); ?></li>
<!-- 日志列表 end -->