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 : 13.58.232.94
<?php
function loadPrBillDegree($aobj_context)
{
@session_start();
$aobj_context->mobj_db->SetFetchMode(ADODB_FETCH_ASSOC);
$collcode = $_SESSION['collcode'];
$query=" SELECT a.fdegree,concat(d.fdescpn,'[',d.fdegree,']') as fdescpn
FROM marks_pr a
INNER JOIN degree d ON a.fdegree=d.fdegree
and a.fexamno = d.fexamno
WHERE a.fcollcode='{$collcode}'
GROUP BY a.fdegree
order by a.fdegree";
$result = $aobj_context->mobj_db->GetAll($query);
if($result)
{
echo $aobj_context->mobj_output->ToJSONEnvelope($result,0,"success");
return;
}
else
{
$arr['msg'] = 'No Degree Found';
echo $aobj_context->mobj_output->ToJSONEnvelope($arr,-1,"failure");
return;
}
}
function getPrBillDegSem($aobj_context){
$aobj_context->mobj_db->SetFetchMode(ADODB_FETCH_ASSOC);
$collcode = $_SESSION['collcode'];
$degree = $aobj_context->mobj_data["degree"];
$query="SELECT DISTINCT d.fexamno, d.fexamname
FROM degree d inner join marks_pr a on a.fdegree = d.fdegree
and a.fexamno = d.fexamno
where a.fdegree='{$degree}'
and a.fcollcode = '{$collcode}'";
$result = $aobj_context->mobj_db->GetAll($query);
if($result)
{
echo $aobj_context->mobj_output->ToJSONEnvelope($result,0,"success");
return;
}
else
{
$arr['msg'] = 'No Exam Number Found';
echo $aobj_context->mobj_output->ToJSONEnvelope($arr,-1,"failure");
return;
}
}
function getPrBillSub($aobj_context){
$aobj_context->mobj_db->SetFetchMode(ADODB_FETCH_ASSOC);
$collcode = $_SESSION['collcode'];
$userid = $_SESSION['user_id'];
$usrtype = $_SESSION['usrtype'];
$degree = $aobj_context->mobj_data["degree"];
$examno = $aobj_context->mobj_data["examno"];
$cnd = "and a.fexamno = '{$examno}'";
if(strtoupper($examno) == 'ALL')
{
$cnd = '';
}
$query = "SELECT DISTINCT concat(s.fsubname, ' - ', s.fssubname)as fsubname,
s.fcsubcode as fsubcode,s.fsubshort
FROM subject s INNER JOIN marks_pr a ON s.fdegree=a.fdegree and a.fsubcode = s.fcsubcode
and s.fexamno = a.fexamno
WHERE a.fdegree='{$degree}' AND a.fcollcode='{$collcode}'
{$cnd}";
$result = $aobj_context->mobj_db->GetAll($query);
if($result)
{
echo $aobj_context->mobj_output->ToJSONEnvelope($result,0,"success");
return;
}
else
{
$arr['msg'] = 'No Subject Found';
echo $aobj_context->mobj_output->ToJSONEnvelope($arr,-1,"failure");
return;
}
}
?>
|