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


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

<?php
    function loadDegreeThValMarks($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 resmarks 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 getDegThalSem($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 resmarksdet 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;
              }
    } 

    function getExamDateThVal($aobj_context)
    {
      $aobj_context->mobj_db->SetFetchMode(ADODB_FETCH_ASSOC); 
      $degcode = $aobj_context->mobj_data["degcode"];
      $sem = $aobj_context->mobj_data["sem"];
      $collcode = $_SESSION['collcode'];

      $query = "select concat(r.fyear,'*',r.fexamtype) as id, concat(dg.fexamdate) as value 
      from resmarksdet r inner join degree d on r.fdegree = d.fdegree and d.fexamno = r.fexamno
      inner join degexam dg on dg.fdegree = r.fdegree and dg.fexamno = r.fexamno and dg.fyear = r.fyear
      and dg.fexamtype = r.fexamtype
      where r.fdegree = '{$degcode}'
      and r.fexamno = '{$sem}'
      group by r.fyear desc,r.fexamtype";
      //var_dump($query);
      $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;
      }
    } 
?>