Exemple #1
0
echo $form->labelEx($model, 'anh');
?>
            <?php 
echo $form->fileField($model, 'anh', array('size' => 60, 'maxlength' => 255));
?>
            <?php 
echo $form->error($model, 'anh');
?>
        </div>
        <div class="col-md-2"></div>
        <div class="col-md-4">
            <?php 
echo $form->labelEx($model, 'trang_thai');
?>
            <?php 
echo $form->dropDownList($model, 'trang_thai', Tintuc::trangthai(), array('class' => ' form-control'));
?>
            <?php 
echo $form->error($model, 'trang_thai');
?>
        </div>
    </div>
    <div class="row">
        <div class="col-md-1"></div>
        <div class="col-md-10">
            <?php 
echo $form->labelEx($model, 'noi_dung');
?>
            <?php 
echo $form->textArea($model, 'noi_dung', array('rows' => 6, 'cols' => 50, 'id' => 'noi_dung', 'class' => ' form-control'));
?>