Example #1
0
		<?php 
echo $form->textField($model, 'NO_KARPEG', array('class' => 'form-control'));
?>
		<?php 
echo $form->error($model, 'NO_KARPEG');
?>
            </div>
	</div>
        
        <div class="form-group">
		<?php 
echo $form->labelEx($model, 'ID_STATUS_KEP', array('class' => 'col-md-3 control-label'));
?>
            <div class="col-md-4">
		<?php 
echo $form->dropDownList($model, 'ID_STATUS_KEP', CHtml::listData(TblStatusKepegawaian::model()->findAll(), 'ID_STATUS_KEP', 'STATUS_KEP'), array('class' => 'form-control', 'empty' => '- Pilih Status Kepegawaian -'));
?>
		<?php 
echo $form->error($model, 'ID_STATUS_KEP');
?>
            </div>
	</div>
        
        <div class="form-group">
                <?php 
echo $form->labelEx($model, 'ID_JURUSAN', array('class' => 'col-md-3 control-label'));
?>
            <div class="col-md-4">
                <?php 
echo $form->dropDownList($model, 'ID_JURUSAN', CHtml::listData(TblJurusan::model()->findAll(), 'ID_JURUSAN', 'NAMA_JURUSAN'), array('class' => 'form-control', 'empty' => '- Pilih Jurusan -'));
?>
 /**
  * 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 TblStatusKepegawaian the loaded model
  * @throws CHttpException
  */
 public function loadModel($id)
 {
     $model = TblStatusKepegawaian::model()->findByPk($id);
     if ($model === null) {
         throw new CHttpException(404, 'The requested page does not exist.');
     }
     return $model;
 }