<?php 
echo $form->label($model, 'object_excerpt');
?>
                                        <?php 
echo $form->textArea($model, 'object_excerpt', array('tabindex' => '3', 'id' => 'txt_object_excerpt'));
?>
                                        <?php 
echo $form->error($model, 'object_excerpt');
?>
                                        
                                        <?php 
echo $form->labelEx($model, 'comment_status');
?>
                                        <?php 
echo $form->dropDownList($model, 'comment_status', ConstantDefine::getObjectCommentStatus());
?>
                                        <?php 
echo $form->error($model, 'comment_status');
?>
                                        
                                        
                                    </div>    
                                    <div class="tab-content" id="seo_box">
                                        
                                        <?php 
echo $form->label($model, 'object_slug');
?>
                                        <?php 
echo $form->textField($model, 'object_slug', array('id' => 'txt_object_slug'));
?>
Beispiel #2
0
 /**
  * Convert from value to the String of the Object Comment
  * @param type $value 
  */
 public static function convertObjectCommentType($value)
 {
     $types = ConstantDefine::getObjectCommentStatus();
     if (isset($types[$value])) {
         return $types[$value];
     } else {
         return t('cms', 'undefined');
     }
 }