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.119.157.241
<?php
function cancelSeat($aobj_context)
{
session_start();
$aobj_context->mobj_db->SetFetchMode(ADODB_FETCH_ASSOC);
$fappno = stripslashes($aobj_context->mobj_data["fappno"]);
$name = stripslashes($aobj_context->mobj_data["name"]);
$query = "INSERT INTO entseatlog (fappno, fdegree, fcollcode, frank, fallotno, fallotround, fseatstatus,
fchoice, fchoicedate,fuser)
select fappno, fdegree, fcollcode, frank,fallotno, fallotround,
fseatstatus, fchoice, now(),'{$name}' from entseatallot
where fappno = '{$fappno}'
and fallotround = '1'";
$results5 = $aobj_context->mobj_db->Execute($query);
$query = "select * from entseatallot where fappno = '{$fappno}'
and fallotround = '1'";
$res = $aobj_context->mobj_db->GetRow($query);
$fdegree = $res['fdegree'];
$fcollcode = $res['fcollcode'];
$query = "update entseatallot set
fchoice = NULL,
fchoicedate = NULL,
fseatstatus = NULL
where fappno = '{$fappno}'
and fallotround = '1'
and fcollcode = '{$fcollcode}'
and fdegree = '{$fdegree}'";
$res1 = $aobj_context->mobj_db->Execute($query);
$query = "update entstudadm set
fchoice = NULL,
fchoicedate = NULL,
fseatstatus = NULL
where fappno = '{$fappno}'
and fround = '1'
and fcollcode = '{$fcollcode}'
and fdegree = '{$fdegree}'";
$res1 = $aobj_context->mobj_db->Execute($query);
$query = "update entoptions set
fchoice = NULL,
fchoicedate = NULL,
fseatstatus = NULL
where fappno = '{$fappno}'
and fround = '1'
and fcollcode = '{$fcollcode}'
and fdegree = '{$fdegree}'";
$res1 = $aobj_context->mobj_db->Execute($query);
$query = "update entoptdeg set
fchoice = NULL,
fchoicedate = NULL,
fseatstatus = NULL
where fappno = '{$fappno}'
and fround = '1'
and fcollcode = '{$fcollcode}'
and fdegree = '{$fdegree}'";
$res1 = $aobj_context->mobj_db->Execute($query);
}
function changeSeatChochie($aobj_context)
{
session_start();
$aobj_context->mobj_db->SetFetchMode(ADODB_FETCH_ASSOC);
$fappno = stripslashes($aobj_context->mobj_data["fappno"]);
$name = stripslashes($aobj_context->mobj_data["name"]);
$query = "select * from entseatallot where fappno = '{$fappno}'
and fallotround = '1'
and ifnull(fpaymentstatus,'') as 'success'";
$res = $aobj_context->mobj_db->GetRow($query);
if($res)
{
$query = "INSERT INTO entseatlog (fappno, fdegree, fcollcode, frank, fallotno, fallotround, fseatstatus,
fchoice, fchoicedate,fuser)
select fappno, fdegree, fcollcode, frank,fallotno, fallotround,
fseatstatus, fchoice, now(),'{$name}' from entseatallot
where fappno = '{$fappno}'
and fallotround = '1'";
$results5 = $aobj_context->mobj_db->Execute($query);
$query = "select * from entseatallot where fappno = '{$fappno}'
and fallotround = '1'
and ifnull(fpaymentstatus,'') as 'success'";
$res = $aobj_context->mobj_db->GetRow($query);
$fdegree = $res['fdegree'];
$fcollcode = $res['fcollcode'];
$query = "update entseatallot set
fchoice = '1',
fseatstatus = 'Confirmed'
where fappno = '{$fappno}'
and fallotround = '1'
and fcollcode = '{$fcollcode}'
and fdegree = '{$fdegree}'";
$res1 = $aobj_context->mobj_db->Execute($query);
$query = "update entstudadm set
fchoice = '1',
fseatstatus = 'Confirmed'
where fappno = '{$fappno}'
and fround = '1'
and fcollcode = '{$fcollcode}'
and fdegree = '{$fdegree}'";
$res1 = $aobj_context->mobj_db->Execute($query);
$query = "update entoptions set
fchoice = '1',
fseatstatus = 'Confirmed'
where fappno = '{$fappno}'
and fround = '1'
and fcollcode = '{$fcollcode}'
and fdegree = '{$fdegree}'";
$res1 = $aobj_context->mobj_db->Execute($query);
$query = "update entoptdeg set
fchoice = '1',
fseatstatus = 'Confirmed'
where fappno = '{$fappno}'
and fround = '1'
and fcollcode = '{$fcollcode}'
and fdegree = '{$fdegree}'";
$res1 = $aobj_context->mobj_db->Execute($query);
}else
{
echo "Payment Not Made";
}
}
?>
|