Ejemplo n.º 1
0
	<div class="row">
		<?php 
echo $form->label($model, 'gender');
?>
		<?php 
echo $form->dropDownList($model, 'gender', array('0' => Yii::t('app', 'No'), '1' => Yii::t('app', 'Yes')), array('prompt' => Yii::t('app', 'All')));
?>
	</div>

	<div class="row">
		<?php 
echo $form->label($model, 'nationality_id');
?>
		<?php 
echo $form->dropDownList($model, 'nationality_id', GxHtml::listDataEx(Nationality::model()->findAllAttributes(null, true)), array('prompt' => Yii::t('app', 'All')));
?>
	</div>

	<div class="row">
		<?php 
echo $form->label($model, 'phone_number');
?>
		<?php 
echo $form->textField($model, 'phone_number', array('maxlength' => 15));
?>
	</div>

	<div class="row">
		<?php 
echo $form->label($model, 'family_member');
Ejemplo n.º 2
0
		background: white;
	}
	th{text-align:left;font-weight:normal;color:#990a10;width:110px;border:0.4px solid #74b9f0;height:24px;}
	.title{color:seagreen;}
	td{border:0.4px solid #74b9f0;height:24px;}
	.label{text-align:left;font-weight:normal;color:#990a10;width:110px;height:24px;}
	
	
	
</style>
<?php
$StudentInfo = StudentInfo::model()->findByPk($student_transaction[0]->student_transaction_student_id);
$AcademicTermPeriod = AcademicTermPeriod::model()->findByPk($student_transaction[0]->academic_term_period_id);
$AcademicTerm = AcademicTerm::model()->findByPk($student_transaction[0]->academic_term_id);
if($student_transaction[0]->student_transaction_nationality_id != null)
$Nationality = Nationality::model()->findByPk($student_transaction[0]->student_transaction_nationality_id);
else
$Nationality = new Nationality;
$Batch = Batch::model()->findByPk($student_transaction[0]->student_transaction_batch_id);
$Course = Course::model()->findByPk($student_transaction[0]->course_id);
if($student_transaction[0]->student_transaction_languages_known_id != null)
$LanguagesKnown = LanguagesKnown::model()->findByPk($student_transaction[0]->student_transaction_languages_known_id);
if($student_transaction[0]->student_transaction_student_address_id != null)
$StudentAddress = StudentAddress::model()->findByPk($student_transaction[0]->student_transaction_student_address_id);
else
$StudentAddress = new StudentAddress;
if($student_transaction[0]->student_transaction_parent_id != null || $student_transaction[0]->student_transaction_parent_id != 0)
$parent = ParentLogin::model()->findByPk($student_transaction[0]->student_transaction_parent_id);
else
$parent = new ParentLogin;
?>
 /**
  * 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 = Nationality::model()->findByPk((int) $id);
     if ($model === null) {
         throw new CHttpException(404, 'The requested page does not exist.');
     }
     return $model;
 }
Ejemplo n.º 4
0
                                    <?php 
    echo $form->textField($model, 'email', array('size' => 40, 'maxlength' => 256));
    ?>
                                    <?php 
    echo $form->error($model, 'email');
    ?>
                                </td>
                            </tr>
                            <tr>
                                <td><?php 
    echo $form->labelEx($model, 'id_nationality');
    ?>
</td>
                                <td>
                                    <?php 
    echo $form->dropDownList($model, 'id_nationality', CHtml::listData(Nationality::model()->findAll(), 'id', 'name'));
    ?>
     
                                </td>
                            </tr>
                            <tr>
                                <td><?php 
    echo $form->labelEx($model, 'id_profession');
    ?>
</td>
                                <td>
                                    <?php 
    echo $form->dropDownList($model, 'id_profession', CHtml::listData(Profession::model()->findAll(), 'id', 'name'));
    ?>
     
                                </td>
Ejemplo n.º 5
0
		<?php 
echo $form->labelEx($model, 'gender');
?>
		<?php 
echo $form->checkBox($model, 'gender');
?>
		<?php 
echo $form->error($model, 'gender');
?>
		</div><!-- row -->
		<div class="row">
		<?php 
echo $form->labelEx($model, 'nationality_id');
?>
		<?php 
echo $form->dropDownList($model, 'nationality_id', GxHtml::listDataEx(Nationality::model()->findAllAttributes(null, true)));
?>
		<?php 
echo $form->error($model, 'nationality_id');
?>
		</div><!-- row -->
		<div class="row">
		<?php 
echo $form->labelEx($model, 'phone_number');
?>
		<?php 
echo $form->textField($model, 'phone_number', array('maxlength' => 15));
?>
		<?php 
echo $form->error($model, 'phone_number');
?>
$EmployeeInfo = EmployeeInfo::model()->findByPk($employee_transaction[0]->employee_transaction_employee_id);
if ($employee_transaction[0]->employee_transaction_category_id != null) {
    $Category = Category::model()->findByPk($employee_transaction[0]->employee_transaction_category_id);
} else {
    $Category = new Category();
}
if ($employee_transaction[0]->employee_transaction_religion_id != null) {
    $Religion = Religion::model()->findByPk($employee_transaction[0]->employee_transaction_religion_id);
} else {
    $Religion = new Religion();
}
$Shift = Shift::model()->findByPk($employee_transaction[0]->employee_transaction_shift_id);
$EmployeeDesignation = EmployeeDesignation::model()->findByPk($employee_transaction[0]->employee_transaction_designation_id);
if ($employee_transaction[0]->employee_transaction_nationality_id != null) {
    $Nationality = Nationality::model()->findByPk($employee_transaction[0]->employee_transaction_nationality_id);
} else {
    $Nationality = new Nationality();
}
$Department = Department::model()->findByPk($employee_transaction[0]->employee_transaction_department_id);
if ($employee_transaction[0]->employee_transaction_languages_known_id != null) {
    $LanguagesKnown = LanguagesKnown::model()->findByPk($employee_transaction[0]->employee_transaction_languages_known_id);
}
$Organization = Organization::model()->findByPk($employee_transaction[0]->employee_transaction_organization_id);
if ($employee_transaction[0]->employee_transaction_emp_address_id != null) {
    $EmployeeAddress = EmployeeAddress::model()->findByPk($employee_transaction[0]->employee_transaction_emp_address_id);
} else {
    $EmployeeAddress = new EmployeeAddress();
}
?>
<h3>Employee Detail</h3>
Ejemplo n.º 7
0
<?php

$this->breadcrumbs = array(Yii::t('flexiblearn', 'Accounts') => array('index'), Yii::t('flexiblearn', 'Manage'));
?>

<h1><?php 
echo Yii::t('flexiblearn', 'Manage Accounts');
?>
</h1>

<?php 
$this->widget('zii.widgets.grid.CGridView', array('id' => 'account-grid', 'enablePagination' => true, 'dataProvider' => $model->search(), 'filter' => $model, 'columns' => array(array('header' => 'No', 'value' => '$this->grid->dataProvider->pagination->currentPage*$this->grid->dataProvider->pagination->pageSize + $row+1', 'htmlOptions' => array('class' => 'number-column')), 'username', array('name' => 'fullname', 'filter' => false), array('name' => 'tel', 'filter' => false), array('name' => 'dateOfBirth', 'filter' => false, 'value' => 'Yii::app()->dateFormatter->format("' . Yii::app()->params['dateFormat'] . '",$data->dateOfBirth)'), array('name' => 'id_nationality', 'filter' => CHtml::listData(Nationality::model()->findAll(), 'id', 'name'), 'value' => '($data->nationality)?$data->nationality->name:""'), array('name' => 'id_profession', 'filter' => CHtml::listData(Profession::model()->findAll(), 'id', 'name'), 'value' => '($data->profession)?$data->profession->name:""'), array('header' => Yii::t('flexiblearn', 'Role'), 'value' => 'Yii::t("zii", $data->role)'), array('class' => 'CButtonColumn'))));
		</div>
	</div>

</div>

<div class = "row_all">
	<div class="row_t_v">
		<?php 
echo '<lable><b>Nationality :</b></lable>';
?>
		<div class="rowm">
			<?php 
$nationid = StudentTransaction::model()->findByPk($model->student_archive_stud_tran_id)->student_transaction_nationality_id;
?>
			<?php 
echo Nationality::model()->findByPk($nationid)->nationality_name;
?>
		</div>
	</div>

	<div class="row_t_v">
		<?php 
echo '<lable><b>Quota :</b></lable>';
?>
		<div class="rowm">
			<?php 
$quotaid = StudentTransaction::model()->findByPk($model->student_archive_stud_tran_id)->student_transaction_category_id;
?>
			<?php 
echo Quota::model()->findByPk($quotaid)->quota_name;
?>
Ejemplo n.º 9
0
	<td>
	  <?php 
if (isset($student_transaction[0]->student_academic_term_name_id)) {
    echo AcademicTerm::model()->findByPk($student_transaction[0]->student_academic_term_name_id)->academic_term_name;
} else {
    echo "N/A";
}
?>
	</td>
</tr>
<tr>
	<td><label> Nationality </label></td>
	<td>
	   <?php 
if (isset($student_transaction[0]->student_transaction_nationality_id)) {
    echo Nationality::model()->findByPk($student_transaction[0]->student_transaction_nationality_id)->nationality_name;
} else {
    echo "N/A";
}
?>
	</td>
</tr>		

</table>
</br></br>


<h4>Guardian Info</h4>
<table border="1" width="200px">
<tr>
	<td>