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


Current Path : /var/www/html/collportal/src/
Upload File :
Current File : //var/www/html/collportal/src/admdet.php

<?php
    function getAdmissionDetails($aobj_context){
        $query = 'select * from studadm_rr';
        $res = $aobj_context->mobj_db->GetAll($query);
        if($res){
            echo $aobj_context->mobj_output->ToJSONEnvelope($res, 0, "success"); 
        }else{  
            $arr['msg'] = "No data found";
            echo $aobj_context->mobj_output->ToJSONEnvelope($arr, -1, "failure"); 
            return;
        }
    }

    function getAdmissionCountDetails($aobj_context){
        $query = "select sum(if(ifnull(fpaymentstatus, '') = 'T',1,0)) as completed,
                  sum(if(ifnull(fpaymentstatus, '') = 'R',1,0)) as applied,
                  sum(if(ifnull(fpaymentstatus, '') = '',1,0)) as notpaid from studadm_rr;";
        $res = $aobj_context->mobj_db->GetRow($query);
        if($res){
            echo $aobj_context->mobj_output->ToJSONEnvelope($res, 0, "success"); 
        }else{  
            $arr['msg'] = "No data found";
            echo $aobj_context->mobj_output->ToJSONEnvelope($arr, -1, "failure"); 
            return;
        }

    }

?>