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


Current Path : /var/www/html/univadmin/src/
Upload File :
Current File : /var/www/html/univadmin/src/bundledispatchrpt.php

<?php
function getdeggrpbundle($aobj_context){
    $univcode = $aobj_context->mobj_data['univcode'];

    $query="select distinct ifnull(dg.fdeggrp,'') as fdeggrp,ifnull(dg.fdescpn,'') as fdescpn 
    from deggrp dg 
    inner join degree d on dg.fdeggrp = d.fdeggrp 
    inner join candsum c on c.fdegree = d.fdegree
    where dg.fdeleted <> 'T'";
      $result = $aobj_context->pobj_db->GetAll($query);
      
   if($result){
       
     echo $aobj_context->mobj_output->ToJSONEnvelope($result, 0, "success");
   }
   else{
     $arr['msg']="Failed to load";
     echo $aobj_context->mobj_output->ToJSONEnvelope($arr, -1, "failure");
   }
}

function getexamdate($aobj_context){
    $univcode = $aobj_context->mobj_data['univcode'];
    $deggrp = $aobj_context->mobj_data['deggrp'];
    if($univcode == '030')
    {
      $query="select distinct ifnull(date_format(t.FDOE,'%d/%m/%Y'),'') as fdoe 
      from timetable t 
      inner join deggrp dg on t.fdeggrp = dg.fdeggrp and t.fyear = dg.fyear
	    and t.fexamtype = dg.fexamtype
      where t.fdeggrp = '{$deggrp}' and ifnull(t.fdoe,'0000-00-00') <> '0000-00-00'";
    }else
    {
      $query="select distinct ifnull(date_format(s.FDOE,'%d/%m/%Y'),'') as fdoe 
      from subject s
      inner join degree d on s.FDEGREE = d.fdegree and s.fexamno = d.fexamno
      inner join deggrp dg on d.fdeggrp = dg.fdeggrp
      inner join candsum cs on s.fdegree = cs.fdegree
      where dg.fdeggrp = '{$deggrp}' and ifnull(s.fdoe,'0000-00-00') <> '0000-00-00'";
    }

    $result = $aobj_context->pobj_db->GetAll($query);
      
   if($result){
       
     echo $aobj_context->mobj_output->ToJSONEnvelope($result, 0, "success");
   }
   else{
     $arr['msg']="Failed to load";
     echo $aobj_context->mobj_output->ToJSONEnvelope($arr, -1, "failure");
   }
}

function loadbundledispatchrpt($aobj_context){
    $univcode = $aobj_context->mobj_data['univcode'];
    $date = $aobj_context->mobj_data['date'];


    $query="select distinct ifnull(cd.fcollcode,'') as fcntrcode,
    concat(cd.fcollcode,' - ',cl.fcollname,', ',cl.ftown) as collname,
    count(cd.FBUNO) as buncnt,
    group_concat(cd.FQPCODE,' - ',cd.FBUNO,' - ',cd.FTOTSCRIPT order by cd.fqpcode,cd.FBUNO SEPARATOR ' | ') as details
    from colldesp cd 
    inner join college cl on cd.fcollcode = cl.fcollcode
    where cd.FDOE = date_format(STR_TO_DATE('{$date}', '%d/%m/%Y'),'%Y-%m-%d')
    group by cd.fcollcode";

      $result = $aobj_context->pobj_db->GetAll($query);

      
   if($result){
     echo $aobj_context->mobj_output->ToJSONEnvelope($result, 0, "success");
   }
   else{
     $arr['msg']="Failed to load";
     echo $aobj_context->mobj_output->ToJSONEnvelope($arr, -1, "failure");
   }
}

?>