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.189.182.15
Current Path : /var/www/html/reva/src/ |
| Current File : /var/www/html/reva/src/qptable_not_upd.php |
<?php
function getDegreeGrp($aobj_context)
{
$aobj_context->mobj_db->SetFetchMode(ADODB_FETCH_ASSOC);
$get_name_by_degree_code="select distinct concat(fdeggrp,'*',fyear,'*',fexamtype) as deggrpcode,
concat(fdescpn,' - ', fexamdate) as deggrpname
from deggrp where ifnull(fdeleted,'') <> 'T'";
$lobj_get_name = $aobj_context->mobj_db->GetAll($get_name_by_degree_code);
if($lobj_get_name)
echo $aobj_context->mobj_output->ToJSONEnvelope($lobj_get_name,0,"success");
else
echo $aobj_context->mobj_output->ToJSONEnvelope($lobj_get_name,-1,"Failure");
return;
}
function loadDegreeDegree($aobj_context){
$aobj_context->mobj_db->SetFetchMode(ADODB_FETCH_ASSOC);
$deggrp = $aobj_context->mobj_data["deggrp"];
$degarray = explode("*",$deggrp);
$fdeggrp = $degarray[0];
$fyear = $degarray[1];
$fexamtype = $degarray[2];
$get_name_by_degree_code="select distinct cs.fdegree, concat(cs.fdegree,' - ',d.fdescpn) as degname
from degree d inner join candsum cs on d.fdegree = cs.fdegree
where ifnull(d.fdeleted,'') <> 'T'
and d.fdeggrp = '{$fdeggrp}'
and ifnull(cs.frecptdate,'') <> ''
and d.fexamno = 'A'
and cs.fyear = '{$fyear}'
and cs.fexamtype = '{$fexamtype}'
order by cs.fdegree";
$lobj_get_name = $aobj_context->mobj_db->GetAll($get_name_by_degree_code);
if($lobj_get_name)
echo $aobj_context->mobj_output->ToJSONEnvelope($lobj_get_name,0,"success");
else
echo $aobj_context->mobj_output->ToJSONEnvelope($lobj_get_name,-1,"Failure");
return;
}
?>
|