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.118.128.63
<?php
function getcmsdropdownmenuvalues($aobj_context)
{
$aobj_context->mobj_db->SetFetchMode(ADODB_FETCH_ASSOC);
session_start();
$form = $aobj_context->mobj_data["formtype"];
$query2 = "select fdegree as int_code, fdescpn as val
from degree where fdeggrp = 'PHD' and fexamno = 'A' order by fdescpn";
$rst2 = $aobj_context->mobj_db->GetAll($query2);
$arr['degree'] = $rst2;
$query3 = "SELECT FCATEGORY AS int_code,FDESCPN AS val FROM category
where ifnull(FDELETED,'') <> 'T' order by FCATEGORY asc ";
$rst3 = $aobj_context->mobj_db->GetAll($query3);
$arr['category'] = $rst3;
$query = "select ifnull(fcollcode,'') as fcollcode, ifnull(fdegree,'') as fdegree,
ifnull(fname,'') as fname, ifnull(ffatname,'') as ffatname,
ifnull(fmotname,'') as fmotname, ifnull(femail,'') as femail,
ifnull(date_format(fdob,'%d/%m/%Y'),'') as fdob,
ifnull(fcaste,'') as fcaste,
ifnull(fmobileno,'') as fmobileno, ifnull(fnational,'') as fnational,
ifnull(fcurradd1,'') as fcurradd1, ifnull(fcurradd2,'') as fcurradd2,
ifnull(fcurradd3,'') as fcurradd3, ifnull(fcurrdist,'') as fcurrdist,
ifnull(fcurrpin,'') as fcurrpin, ifnull(fcurrstate,'') as fcurrstate,
ifnull(fpermadd1,'') as fpermadd1, ifnull(fpermadd2,'') as fpermadd2,
ifnull(fpermadd3,'') as fpermadd3, ifnull(fpermdist,'') as fpermdist,
ifnull(fpermpin,'') as fpermpin, ifnull(fpermstate,'') as fpermstate,
ifnull(fphotopath,'') as fphotopath, ifnull(fgender,'') as gender,
ifnull(fhk,'') as HK, ifnull(fhandicap,'') as handicap,
ifnull(fcategory,'') as fcategory, ifnull(faadharno,'') as faadharno,
ifnull(fquniv,'') as fquniv, ifnull(fqyear,'') as fqyear, ifnull(fappno,'') as fappno,
ifnull(fqpercentage,'') as fqpercentage,
ifnull(farea,'') as farea, fqdegree, fqsub, fqspln, ftotfee
from phdstudadm where fmobileno = '{$_SESSION['MOBILE']}' and fform = '{$form}'";
$result = $aobj_context->mobj_db->GetRow($query);
if(count($result) > 0)
{
$query2 = "select fcollcode as int_code, fcollname as val
from phdcolldeg where fdegree = '{$result['fdegree']}' order by fcollname";
$rst2 = $aobj_context->mobj_db->GetAll($query2);
$arr['research'] = $rst2;
}
$arr['perdetl'] = $result;
$arr['fmobileno'] = $_SESSION['MOBILE'];
$arr['fdob'] = $_SESSION['FDOB'];
$arr['fcollcode'] = $_SESSION['FCOLLCODE'];
$arr['fdegree'] = $_SESSION['FDEGREE'];
$arr['percnt'] = count($result);
echo $aobj_context->mobj_output->ToJSONEnvelope($arr,0,"success");
return;
}
function getDept($aobj_context)
{
$fdegree = $aobj_context->mobj_data["fdegree"];
$query2 = "select fcollcode as int_code, fcollname as val
from phdcolldeg where fdegree = '{$fdegree}' order by fcollname";
$rst2 = $aobj_context->mobj_db->GetAll($query2);
$arr['research'] = $rst2;
echo $aobj_context->mobj_output->ToJSONEnvelope($arr,0,"success");
return;
}
function getfeedetl($aobj_context)
{
$category = trim($aobj_context->mobj_data['category']);
$formtype = trim($aobj_context->mobj_data['formtype']);
if($formtype == 'A')
$filed = "FPHDFAFEE";
if($formtype == 'B')
$filed = "FPHDFBFEE";
$query = "select {$filed} as fphdadmfee from category where fcategory = '{$category}' ";
$result = $aobj_context->mobj_db->GetRow($query);
$arr['sum'] = $result['fphdadmfee'];
echo $aobj_context->mobj_output->ToJSONEnvelope($arr,0,"success");
return;
}
function uploaddetails($aobj_context)
{
$aobj_context->mobj_db->SetFetchMode(ADODB_FETCH_ASSOC);
$query = "select internal_code as int_code,
FCERTDESC as doc_type ,
ifnull(FFILENAME,REPLACE(REPLACE(FCERTDESC,' ','_'),'+','_')) as FFILENAME
from
masdoc where fdegree = 'PHD' order by forder";
$results = $aobj_context->mobj_db->GetAll($query);
$arr['masdoc'] = $results;
echo $aobj_context->mobj_output->ToJSONEnvelope($arr,0,"success");
return;
}
function uploadeditdetails($aobj_context)
{
$aobj_context->mobj_db->SetFetchMode(ADODB_FETCH_ASSOC);
$degree = $aobj_context->mobj_data["degree"];
$fappno = $aobj_context->mobj_data["fappno"];
$college = $aobj_context->mobj_data["college"];
$query = "SELECT DISTINCT m.internal_code AS int_code,
FCERTDESC AS doc_type ,
IFNULL(FFILENAME,REPLACE(REPLACE(FCERTDESC,' ','_'),'+','_')) AS FFILENAME,
ifnull(s.ffilepath,'') as file_path
FROM masdoc m
LEFT OUTER JOIN phdstuddoc s
ON 'PHD' = m.fdegree and s.fdoctype = m.FFILENAME
AND s.fappno = '{$fappno}'
AND s.fcollcode = '{$college}' where m.fdegree = 'PHD'
ORDER BY forder";
// var_dump($query);
$results = $aobj_context->mobj_db->GetAll($query);
$arr['masdoc'] = $results;
echo $aobj_context->mobj_output->ToJSONEnvelope($arr,0,"success");
return;
}
function masbankdet($aobj_context)
{
$query = "select * from masbank where ifnull(fsuspend,'') <> 'T'";
$results = $aobj_context->mobj_db->GetAll($query);
$data['masbank'] = $results;
echo $aobj_context->mobj_output->ToJSONEnvelope($data,0,"success");
return;
}
function login($aobj_context)
{
session_start();
$data = array();
if(isset($_SESSION['MOBILE']))
//var_dump(isset($_SESSION['MOBILE']));
echo $aobj_context->mobj_output->ToJSONEnvelope($data,0,"success");
//var_dump($aobj_context->mobj_output->ToJSONEnvelope($data,0,"success"));
else
{
$data['msg'] = "Please Login";
echo $aobj_context->mobj_output->ToJSONEnvelope($data,-1,"success");
}
return;
}
function logout($aobj_context)
{
session_start();
session_destroy();
}
?>
|