PHP Classes

File: manage_edit.ctp

Recommend this page to a friend!
  Classes of lijun wang   blog   manage_edit.ctp   Download  
File: manage_edit.ctp
Role: Auxiliary script
Content type: text/plain
Description: /manage/blogs/edit view
Class: blog
A blog system implemented with CakePHP framework
Author: By
Last change:
Date: 14 years ago
Size: 1,306 bytes
 

Contents

Class file image Download
<?php
/**
 * 编辑日志文件
 *
 * @author wlj lesorb <lesorb@gmail.com>
 * @version 1.0
 */
?>
<?php
echo $tinymce->init(); ?>

<div class="actions">
    <ul>
        <li><?php echo $html->link(__('我的所有日志', true), array('action'=>'lists','manage'=>true));?></li>
    </ul>
</div>

<div class="blogs form">
<?php echo $form->create('Blog',array('url'=>'/manage/blogs/edit/'.$form->value('Blog.id')));?>
<fieldset>
         <legend><?php __('编辑日志');?></legend>
    <?php
       
echo $form->hidden('id');
        echo
$form->hidden('user_id');
        echo
$form->hidden('commuser_id');
       
        echo
$form->input('title',array('label'=>'标题:'));
        echo
$form->input('blogclass_id',array('label'=>'类别:'));

        echo
$html->link(__('添加新类别',true),array('action'=>'classAdd','manage'=>true));
       

        echo
$form->input('description',array('label'=>'内容:'));
        echo
$form->input('tag',array('label'=>'标签:'));

   
?>

    <?php

       
echo $form->input('Blog.post_status', array('value'=>'inherit', 'type'=>'checkbox', 'before'=>'不公开', 'label'=>false));
        echo
$form->input('Blog.replay_status', array('value'=>'close', 'type'=>'checkbox', 'before'=>'不允许回复:', 'label'=>false));
       
       
   
?>

    <?php echo $form->end('好 了');?>
</fieldset>
</div>