0xV3NOMx
Linux ip-172-26-7-228 5.4.0-1103-aws #111~18.04.1-Ubuntu SMP Tue May 23 20:04:10 UTC 2023 x86_64



Your IP : 3.146.176.112


Current Path : /proc/thread-self/root/var/www/misc/public_html/cuget16/src/
Upload File :
Current File : //proc/thread-self/root/var/www/misc/public_html/cuget16/src/dropDown.php

 <?php
    
  class dropDown
	{ 
    public $drop_down_arr;
		function __construct($aobj_context)
		  {
			session_start();
			$this->aobj_context=$aobj_context;
			$aobj_context->mobj_db->SetFetchMode(ADODB_FETCH_ASSOC);	
			 $this->drop_down_arr=array();
			 $this->UpdateLoginCntr();
		 }
	function UpdateLoginCntr()
	{
		$update_log_cnt="update login_counter set login_cnt=login_cnt+1";         		 				
				$lobj_update_log_cnt = $this->aobj_context->mobj_db->Execute($update_log_cnt);
	}	
	function GetDistict()
	{  
		 $getData=" select FDISTCODE as code,concat(FDISTCODE,' - ',FDISTNAME) as name 
		 from masdist order by  FDISTCODE ";				 
		  $obj =  $this->aobj_context->mobj_db->GetAll($getData); 
		  
		  $this->drop_down_arr[distict]=$obj;
				 
	}function GetCenter()
	{  
		 $getData=" select fcntrcode as code,fcntrname as name 
					from mascntr where active=1 order by fcntrcode";				 
		  $obj =  $this->aobj_context->mobj_db->GetAll($getData); 
		  
		  $this->drop_down_arr['center']=$obj;
				 
	}
	function GetUniversity()
	{
		$getuniversityData="select FUNIVCODE as code,concat(FUNIVCODE,' - ',FUNIVNAME) as name from masuniv order by FUNIVCODE";
		$obj_univ_data =  $this->aobj_context->mobj_db->GetAll($getuniversityData); 
		$this->drop_down_arr[univ]=$obj_univ_data;
	}
	function GetMedicalCollege()
	{
		$getmedicalcollData="select FCOLLCODE as code,concat(FCOLLCODE,' - ',FCOLLNAME,', ',FTOWN) as name,
							FTOWN as city  from mascollm order by FCOLLCODE";
		$obj_medical_data =  $this->aobj_context->mobj_db->GetAll($getmedicalcollData); 
		$this->drop_down_arr[medical]=$obj_medical_data;
	}
	function GetDentalCollege()
	{
		$getdentalcollData="select FCOLLCODE as code,concat(FCOLLCODE,' - ',FCOLLNAME,', ',FTOWN) as name,FTOWN as city from mascolld order by FCOLLCODE";
		$obj_dental_data =  $this->aobj_context->mobj_db->GetAll($getdentalcollData); 
		$this->drop_down_arr[dental]=$obj_dental_data;
	}function GetSubject()
	{
		$getdentalcollData="select fsubcode as code,
						fsubname  as name , fsession from subject where ifnull(fsuspend,'') <> 'T' order by fsubcode";
		$obj_dental_data =  $this->aobj_context->mobj_db->GetAll($getdentalcollData); 
		$this->drop_down_arr['subject']=$obj_dental_data;
	}
	function GetCategory()
	{
		$getdentalcollData="select FCATEGORY as code,
						FDESCPN  as name,FPGETFEE,FPGETFEE2 from mascategory order by FCATEGORY";
		$obj_dental_data =  $this->aobj_context->mobj_db->GetAll($getdentalcollData); 
		$this->drop_down_arr[category]=$obj_dental_data;
	}
	 function GetDept()
	{
		$getdentalcollData="select FDEPTCODE as code,
		concat(FDEPTCODE,' - ',FDEPTDESC) as name from masdept order by FDEPTCODE";
		$obj_dental_data =  $this->aobj_context->mobj_db->GetAll($getdentalcollData); 
		$this->drop_down_arr[fdeptcode]=$obj_dental_data;
	}
	function RetunDropDownArr()
	{
  
		$data=$this->drop_down_arr;
		echo $this->aobj_context->mobj_output->ToJSONEnvelope($data,0,"success"); 
			 
	}
}
 
function GetDropdownMenuValues($aobj_context)
{
    $class_obj=new dropDown($aobj_context);
	$aobj_context->mobj_db->SetFetchMode(ADODB_FETCH_ASSOC);
	 $class_obj->GetSubject();
	 $class_obj->GetCenter();
	// $class_obj->GetDistict();
	// $class_obj->GetUniversity();
	 //$class_obj->GetMedicalCollege();
	 //$class_obj->GetDentalCollege();
	 $class_obj->GetDept();
	 $class_obj->GetCategory();
	 $class_obj->RetunDropDownArr();
	 
	 
} 

	function GetCategoryListDetails($aobj_context)
	{
		$this->aobj_context=$aobj_context;
		$this->aobj_context->mobj_db->SetFetchMode(ADODB_FETCH_ASSOC);	
		$getdentalcollData="select FCATEGORY as code,
						FDESCPN  as name,FPGETFEE,FPGETFEE2 from mascategory order by FCATEGORY";
		$obj_dental_data =  $this->aobj_context->mobj_db->GetAll($getdentalcollData); 
		$this->drop_down_arr[category]=$obj_dental_data;
		$data=$this->drop_down_arr;
		echo $this->aobj_context->mobj_output->ToJSONEnvelope($data,0,"success"); 
	}
	
	function GetMeritSubListTable($aobj_context)
	{
		$aobj_context->mobj_db->SetFetchMode(ADODB_FETCH_ASSOC);
		$mainsub=trim($aobj_context->mobj_data["mainsub"]);
			
		$query="select fsubcode as code,fsubname as name from subject
		where fmainsub = '{$mainsub}' and ifnull(fsuspend,'') <> 'T' order by forder";
		$rst =  $aobj_context->mobj_db->GetAll($query); 
		echo $aobj_context->mobj_output->ToJSONEnvelope($rst,0,"success"); 
	}
?>