public function actionAddfees()
 {
     $model = new StudentTransaction('search');
     $model->unsetAttributes();
     // clear any default values
     if (isset($_GET['StudentTransaction'])) {
         $model->attributes = $_GET['StudentTransaction'];
     }
     $this->render('add_fees_student_list', array('stud_model' => $model));
 }
 /**
  * Manages miscellaneous fees.
  */
 public function actionMadmin()
 {
     $model = new StudentTransaction('search');
     $model->unsetAttributes();
     // clear any default values
     if (isset($_GET['StudentTransaction'])) {
         $model->attributes = $_GET['StudentTransaction'];
     }
     $this->render('madmin', array('model' => $model));
 }
 public function actionResetstudpassword()
 {
     $model = new StudentTransaction('resetloginstudentsearch');
     $model->unsetAttributes();
     // clear any default values
     if (isset($_GET['StudentTransaction'])) {
         $model->attributes = $_GET['StudentTransaction'];
     }
     $this->render('resetstudpassword', array('model' => $model));
 }
	public function actionBatchWiseStudents()
	{
		$model=new StudentTransaction('batchwisestudent');
		$model->unsetAttributes();  // clear any default values
		if(isset($_GET['StudentTransaction']))
			$model->attributes=$_GET['StudentTransaction'];

		$this->render('batchwise_student',array(
			'model'=>$model,
		));	
	}
	public function actionStudentBulkSmsEmail()
	{
		$model=new StudentTransaction('smssearch');
		$model->unsetAttributes();  // clear any default values
		if(isset($_GET['StudentTransaction']))
			$model->attributes=$_GET['StudentTransaction'];

		$this->render('select',array(
			'model'=>$model,
			));

	}
 public function actionStudentdocumentsearchview($branch_id, $cat_id, $acdm_period, $sem)
 {
     $model = new StudentTransaction('newsearch');
     $model->unsetAttributes();
     // clear any default values
     if (isset($_GET['StudentTransaction'])) {
         $model->student_transaction_id = $_GET['StudentTransaction']['student_transaction_id'];
         $model->student_first_name = $_GET['StudentTransaction']['student_first_name'];
     }
     $this->render('student_document_search_view', array('model' => $model, 'branch_id' => $branch_id, 'cat_id' => $cat_id, 'acdm_period' => $acdm_period, 'sem' => $sem));
 }
 public function actionStudentdocumentsearchview1()
 {
     $model = new StudentTransaction('newsearch');
     $model->unsetAttributes();
     // clear any default values
     $stud_trans = Yii::app()->db->createCommand()->select('*')->from('student_transaction stud')->join('student_docs_trans s_doc_tran', 's_doc_tran.student_docs_trans_user_id=stud.student_transaction_id')->join('student_docs stud_doc', 'stud_doc.student_docs_id = s_doc_tran.student_docs_trans_stud_docs_id')->queryAll();
     $this->render('student_document_search_view1', array('model' => $model, 'stud_trans' => $stud_trans));
 }
	public function actionCancelstudent()
	{
		$stud_id  = StudentTransaction::model()->findByPk($_REQUEST['id']);
		$status_model = new LeftDetainedPassStudentTable;
		$this->performAjaxValidation($status_model);
		if(isset($_POST['update_status_student']))
		{
			$status_model->attributes=$_POST['LeftDetainedPassStudentTable'];	
			$status_model->student_id = $stud_id->student_transaction_id;
			$status_model->status_id = $status_model->status_id;
			if($status_model->left_detained_pass_student_cancel_date == "")
			{
				$status_model->left_detained_pass_student_cancel_date = NULL;	
			}
			else
			{
				$cancel_date = $status_model->left_detained_pass_student_cancel_date;
				$date = date("Y-m-d", strtotime($cancel_date));
				$status_model->left_detained_pass_student_cancel_date = $date;
			}
			$status_model->academic_term_period_id = $stud_id->student_academic_term_period_tran_id;
			$status_model->sem = $stud_id->student_academic_term_name_id;
			$status_model->creation_date = new CDbExpression('NOW()');
			$status_model->created_by = Yii::app()->user->id;
			$status_model->oraganization_id = Yii::app()->user->getState('org_id');
			$status_model->save(false);
			$stud_id->student_transaction_detain_student_flag = $status_model->status_id;
			$stud_id->save(false);
			$this->redirect(array('leftDetainedPassStudentTable/cancelstudentlist'));
		}
		
		$model=new StudentTransaction('search');
		$model->unsetAttributes();  // clear any default values
		if(isset($_GET['StudentTransaction']))
			$model->attributes=$_GET['StudentTransaction'];
			$this->render('cancel_student',array(
			'model'=>$model,'status_model'=>$status_model,
		));
	}