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 : 3.147.69.25
<?php
function getDegSemList($aobj_context){
$aobj_context->mobj_db->SetFetchMode(ADODB_FETCH_ASSOC);
$univcode = $aobj_context->mobj_data['univcode'];
$fdeggrp = $aobj_context->mobj_data['fdeggrp'];
$query = "select fdegree, fdescpn,fexamno, fexamname, fdeggrp,
ifnull(fnextexam,'') as fnextexam from tdegree
where fdeggrp = '{$fdeggrp}'
order by fdegree, fexamno";
$result = $aobj_context->pobj_db->getAll($query);
// var_dump($result);
if($result){
// $arr['msg'] = "Updation was Successfull";
echo $aobj_context->mobj_output->ToJSONEnvelope($result,0,"success");
}else{
$arr['msg'] = "Failed to get degrees, please try later..!";
echo $aobj_context->mobj_output->ToJSONEnvelope($arr,-1,"failure");
}
}
function getDegSemDetForEdit($aobj_context) {
$aobj_context->mobj_db->SetFetchMode(ADODB_FETCH_ASSOC);
$univcode = $aobj_context->mobj_data['univcode'];
$degree = $aobj_context->mobj_data['degree'];
$examno = $aobj_context->mobj_data['examno'];
$query = "select ifnull(FDEGREE, '' ) as FDEGREE, ifnull(FDESCPN, '' ) as FDESCPN, ifnull(FEXAMNO, '' ) as FEXAMNO,
ifnull(FEXAMNAME, '' ) as FEXAMNAME, ifnull(FMINTOT, '' ) as FMINTOT, ifnull(FNEXTEXAM, '' ) as FNEXTEXAM,
ifnull(FSUBFAIL, '' ) as FSUBFAIL, ifnull(FLEASTEXAM, '' ) as FLEASTEXAM, ifnull(FLEASTAPP, '' ) as FLEASTAPP,
ifnull(FTOTSUB, '' ) as FTOTSUB, ifnull(FMAXMARKS, '' ) as FMAXMARKS, ifnull(FMINMARKS, '' ) as FMINMARKS,
ifnull(FDISTPER, '' ) as FDISTPER, ifnull(FCLASS1PER, '' ) as FCLASS1PER, ifnull(FCLASS2PER, '' ) as FCLASS2PER,
ifnull(FPASSPER, '' ) as FPASSPER, ifnull(FRANK, '' ) as FRANK, ifnull(FNORANKS, '' ) as FNORANKS,
ifnull(FCLASS, '' ) as FCLASS, ifnull(FSUBCHOICE, '' ) as FSUBCHOICE, ifnull(FUSED, '' ) as FUSED,
ifnull(FBLKNAME01, '' ) as FBLKNAME01, ifnull(FMINPASS01, '' ) as FMINPASS01, ifnull(FMAXMARK01, '' ) as FMAXMARK01,
ifnull(FMINMARK01, '' ) as FMINMARK01, ifnull(FBLKNAME02, '' ) as FBLKNAME02, ifnull(FMINPASS02, '' ) as FMINPASS02,
ifnull(FMAXMARK02, '' ) as FMAXMARK02, ifnull(FMINMARK02, '' ) as FMINMARK02, ifnull(FBLKNAME03, '' ) as FBLKNAME03,
ifnull(FMINPASS03, '' ) as FMINPASS03, ifnull(FMAXMARK03, '' ) as FMAXMARK03, ifnull(FMINMARK03, '' ) as FMINMARK03,
ifnull(FBLKNAME04, '' ) as FBLKNAME04, ifnull(FMINPASS04, '' ) as FMINPASS04, ifnull(FMAXMARK04, '' ) as FMAXMARK04,
ifnull(FMINMARK04, '' ) as FMINMARK04, ifnull(FBLKNAME05, '' ) as FBLKNAME05, ifnull(FMINPASS05, '' ) as FMINPASS05,
ifnull(FMAXMARK05, '' ) as FMAXMARK05, ifnull(FMINMARK05, '' ) as FMINMARK05, ifnull(FBLKNAME06, '' ) as FBLKNAME06,
ifnull(FMINPASS06, '' ) as FMINPASS06, ifnull(FMAXMARK06, '' ) as FMAXMARK06, ifnull(FMINMARK06, '' ) as FMINMARK06,
ifnull(FBLKNAME07, '' ) as FBLKNAME07, ifnull(FMINPASS07, '' ) as FMINPASS07, ifnull(FMAXMARK07, '' ) as FMAXMARK07,
ifnull(FMINMARK07, '' ) as FMINMARK07, ifnull(FBLKNAME08, '' ) as FBLKNAME08, ifnull(FMINPASS08, '' ) as FMINPASS08,
ifnull(FMAXMARK08, '' ) as FMAXMARK08, ifnull(FMINMARK08, '' ) as FMINMARK08, ifnull(FSUBEX, '' ) as FSUBEX,
ifnull(FCLUBEXAM, '' ) as FCLUBEXAM, ifnull(FELIGREM01, '' ) as FELIGREM01, ifnull(FELIGREM02, '' ) as FELIGREM02,
ifnull(FTHPRACSEP, '' ) as FTHPRACSEP, ifnull(FEXAMDATE, '' ) as FEXAMDATE, ifnull(FYEAR, '' ) as FYEAR,
ifnull(FEXAMTYPE, '' ) as FEXAMTYPE, ifnull(FCLASSATT, '' ) as FCLASSATT, ifnull(FTOTGRACE, '' ) as FTOTGRACE,
ifnull(FEXAMGRACE, '' ) as FEXAMGRACE, ifnull(FTHAGONLY, '' ) as FTHAGONLY, ifnull(FGRACESUB, '' ) as FGRACESUB,
ifnull(FREGREFNO, '' ) as FREGREFNO, ifnull(FGRREFNO, '' ) as FGRREFNO, ifnull(FMODREFNO, '' ) as FMODREFNO,
ifnull(FBLK1CLASS, '' ) as FBLK1CLASS, ifnull(FLITERACY, '' ) as FLITERACY, ifnull(FMCTYPE, '' ) as FMCTYPE,
ifnull(FMAXTERMS, '' ) as FMAXTERMS, ifnull(FMAXATT, '' ) as FMAXATT, ifnull(FCUMULAT, '' ) as FCUMULAT,
ifnull(FNOVAL, '' ) as FNOVAL, ifnull(FNOTERMS, '' ) as FNOTERMS, ifnull(FSKIPFAIL, '' ) as FSKIPFAIL,
ifnull(FCONTMARKS, '' ) as FCONTMARKS, ifnull(FGRADE, '' ) as FGRADE, ifnull(FCLGRSEP, '' ) as FCLGRSEP,
ifnull(FFACULTY, '' ) as FFACULTY, ifnull(FABSZERO, '' ) as FABSZERO, ifnull(FPERSET, '' ) as FPERSET,
ifnull(FPRGRACE, '' ) as FPRGRACE, ifnull(FDEVINCL, '' ) as FDEVINCL, ifnull(FSPLITEXAM, '' ) as FSPLITEXAM,
ifnull(FEXAMPASS, '' ) as FEXAMPASS, ifnull(FCUMRESULT, '' ) as FCUMRESULT, ifnull(FCOLLDEPT, '' ) as FCOLLDEPT,
ifnull(FSGLENTRY, '' ) as FSGLENTRY, ifnull(FSNINLED, '' ) as FSNINLED, ifnull(FCUMCLASS, '' ) as FCUMCLASS,
ifnull(FREDGRACE, '' ) as FREDGRACE, ifnull(FRYEAR, '' ) as FRYEAR, ifnull(FREXAMTYPE, '' ) as FREXAMTYPE,
ifnull(FCLOSEMC, '' ) as FCLOSEMC, ifnull(FCMAXTERMS, '' ) as FCMAXTERMS, ifnull(FMAXAPP, '' ) as FMAXAPP,
ifnull(FMAXACTIVE, '' ) as FMAXACTIVE, ifnull(FRANKATT, '' ) as FRANKATT, ifnull(FINITQP, '' ) as FINITQP,
ifnull(FFIRSTEXAM, '' ) as FFIRSTEXAM, ifnull(FATTALL, '' ) as FATTALL, ifnull(FSUBGRMARK, '' ) as FSUBGRMARK,
ifnull(FMINBLK, '' ) as FMINBLK, ifnull(FBLKSUB01, '' ) as FBLKSUB01, ifnull(FBLKSUB02, '' ) as FBLKSUB02,
ifnull(FBLKSUB03, '' ) as FBLKSUB03, ifnull(FBLKSUB04, '' ) as FBLKSUB04, ifnull(FBLKSUB05, '' ) as FBLKSUB05,
ifnull(FBLKSUB06, '' ) as FBLKSUB06, ifnull(FBLKSUB07, '' ) as FBLKSUB07, ifnull(FBLKSUB08, '' ) as FBLKSUB08,
ifnull(FBLKPASS, '' ) as FBLKPASS, ifnull(FSUBELIG, '' ) as FSUBELIG, ifnull(FREPTERMS, '' ) as FREPTERMS,
ifnull(FAGMINSUB, '' ) as FAGMINSUB, ifnull(FGRACEPER, '' ) as FGRACEPER, ifnull(FSUBGRPER, '' ) as FSUBGRPER,
ifnull(FCLGRPER, '' ) as FCLGRPER, ifnull(FDEVPER, '' ) as FDEVPER, ifnull(FAGGRMIN, '' ) as FAGGRMIN,
ifnull(FCUMAGMIN, '' ) as FCUMAGMIN, ifnull(FDELETED, '' ) as FDELETED, ifnull(FSCHEME, '' ) as FSCHEME,
ifnull(FREPGRMARK, '' ) as FREPGRMARK, ifnull(FMRPGRMARK, '' ) as FMRPGRMARK, ifnull(FSEPREPGR, '' ) as FSEPREPGR,
ifnull(FCREDIT, '' ) as FCREDIT, ifnull(FSUBSIFAIL, '' ) as FSUBSIFAIL, ifnull(FGRADENAME11, '' ) as FGRADENAME11,
ifnull(FGRADENAME21, '' ) as FGRADENAME21, ifnull(FGRADENAME31, '' ) as FGRADENAME31,
ifnull(FGRADENAME12, '' ) as FGRADENAME12, ifnull(FGRADENAME22, '' ) as FGRADENAME22,
ifnull(FGRADENAME32, '' ) as FGRADENAME32, ifnull(FPRTOTFAIL, '' ) as FPRTOTFAIL,
ifnull(FCLBLKRNG, '' ) as FCLBLKRNG, ifnull(FALTDEG, '' ) as FALTDEG, ifnull(FFIRSTATT, '' ) as FFIRSTATT,
ifnull(FTHPRCR, '' ) as FTHPRCR, ifnull(FGIVEGRACE2, '' ) as FGIVEGRACE2, ifnull(FDEGDESCPN, '' ) as FDEGDESCPN,
ifnull(FBRANCHDESCPN, '' ) as FBRANCHDESCPN, ifnull(FDEVMARK, '' ) as FDEVMARK, ifnull(FVARSUB, '' ) as FVARSUB,
ifnull(FMAXTYPE, '' ) as FMAXTYPE, ifnull(FKANDEGDESCPN, '' ) as FKANDEGDESCPN,
ifnull(FKANBRANCHDESCPN, '' ) as FKANBRANCHDESCPN, ifnull(FDEGGRP, '' ) as FDEGGRP,
ifnull(FCRCC, '' ) as FCRCC from tdegree where fdegree = '{$degree}'
and fexamno = '{$examno}'";
// var_dump($query);
$result1 = $aobj_context->pobj_db->GetRow($query);
if($result1){
// $arr['msg'] = "Updation was Successfull";
$query = "select d.FSLNO, d.FFROMATT, d.FTOATT, d.FFROMPER, d.FTOPER,
d.FCLSGRADE, d.FCLASS, d.FCLSGROUP, ifnull(r.FDESCPN, '') as FDESCPN,
ifnull(r.FSHORTNAME,'') as FSHORTNAME
from degclass d left join reason r on d.fclass = r.freasoncd
where fdegree = '{$degree}' and fexamno = '{$examno}'";
$result = $aobj_context->pobj_db->GetAll($query);
if(count($result) > 0 ){
$result1['FCLSGRADE'] = $result[0]['FCLSGRADE'];
}
$res['degclass'] = $result;
$query = "select FREASONCD, FDESCPN, FSHORTNAME from reason
where ifnull(fdeleted,'') <> 'T'";
$reason = $aobj_context->pobj_db->GetAll($query);
$res['degree'] = $result1;
$res['reason'] = $reason;
echo $aobj_context->mobj_output->ToJSONEnvelope($res,0,"success");
} else {
$arr['msg'] = "Failed to get degree semester details, please try later..!";
echo $aobj_context->mobj_output->ToJSONEnvelope($arr,-1,"failure");
}
}
?>
|