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.17.174.204
Current Path : /var/www/oasis/src/ |
| Current File : /var/www/oasis/src/examappfeereport.php |
<?php
function studentAppFeeDeggrp($aobj_context){
$aobj_context->mobj_db->SetFetchMode(ADODB_FETCH_ASSOC);
$query = "select fdeggrp, concat(fdeggrp, ' - ', fdescpn)as fdescpn from deggrp";
$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 getStudAppFeeDegree($aobj_context){
$aobj_context->mobj_db->SetFetchMode(ADODB_FETCH_ASSOC);
$deggrp = $aobj_context->mobj_data["deggrp"];
$collcode = $_SESSION['collcode'];
$query = "select distinct d.fdegree, concat(d.fdegree , ' - ' ,d.fdescpn)as fdescpn
from degree d
inner join colldeg c on c.fdegree = d.fdegree where d.fdeggrp='{$deggrp}'
and fcollcode='{$collcode}';";
$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 getSemDet($aobj_context){
$aobj_context->mobj_db->SetFetchMode(ADODB_FETCH_ASSOC);
$deggrp = $aobj_context->mobj_data["deggrp"];
$degree = $aobj_context->mobj_data["degree"];
$collcode = $_SESSION['collcode'];
$query = "select d.fexamno from degree d
inner join colldeg c on c.fdegree = d.fdegree
where d.fdeggrp='{$deggrp}' and d.fdegree = '{$degree}'
and fcollcode='{$collcode}'";
$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;
}
}
?>
|