/**
  * Displays a particular model.
  * @param integer $id the ID of the model to be displayed
  */
 public function actionView($id)
 {
     $test = new StudentDocsTrans();
     $docs_model = new StudentDocsTrans('mysearch');
     $stu_record = new StudentAcademicRecordTrans('mysearch');
     $docs_model->unsetAttributes();
     // clear any default values
     $stu_record->unsetAttributes();
     // clear any default values
     if (isset($_GET['StudentDocsTrans'])) {
         $docs_model->attributes = $_GET['StudentDocsTrans'];
     }
     if (isset($_GET['StudentAcademicRecordTrans'])) {
         $stu_record->attributes = $_GET['StudentAcademicRecordTrans'];
     }
     $this->render('view', array('model' => $this->loadModel($id), 'docs_model' => $docs_model, 'test' => $test, 'stu_record' => $stu_record));
 }
 public function actionStudentdocs()
 {
     $studentdocstrans = new StudentDocsTrans('mysearch');
     Yii::app()->clientScript->registerCssFile(Yii::app()->clientScript->getCoreScriptUrl() . '/jui/css/base/jquery-ui.css');
     $studentdocstrans->unsetAttributes();
     // clear any default values
     if (isset($_GET['StudentDocsTrans'])) {
         $studentdocstrans->attributes = $_GET['StudentDocsTrans'];
     }
     $this->render('/studentDocsTrans/studentdocstrans', array('studentdocstrans' => $studentdocstrans));
 }
Пример #3
0
	public function actionStudentdocs()
	{
	   $id = Yii::app()->user->getState('stud_id');
	   $model=StudentTransaction::model()->findByPk($id);
	   $info = StudentInfo::model()->findByPk($model->student_transaction_student_id);
	   $address = StudentAddress::model()->findByPk($model->student_transaction_student_address_id);
	   $photo = StudentPhotos::model()->findByPk($model->student_transaction_student_photos_id);
	   $lang = LanguagesKnown::model()->findByPk($model->student_transaction_languages_known_id);
	   $stud_qua = new StudentAcademicRecordTrans;
	   $stud_feed = new FeedbackDetailsTable;
	   $studentcertificate=new StudentCertificateDetailsTable;
	   $studentdocstrans=new StudentDocsTrans('mysearch');
	   $parent = new ParentLogin;
	        $studentdocstrans->unsetAttributes();  // clear any default values
		if(isset($_GET['StudentDocsTrans']))
			$studentdocstrans->attributes=$_GET['StudentDocsTrans'];

		$this->render('update',array(
			'model'=>$model,'info'=>$info,'photo'=>$photo,'address'=>$address,'lang'=>$lang,'studentdocstrans'=>$studentdocstrans, 'stud_qua'=>$stud_qua,'stud_feed'=>$stud_feed,'flag'=>0,'studentcertificate'=>$studentcertificate,'parent'=>$parent
		));
	}
 public function actionStudentDocs()
 {
     $model = new StudentDocsTrans('mysearch');
     $model->unsetAttributes();
     // clear any default values
     if (isset($_GET['StudentDocsTrans'])) {
         $model->attributes = $_GET['StudentDocsTrans'];
     }
     $this->render('studentdocstrans', array('studentdocstrans' => $model));
 }
	public function actionStudentdocs()
	{
	   $model=$this->loadModel($_REQUEST['id']);
	   $user = User::model()->findByPk($model->student_transaction_user_id);
	   $info = StudentInfo::model()->findByPk($model->student_transaction_student_id);
	   $address = StudentAddress::model()->findByPk($model->student_transaction_student_address_id);
	   $photo = StudentPhotos::model()->findByPk($model->student_transaction_student_photos_id);
	   $lang = LanguagesKnown::model()->findByPk($model->student_transaction_languages_known_id);
	   $stud_qua = new StudentAcademicRecordTrans;
	   $studentcertificate=new StudentCertificateDetailsTable;
	   $studentdocstrans=new StudentDocsTrans('mysearch');
	   $parent = '';
	   $yearModel=new Year;
	   if(isset(Yii::app()->modules['parents']))
	   $parent = new ParentLogin;

	        $studentdocstrans->unsetAttributes();  // clear any default values
		if(isset($_GET['StudentDocsTrans']))
			$studentdocstrans->attributes=$_GET['StudentDocsTrans'];

		$this->render('update',array(
			'model'=>$model,'info'=>$info,'photo'=>$photo,'address'=>$address,'user'=>$user,'lang'=>$lang,'studentdocstrans'=>$studentdocstrans, 'stud_qua'=>$stud_qua, 'flag'=>0, 'studentcertificate'=>$studentcertificate,'parent'=>$parent,'yearModel'=>$yearModel
		));
	}