Login   Register  
PHP Classes
elePHPant
Icontem

File: manage_add.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_add.ctp  >  Download  
File: manage_add.ctp
Role: Auxiliary script
Content type: text/plain
Description: /manage/blogs/add view
Class: blog
A blog system implemented with CakePHP framework
Author: By
Last change:
Date: 2009-07-24 01:14
Size: 1,983 bytes
 

Contents

Class file image Download
<?php
/**
 * 商家添加新的日志文件
 *
 * @author wlj lesorb <lesorb@126.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/add'));?>
    <fieldset>
         <legend><?php __('新的日志');?></legend>
    <?php
        
echo $form->hidden('user_id',array('value'=>$session->read('Users.id')));
        echo 
$form->hidden('commuser_id',array('value'=>$session->read('Commer.cid')));
        
        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'=>'标签:'));

        echo 
'<div>'.$form->label('不公开:');
        echo 
$form->checkbox('blogPostStatus',array('id'=>'BlogPostStatus','div'=>false,'onclick'=>'javascript:changedCheckBoxValue(BlogPostStatus_,\'inherit\',\'publish\');')).'</div>';

        echo 
'<div>'.$form->label('不允许回复:');
        echo 
$form->checkbox('blogReplayStatus',array('id'=>'BlogReplayStatus','div'=>false,'onclick'=>'javascript:changedCheckBoxValue(BlogReplayStatus_,\'close\',\'open\');')).'</div>';
    
?>
    <?php echo $form->end('好 了');?>
    </fieldset>

    <?php
        $autoSave 
$ajax->remoteTimer(
            array(
            
'url' => array('action' => 'add''manage'=>true ),
            
'update' => 'postss''complete' => '',
            
'position' => 'bottom''frequency' => 10
            
)
        );
        
$options = array(
            
'url' => array('action'=>'add''manage'=>true),
            
'update' => 'blogreplayview',
            
'loading' => 'blogreplayloading',
            
'complete' => "$autoSave"
        
);
        
//echo $ajax->submit('好 了', $options);
    
?>
</div>