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.21.46.13
Current Path : /var/www/oasis/src/ |
| Current File : /var/www/oasis/src/viewNotifications.php |
<?php
function getNotifications($aobj_context){
$aobj_context->mobj_db->SetFetchMode(ADODB_FETCH_ASSOC);
$collcode = $_SESSION['collcode'];
$univcode = $_SESSION['FUNIVCODE'];
$deggrp = trim($aobj_context->mobj_data["deggrp"]);
if($deggrp === ""){
$cond = "";
}else{
$cond = "and d.fdeggrp = '{$deggrp}'";
}
$query = "select distinct '{$univcode}' as funivcode,
s.fcollcode, n.fdeggrp, n.fnotifid, date_format(n.fnotifdate, '%d/%m/%Y')as fnotifdate, n.fnotifname, n.fnotifno
from notifsum n inner join degree d on d.fdeggrp = n.fdeggrp
inner join student s on s.fdegree = d.fdegree
where ifnull(n.fstatus,'F')='T' and s.fcollcode='{$collcode}' {$cond} group by fnotifid order by fnotifid desc";
// var_dump($query);die();
$result = $aobj_context->mobj_db->GetAll($query);
if($result){
echo $aobj_context->mobj_output->ToJSONEnvelope($result,0,"success");
}else{
$arr['msg'] = 'Exam Notifications not available!';
echo $aobj_context->mobj_output->ToJSONEnvelope($arr,-1,"failure");
return;
}
}
?>
|