示例#1
0
	<div class="row">
		<?php 
echo $form->label($model, 'name', array('label' => Yii::t('translation', 'Name')));
?>
		<?php 
echo $form->textField($model, 'name', array('size' => 60, 'maxlength' => 255));
?>
	</div>

	<div class="row">
		<?php 
echo $form->label($model, 'course_id', array('label' => Yii::t('translation', 'Course')));
?>
		<?php 
echo $form->dropDownList($model, 'course_id', Mecourse::getDropdownList(), array('empty' => 'All'));
?>
	</div>
    
	<div class="row">
		<?php 
echo $form->label($model, 'status', array('label' => Yii::t('translation', 'Status')));
?>
		<?php 
echo $form->dropDownList($model, 'status', array(null => 'All', 0 => 'Inactive', 1 => 'Active'));
?>
	</div>
    
	<div class="row buttons" style="padding-left: 159px;">
		        <?php 
$this->widget('bootstrap.widgets.TbButton', array('buttonType' => 'submit', 'label' => Yii::t('translation', 'Search'), 'type' => 'null', 'size' => 'small'));
示例#2
0
$this->widget('ext.ckeditor.CKEditorWidget', array("model" => $model, "attribute" => 'description', "config" => array("height" => "150px", "width" => "400px", "toolbar" => Yii::app()->params['ckeditor_simple'])));
?>
            </div>
        </div>
        <div class="clr"></div>
        <?php 
echo $form->error($model, 'description');
?>
    </div>
    
	<div class="row">
		<?php 
echo $form->labelEx($model, 'course_id');
?>
		<?php 
echo $form->dropDownList($model, 'course_id', Mecourse::getDropdownList());
?>
		<?php 
echo $form->error($model, 'course_id');
?>
	</div>
    
	<div class="row">
		<?php 
echo $form->labelEx($model, 'cover');
?>
        <?php 
echo $form->fileField($model, 'imageFile');
?>
        <span class='errorMessage'>( *.jpg , *.gif , *.png )( MaxSize : 3M )(width: 217px,height: 194px)</span>
        <?php