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


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

<?php

function loadUnivAll($aobj_context){
  $aobj_context->mobj_db->SetFetchMode(ADODB_FETCH_ASSOC);
  
    $query = "select funivcode,funivname from dbname where ifnull(fdeleted,'') <> 'T'";
    $result = $aobj_context->mobj_db->GetAll($query);

    if($result){
        $arr['data']=$result;
        echo $aobj_context->mobj_output->ToJSONEnvelope($arr,0,"success"); 
        return;
      }else{
        $arr['msg']="no data found";
        echo $aobj_context->mobj_output->ToJSONEnvelope($arr,-1,"Failure");
        return;
      }

}

function loadModCorrectionDet($aobj_context){
  
  $aobj_context->mobj_db->SetFetchMode(ADODB_FETCH_ASSOC);
  $univcode = trim($aobj_context->mobj_data["univcode"]);
  $datefrom = trim($aobj_context->mobj_data["datefrom"]);
  $dateto = trim($aobj_context->mobj_data["dateto"]);

  //die();
  $query = "select count(*) as tot_app,
  ifnull(sum(if(ifnull(fstatus,'F') = 'T',1,0)),0) as mod_done,
  ifnull(sum(if(ifnull(fstatus,'F') = 'T',0,1)),0) as mod_pend
  from modmarks where date_format(fmoddate,'%Y-%m-%d') between 
  date_format(str_to_date('{$datefrom}','%d/%m/%Y'),'%Y-%m-%d')
  and date_format(str_to_date('{$dateto}','%d/%m/%Y'),'%Y-%m-%d')";
  $result = $aobj_context->pobj_db->GetRow($query);
 
  if($result){
      $arr['data']=$result;
      echo $aobj_context->mobj_output->ToJSONEnvelope($arr,0,"success"); 
      return;
    }else{
      $arr['msg']="no data found";
      echo $aobj_context->mobj_output->ToJSONEnvelope($arr,-1,"Failure");
      return;
    }

}

?>