public function loadModel($id)
 {
     $model = ProCommission::model()->findByPk($id);
     if ($model === null) {
         throw new CHttpException(404, 'The requested page does not exist.');
     }
     return $model;
 }
Example #2
0
echo Yii::t('translation', $form->labelEx($model, 'last_name'));
?>
		<?php 
echo $form->textField($model, 'last_name', array('size' => 50, 'maxlength' => 50));
?>
		<?php 
echo $form->error($model, 'last_name');
?>
	</div>
    
        <div class="row">
            <?php 
echo $form->labelEx($model, 'commission_schema_id');
?>
            <?php 
echo $form->dropDownList($model, 'commission_schema_id', ProCommission::getListData(), array('empty' => 'Select'));
?>
            <?php 
echo $form->error($model, 'commission_schema_id');
?>
        </div>
    
	<div class="row">
		<?php 
echo Yii::t('translation', $form->labelEx($model, 'nric_passportno_roc'));
?>
		<?php 
echo $form->textField($model, 'nric_passportno_roc', array('size' => 50, 'maxlength' => 50));
?>
		<?php 
echo $form->error($model, 'nric_passportno_roc');
Example #3
0
 $mUser->first_name = $model->name;
 $mUser->email_not_login = $model->email;
 $mUser->nric_passportno_roc = $model->nric_passportno_roc;
 $mUser->contact_no = $model->contact_no;
 $mUser->address = $model->address;
 $mUser->postal_code = $model->postal_code;
 $mUser->pass_expiry_date = $model->pass_expiry_date;
 $mUser->id_type = $model->id_type;
 //        $mUser->role_id = $role_id;
 $aUpdate = array('first_name', 'email_not_login', 'nric_passportno_roc', 'contact_no', 'address', 'postal_code', 'pass_expiry_date', 'id_type');