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.119.119
<?php
function loadphddegree($aobj_context)
{
$appno=$_SESSION["APPNO"];
$qry2 = "select * from collexam
where fdegree = 'PHD' and date_format(CURDATE(),'%Y-%m-%d') BETWEEN fphdfrom AND fphdto";
$rlt2 = $aobj_context->mobj_db->GetRow($qry2);
if(!$rlt2) {
$arr['msg'] = "Online Registration for PHD Admissions 2021-22 is Closed";
echo $aobj_context->mobj_output->ToJSONEnvelope($arr,-1,"failed");
return;
}
$qry = "select fappno from phdacademic
where fappno = '{$appno}'";
$rlt = $aobj_context->mobj_db->GetRow($qry);
if($rlt['fappno']=="") {
$arr['msg'] = "Enter Academic Details";
echo $aobj_context->mobj_output->ToJSONEnvelope($arr,-1,"failed");
return;
}
$qry1 = "select fappno from phdexp
where fappno = '{$appno}'";
$rlt1 = $aobj_context->mobj_db->GetRow($qry1);
if($rlt1['fappno']=="") {
$arr['msg'] = "Enter Teaching experience";
echo $aobj_context->mobj_output->ToJSONEnvelope($arr,-1,"failed");
return;
}
// $qry3 = "select fappno from phdpub
// where fappno = '{$appno}'";
// $rlt3 = $aobj_context->mobj_db->GetRow($qry3);
// if($rlt3['fappno']=="") {
// $arr['msg'] = "Enter Particulars of Publications";
// echo $aobj_context->mobj_output->ToJSONEnvelope($arr,-1,"failed");
// return;
// }
if($rlt['fappno']!="" && $rlt1['fappno']!=""){
$arr['msg'] = "load";
echo $aobj_context->mobj_output->ToJSONEnvelope($arr,0,"success");
return;
}
}
function phddegree($aobj_context)
{
$appno=$_SESSION["APPNO"];
$qry = "select fdegcode,fdespcn from phddeg
where ifnull(fdeleted,'') <> 'T'";
$rlt = $aobj_context->mobj_db->GetAll($qry);
$qry1 = "select ifnull(FPAYSTATUS,'') as FPAYSTATUS, FCATEGORY,ifnull(fphddeg,'') as fphddeg
from phdstudadm
where fappno = '{$appno}'";
$rlt1 = $aobj_context->mobj_db->GetRow($qry1);
if($rlt) {
if($rlt1['FCATEGORY'] == "SC" || $rlt1['FCATEGORY'] == "ST" || $rlt1['FCATEGORY'] == "CAT-I"){
$data['fee'] = '1000';
} else{
$data['fee'] = '1500';
}
$data['degree'] = $rlt;
$data['cat'] = $rlt1;
echo $aobj_context->mobj_output->ToJSONEnvelope($data,0,"success");
}
else {
$arr['msg'] = 'Failed to save';
echo $aobj_context->mobj_output->ToJSONEnvelope($arr,-1,"failure");
}
}
function makepaymentphdapp($aobj_context)
{
$appno=$_SESSION["APPNO"];
$phddeg=$aobj_context->mobj_data["phddeg"];
$fee=$aobj_context->mobj_data["fee"];
$qry1 = "select ifnull(FAPPNO,'') as FAPPNO, ifnull(FNAME,'') as FNAME ,ifnull(FPHOTOPATH,'') as FPHOTOPATH
from phdstudadm
where fappno = '{$appno}'";
$rlt1 = $aobj_context->mobj_db->GetRow($qry1);
if($rlt1['FPHOTOPATH'] !== ''){
$qry = "update phdstudadm set fphddeg = '{$phddeg}' , famount = '{$fee}'
where fappno = '{$appno}'";
$rlt = $aobj_context->mobj_db->Execute($qry);
if($rlt) {
echo $aobj_context->mobj_output->ToJSONEnvelope($rlt1,0,"success");
}
else {
$arr['msg'] = 'Failed to save';
echo $aobj_context->mobj_output->ToJSONEnvelope($arr,-1,"failure");
}
}else{
$arr['msg'] = 'Please Upload Photo in personal details';
echo $aobj_context->mobj_output->ToJSONEnvelope($arr,-1,"failure");
}
}
?>
|