Пример #1
0
            <?php 
//echo $form->dropDownListControlGroup($model,'establishment',CHtml::listData(Establishments::model()->findAll(array('order' => 'est_name ASC')), 'est_name', 'est_name'),array('span'=>5));
?>
      

            <?php 
//echo $form->dropDownListControlGroup($model,'judge_name',CHtml::listData(JudgeName::model()->findAll(array('order' => 'judge_name ASC')), 'judge_name', 'judge_name'),array('span'=>5));
?>

            <?php 
//echo $form->textFieldControlGroup($model,'judge_code',array('span'=>5,'maxlength'=>10));
?>

            <?php 
echo $form->dropDownListControlGroup($model, 'case_type', CHtml::listData(CaseType::model()->findAll(array('order' => 'short_form ASC')), 'short_form', 'short_form'), array('span' => 5));
?>

            <?php 
echo $form->textFieldControlGroup($model, 'case_no', array('span' => 5));
?>

            <?php 
echo $form->textFieldControlGroup($model, 'case_year', array('span' => 5));
?>

            <?php 
//echo $form->textFieldControlGroup($model,'notice_date',array('span'=>5,'data-provide'=>'datepicker'));
?>

            <?php 
Пример #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 $id the ID of the model to be loaded
  * @return CaseType the loaded model
  * @throws CHttpException
  */
 public function loadModel($id)
 {
     $model = CaseType::model()->findByPk($id);
     if ($model === null) {
         throw new CHttpException(404, 'The requested page does not exist.');
     }
     return $model;
 }