Example #1
0
                    </div>
                    <div class="span2">
                        <?php 
    echo $form->labelEx($model, 'BaseEducationFormID');
    ?>
                        <?php 
    echo $form->dropDownList($model, 'BaseEducationFormID', CHtml::listData(Personeducationforms::model()->findAll(), 'idPersonEducationForm', 'PersonEducationFormName'), array('empty' => '', 'class' => "span12"));
    ?>
                    </div>
                    <div class="span2">
                        <?php 
    echo $form->labelEx($model, 'BasePaymentTypeID');
    ?>
                        <?php 
    echo $form->dropDownList($model, 'BasePaymentTypeID', CHtml::listData(Personeducationpaymenttypes::model()->findAll(), 'idEducationPaymentTypes', 'EducationPaymentTypesName'), array('empty' => '', 'class' => "span12"));
    ?>
                    </div>
                <?php 
}
?>
                <?php 
if (Yii::app()->user->checkAccess("showSpecEdboID")) {
    ?>
                    <div class="span2">
                        <?php 
    echo $form->labelEx($model, 'edboID');
    ?>
                        <?php 
    echo $form->textField($model, 'edboID', array('class' => "span12"));
    ?>
Example #2
0
                <div class="span3">
                    <?php 
        $url = Yii::app()->createUrl("personspeciality/znosubjects", array("personid" => $personid, "specid" => intval($model->idPersonSpeciality)));
        echo $form->label($model, 'SepcialityID');
        ?>
                    <?php 
        echo $form->dropDownList($model, 'SepcialityID', CHtml::listData(Specialities::model()->findAll(), 'idSpeciality', 'SpecialityDirectionName'), array('class' => "span12", "disabled" => "disabled", "id" => "SepcialityID"));
        ?>

                </div>
                <div class="span2">
                    <?php 
        echo $form->label($model, 'PaymentTypeID');
        ?>
                    <?php 
        echo $form->dropDownList($model, 'PaymentTypeID', CHtml::listData(Personeducationpaymenttypes::model()->findAll(), 'idEducationPaymentTypes', 'EducationPaymentTypesName'), array("disabled" => "disabled", 'class' => "span12", "id" => "PaymentTypeID"));
        ?>
                </div>
                <div class="span2">
                    <?php 
        echo $form->label($model, 'EducationFormID');
        ?>
                    <?php 
        echo $form->dropDownList($model, 'EducationFormID', CHtml::listData(Personeducationforms::model()->findAll(), 'idPersonEducationForm', 'PersonEducationFormName'), array("disabled" => "disabled", "id" => "EducationFormID", 'class' => "span12"));
        ?>
                </div>
                  
                <div class="span1"> 
                    <span>&nbsp;</span>
                  <?php 
        $url = Yii::app()->createUrl("personspeciality/delete", array("id" => $model->idPersonSpeciality));
 /**
  * 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)
 {
     $model = Personeducationpaymenttypes::model()->findByPk($id);
     if ($model === null) {
         throw new CHttpException(404, 'The requested page does not exist.');
     }
     return $model;
 }