public function actionFinal_view($id)
 {
     $emp_doc = new EmployeeDocsTrans('mysearch');
     $emp_doc->unsetAttributes();
     // clear any default values
     if (isset($_GET['EmployeeDocsTrans'])) {
         $emp_doc->attributes = $_GET['EmployeeDocsTrans'];
     }
     $emp_exp = new EmployeeExperienceTrans('mysearch');
     $emp_exp->unsetAttributes();
     // clear any default values
     if (isset($_GET['EmployeeExperienceTrans'])) {
         $emp_exp->attributes = $_GET['EmployeeDocsTrans'];
     }
     $emp_record = new EmployeeAcademicRecordTrans('mysearch');
     $emp_record->unsetAttributes();
     // clear any default values
     if (isset($_GET['EmployeeAcademicRecordTrans'])) {
         $emp_record->attributes = $_GET['EmployeeAcademicRecordTrans'];
     }
     $this->render('final_view', array('model' => $this->loadModel($id), 'emp_doc' => $emp_doc, 'emp_exp' => $emp_exp, 'emp_record' => $emp_record));
 }
	/**
	* This action returns the list of documents of the employee.
	*/
	public function actionEmployeedocs()
	{
		$model=new EmployeeDocsTrans('mysearch');
		$model->unsetAttributes();  // clear any default values
		if(isset($_GET['EmployeeDocsTrans']))
			$model->attributes=$_GET['EmployeeDocsTrans'];

		$this->render('employeedocs',array(
			'employeedocs'=>$model,
		));
	}
	/**
	* This action is used to display the employee Documents in the employee profile.
	*/
	public function actionEmployeedocs()
	{
		$emp_doc=new EmployeeDocsTrans('mysearch');
		$emp_record=new EmployeeAcademicRecordTrans;
		$model=EmployeeTransaction::model()->resetScope()->findByPk($_REQUEST['id']);
		$info = EmployeeInfo::model()->findByPk($model->employee_transaction_employee_id);
		$photo = EmployeePhotos::model()->findByPk($model->employee_transaction_emp_photos_id);
		$lang = LanguagesKnown::model()->findByPk($model->employee_transaction_languages_known_id);
		
		$emp_exp = new EmployeeExperienceTrans;
		$emp_certificate = new EmployeeCertificateDetailsTable;
		$address = EmployeeAddress::model()->findByPk($model->employee_transaction_emp_address_id);
		$emp_doc->unsetAttributes();  // clear any default values

		if(isset($_GET['EmployeeDocsTrans']))
			$emp_doc->attributes=$_GET['EmployeeDocsTrans'];

		$this->render('update',array(
			'model'=>$model,'info'=>$info,'photo'=>$photo,'address'=>$address,'lang'=>$lang,'emp_doc'=>$emp_doc,'emp_record'=>$emp_record,'emp_exp'=>$emp_exp,'flag'=>1,'emp_certificate'=>$emp_certificate
		));	
	}
 public function actionEmployeedocs()
 {
     Yii::app()->clientScript->registerCssFile(Yii::app()->clientScript->getCoreScriptUrl() . '/jui/css/base/jquery-ui.css');
     $emp_doc = new EmployeeDocsTrans('mysearch');
     $model = EmployeeTransaction::model()->findByPk($_REQUEST['id']);
     $emp_doc->unsetAttributes();
     // clear any default values
     if (isset($_GET['EmployeeDocsTrans'])) {
         $emp_doc->attributes = $_GET['EmployeeDocsTrans'];
     }
     $this->render('/employeeDocsTrans/employeedocs', array('model' => $model, 'emp_doc' => $emp_doc));
 }