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.220.94.189
<?php
function loadpau_acu($aobj_context){
$query="SELECT distinct IFNULL(fdegree,'')as fdegree,
IFNULL(fdeggname,'')AS fdeggname
FROM phdcoursedet WHERE ifnull(fdelete,'') <> 'T'";
$lobj_get_data = $aobj_context->mobj_db->GetAll($query);
if($lobj_get_data){
echo $aobj_context->mobj_output->ToJSONEnvelope($lobj_get_data,0,"success");
}else{
$arr['msg'] = 'Failed to load';
echo $aobj_context->mobj_output->ToJSONEnvelope($arr,-1,"failure");
}
}
function loaddiscipline($aobj_context){
$pau=$aobj_context->mobj_data["pau"];
$query="SELECT distinct IFNULL(fcombcode,'')as fcombcode,
IFNULL(fcombname,'')AS fcombname
FROM phdcoursedet WHERE fdegree = '{$pau}' and ifnull(fdelete,'') <> 'T'";
$lobj_get_data = $aobj_context->mobj_db->GetAll($query);
if($lobj_get_data){
echo $aobj_context->mobj_output->ToJSONEnvelope($lobj_get_data,0,"success");
}else{
$arr['msg'] = 'Failed to load';
echo $aobj_context->mobj_output->ToJSONEnvelope($arr,-1,"failure");
}
}
function saveappfor_acu($aobj_context){
$appno=$_SESSION["APPNO"];
$pau=$aobj_context->mobj_data["pau"];
$disp=$aobj_context->mobj_data["disp"];
$apptype=$aobj_context->mobj_data["apptype"];
$query="insert into phdappfor (fappno,fdegree,fcombcode,fapptype,famount)
values('{$appno}','{$pau}','{$disp}','{$apptype}','5000')";
$lobj_get_data = $aobj_context->mobj_db->Execute($query);
if($lobj_get_data){
$arr['msg'] = 'Saved Successfully...!!';
echo $aobj_context->mobj_output->ToJSONEnvelope($arr,0,"success");
}else{
$arr['msg'] = 'Failed to Save';
echo $aobj_context->mobj_output->ToJSONEnvelope($arr,-1,"failure");
}
}
function loadappfor($aobj_context){
$appno=$_SESSION["APPNO"];
$query="SELECT IFNULL(p.fappno,'')as fappno,
IFNULL(p.fdegree,'')AS fdegree,
IFNULL(p.fcombcode,'')AS fcombcode,
IFNULL(p.fapptype,'')AS fapptype,
IFNULL(pc.fdeggname,'')AS fdeggname,
IFNULL(pc.fcombname,'')AS fcombname
FROM phdappfor p
inner join phdcoursedet pc on p.fdegree = pc.fdegree and p.fcombcode = pc.fcombcode
WHERE fappno='{$appno}'";
$lobj_get_data = $aobj_context->mobj_db->GetAll($query);
if($lobj_get_data){
echo $aobj_context->mobj_output->ToJSONEnvelope($lobj_get_data,0,"success");
}else{
$arr['msg'] = 'Failed to load';
echo $aobj_context->mobj_output->ToJSONEnvelope($arr,-1,"failure");
}
}
function deleteappdet_acu($aobj_context)
{
$appno=$_SESSION["APPNO"];
$degree=$aobj_context->mobj_data["degree"];
$combcode=$aobj_context->mobj_data["combcode"];
$qry = "delete from phdappfor
where fdegree = '{$degree}' and fcombcode = '{$combcode}' and fappno = '{$appno}'";
$rltdata = $aobj_context->mobj_db->Execute($qry);
if($rltdata) {
$arr['msg'] = "Deleted Successfully..!";
echo $aobj_context->mobj_output->ToJSONEnvelope($arr,0,"success");
}
else {
$arr['msg'] = 'Failed to delete';
echo $aobj_context->mobj_output->ToJSONEnvelope($arr,-1,"failure");
}
}
?>
|