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.59.58.68
<?php
function getCategory($aobj_context){
$aobj_context->mobj_db->SetFetchMode(ADODB_FETCH_ASSOC);
$query = "select fcategory,fdescpn from category
where ifnull(fdeleted,'') <> 'T'
order by fcategory";
$result = $aobj_context->mobj_db->GetAll($query);
if(!$result && gettype($result) == 'boolean'){
$arr['msg'] = "Error while fetching data";
echo $aobj_context->mobj_output->ToJSONEnvelope($arr,-1,"Failure");
return;
}
if(count($result) > 0) {
$arr['category'] = $result;
echo $aobj_context->mobj_output->ToJSONEnvelope($arr,0,"success");
return;
}
else {
$arr['msg'] = "No data found";
echo $aobj_context->mobj_output->ToJSONEnvelope($arr,-1,"Failure");
return;
}
}
function masbankdet($aobj_context)
{
$aobj_context->mobj_db->SetFetchMode(ADODB_FETCH_ASSOC);
$db = $aobj_context->mobj_data["db"];
session_start();
$mobileno = $_SESSION['MOBILE'];
$query1 = "select fappno, ifnull(fpaystatus,'') as fpaystatus, ifnull(ffinsub,'F') as ffinsub
from entstudadm where fmobileno = '{$mobileno}'";
$results1 = $aobj_context->mobj_db->GetRow($query1);
$fappno = $results1['fappno'];
$query_pgadmdate = "select count(*) from collexam where fcollcode = 'pget'
and fdegree = 'pget'
and date_format(now(),'%Y-%m-%d') between date_format(FPGADMFROM,'%Y-%m-%d')
and date_format(FPGADMTO,'%Y-%m-%d')";
// var_dump($query_pgadmdate);
$result3 = $aobj_context->mobj_db->GetRow($query_pgadmdate);
// var_dump($result3);
if($result3['count(*)']== '0')
{
$arr['msg'] = "Last Date to apply for PG-Admission is over";
echo $aobj_context->mobj_output->ToJSONEnvelope($arr,-2,"Failure");
return;
}
if($results1['ffinsub'] == 'F')
{
$data['msg'] = "Final Submission is not done.";
echo $aobj_context->mobj_output->ToJSONEnvelope($data,-1,"Faiure");
return;
}
if($db == 'ru')
{
$query = "select count(*) as cnt from entoptions where fappno = '{$fappno}'";
$result3 = $aobj_context->mobj_db->GetRow($query);
if($result3['cnt'] == '0')
{
$arr['msg'] = "Kindly Enter Option Entry before Make Payment";
echo $aobj_context->mobj_output->ToJSONEnvelope($arr,-2,"Failure");
return;
}
}
if($results1['fpaystatus'] == 'success')
{
$data['msg'] = "Payment is received for the application. You cannot do payment again";
echo $aobj_context->mobj_output->ToJSONEnvelope($data,-1,"Faiure");
return;
}
else
{
if($db == 'ru')
{
$query = "select * from masbank where ifnull(fsuspend,'') <> 'T'";
}else
$query = "select * from masbank where fbank = 'razorpay'";
$results = $aobj_context->mobj_db->GetAll($query);
$data['masbank'] = $results;
$data['appno'] = $results1['fappno'];
echo $aobj_context->mobj_output->ToJSONEnvelope($data,0,"success");
return;
}
}
?>
|