コード例 #1
0
ファイル: _form.php プロジェクト: Wladimir89/software1grh
                                    <div class="controls">
                <?php 
// echo $form->textField($model, 'nombre', array('maxlength' => 64))
?>
                <?php 
// echo $form->error($model, 'nombre')
?>
 
                                    </div>                                           
                                </div>-->

                <?php 
echo $form->textFieldRow($model, 'nombre', array('maxlength' => 45));
?>
                <?php 
echo $form->dropDownListRow($model, 'horario_tipo_id', array('' => ' -- Seleccione -- ') + CHtml::listData(HorarioTipo::model()->findAll(), 'id', Horario::representingColumn()), array('placeholder' => null));
?>
                <?php 
echo $form->timepickerRow($model, 'hora_inicio_jornada', array('options' => array('showMeridian' => false, 'defaultTime' => false, 'noAppend' => true), 'htmlOptions' => array('class' => 'span6')));
?>
                <?php 
echo $form->timepickerRow($model, 'hora_inicio_reseso', array('options' => array('showMeridian' => false, 'defaultTime' => false, 'noAppend' => true), 'htmlOptions' => array('class' => 'span6')));
?>
                <?php 
echo $form->timepickerRow($model, 'hora_fin_reseso', array('options' => array('showMeridian' => false, 'defaultTime' => false, 'noAppend' => true), 'htmlOptions' => array('class' => 'span6')));
?>
                <?php 
echo $form->timepickerRow($model, 'hora_fin_jornada', array('options' => array('showMeridian' => false, 'defaultTime' => false, 'noAppend' => true), 'htmlOptions' => array('class' => 'span6')));
?>
                <?php 
echo $form->textAreaRow($model, 'Descripcion', array('rows' => 3, 'cols' => 50));
コード例 #2
0
 /**
  * Returns the data model based on the primary key given in the GET variable.
  * If the data model is not found, an HTTP exception will be raised.
  * @param integer the ID of the model to be loaded
  */
 public function loadModel($id, $modelClass = __CLASS__)
 {
     $model = HorarioTipo::model()->findByPk($id);
     if ($model === null) {
         throw new CHttpException(404, 'The requested page does not exist.');
     }
     return $model;
 }