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.144.89.0
Current Path : /var/www/html/bcu/src/ |
| Current File : /var/www/html/bcu/src/remove_exam_ack.php |
<?php
function RemoveExamAck($aobj_context)
{
$aobj_context->mobj_db->SetFetchMode(ADODB_FETCH_ASSOC);
@session_start();
$fappno = $aobj_context->mobj_data["fappno"];
$fflag = $aobj_context->mobj_data["fflag"];
//var_dump($fappno);
$update ="update appcandsum
set fackdate = null, fackuser = null,
fpaymentconfirm = null, fpaymentstatus = null, FPAYGATEWAY = null,
fpaymentremarks = null, frecptdate = null
where appno = '{$apk}'";
$lobj_get_data = $aobj_context->mobj_db->Execute($update);
if($fflag == 'T')
{
$lquery = "select fregno from appcandsum where appno = '{$apk}'";
$lresult = $aobj_context->mobj_db->getRow($lquery);
$fregno = $lresult['fregno'];
$update_cand_sum = "UPDATE appcandsumview a, candsum c, appcandsum ac
SET
c.FEXAMFEEA = null,
c.FEXAMFEEB = null,
c.FEXAMFEEC = null,
c.FEXAMFEED = null,
c.FEXAMFEEE = null,
c.FEXAMFEEF = null,
c.FEXAMFEEG = null,
c.FEXAMFEEH = null,
c.FEXAMFEEI = null,
c.FEXAMFEEJ = null,
c.FTOTALFEE = null,
c.frecptdate = null
WHERE a.fregno = c.FREGNO and ac.fregno = c.fregno and ac.fdegree = c.fdegree
and ac.APPNO='{$apk}'";
$lobj_update_cand_sum = $aobj_context->mobj_db->Execute($update_cand_sum);
$lquery = "update canddet cd, appcanddet ad set cd.fpresent = null, cd.finserted = null
where cd.fcollcode = ad.fcollcode and cd.fdegree = ad.fdegree and cd.fexamno = ad.fexamno
and cd.fsubcode = ad.fsubcode and cd.fregno = ad.fregno
and cd.fregno='{$fregno}'
and ad.appno = '{$apk}'";
$lobj_get_app_cand_det = $aobj_context->mobj_db->Execute($lquery);
$lquery = "delete from studfee where fregno = '{$fregno}'";
$lobj_get_app_cand_det = $aobj_context->mobj_db->Execute($lquery);
}
if(!$lobj_get_data)
{
$arr['msg'] = "Acknowledge Removal Failure. Please try again";
echo $aobj_context->mobj_output->ToJSONEnvelope($arr,-1,"Failure");
return;
}
else
{
$arr['msg'] = "Acknowledgement Deleted successfully.";
echo $aobj_context->mobj_output->ToJSONEnvelope($arr,0,"success");
return;
}
}
?>
|