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


Current Path : /proc/thread-self/root/var/www/oasis/src/
Upload File :
Current File : //proc/thread-self/root/var/www/oasis/src/courserep.php

<?php
    function loadDegreeCourseRep($aobj_context)
    {
        $aobj_context->mobj_db->SetFetchMode(ADODB_FETCH_ASSOC); 
        $collcode = $_SESSION['collcode'];
        
        $query = "select r.fdegree as id, concat(r.fdegree, ' - ', d.fdescpn) as value 
        from attshort r inner join degree d on r.fdegree = d.fdegree and d.fexamno = r.fexamno
        inner join student st on r.fregno = st.fregno
        and r.fdegree = st.fdegree
        where st.fcollcode = '{$collcode}'
        group by r.fdegree";
        $res = $aobj_context->mobj_db->GetAll($query);
        
        if($res){
          echo $aobj_context->mobj_output->ToJSONEnvelope($res, 0, "success");
          return false;
        }else{ 
          $arr['msg']='No degree group found!';
          echo $aobj_context->mobj_output->ToJSONEnvelope($arr,-1,"Failure");
          return;
        }
    } 
    
    function getDegCourseRepSem($aobj_context)
    {
        $aobj_context->mobj_db->SetFetchMode(ADODB_FETCH_ASSOC); 
        $degcode = $aobj_context->mobj_data["degcode"];
        $collcode = $_SESSION['collcode'];

        $query = "select r.fexamno as id, concat(r.fexamno, ' - ', d.fexamname) as value 
        from attshort r inner join degree d on r.fdegree = d.fdegree and d.fexamno = r.fexamno
        where r.fdegree = '{$degcode}'
        group by r.fexamno";
        $res = $aobj_context->mobj_db->GetAll($query);
        
        if($res){
          echo $aobj_context->mobj_output->ToJSONEnvelope($res, 0, "success");
          return false;
	      }else{ 
          $arr['msg']='No degree group found!';
          echo $aobj_context->mobj_output->ToJSONEnvelope($arr,-1,"Failure");
          return;
        }
    } 

?>