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.143.7.53
<?php
function getdeggrprvrtblock($aobj_context)
{
// var_dump('hii');
// die();
$aobj_context->mobj_db->SetFetchMode(ADODB_FETCH_ASSOC);
$univcode = $aobj_context->mobj_data["univcode"];
$query ="SELECT fdeggrp,fdescpn
FROM deggrp";
// var_dump($query);
$result=$aobj_context->mobj_db->GetAll($query);
// var_dump($result);
// die();
if(count($result) > 0){
echo $aobj_context->mobj_output->TOJSONEnvelope($result,0,"success");
}
else{
$arr['msg']="Please try later";
echo $aobj_context->mobj_output->TOJSONEnvelope($arr,-1,"failed");
}
}
function getdegreerprvrt($aobj_context)
{
// var_dump('hii');
// die();
$aobj_context->mobj_db->SetFetchMode(ADODB_FETCH_ASSOC);
$univcode = $aobj_context->mobj_data["univcode"];
$deggrp = $aobj_context->mobj_data["deggrp"];
$query ="SELECT fdegree,fdescpn
FROM degree
WHERE fdeggrp = '{$deggrp}'
GROUP BY fdegree";
// var_dump($query);
$result=$aobj_context->pobj_db->GetAll($query);
if(count($result) > 0){
echo $aobj_context->mobj_output->TOJSONEnvelope($result,0,"success");
}
else{
$arr['msg']="Please try later";
echo $aobj_context->mobj_output->TOJSONEnvelope($arr,-1,"failed");
}
}
function getsemesterrprvrt($aobj_context)
{
// var_dump('hii');
// die();
$aobj_context->mobj_db->SetFetchMode(ADODB_FETCH_ASSOC);
$univcode = $aobj_context->mobj_data["univcode"];
$degree = $aobj_context->mobj_data["degree"];
// var_dump($degree);
// var_dump($univcode);
// die();
$query ="SELECT fexamno,fexamname
FROM degree
WHERE fdegree in ('{$degree}')
GROUP BY fexamno";
$result=$aobj_context->pobj_db->GetAll($query);
if(count($result) > 0){
echo $aobj_context->mobj_output->TOJSONEnvelope($result,0,"success");
}
else{
$arr['msg']="Please try later";
echo $aobj_context->mobj_output->TOJSONEnvelope($arr,-1,"failed");
}
}
function updatervrtblock($aobj_context)
{
// var_dump('hii');
// die();
$aobj_context->mobj_db->SetFetchMode(ADODB_FETCH_ASSOC);
$univcode = $aobj_context->mobj_data["univcode"];
$deggrp = $aobj_context->mobj_data["deggrp"];
$degree = $aobj_context->mobj_data["degree"];
$sem = $aobj_context->mobj_data["semester"];
$qpfrm = $aobj_context->mobj_data["qpfrm"];
$qpto = $aobj_context->mobj_data["qpto"];
$status = $aobj_context->mobj_data["rvrtstatus"];
$query ="SELECT fexamno,fexamname
FROM degree
WHERE fdegree = '{$degree}'
GROUP BY fexamno";
// var_dump($query);
$result=$aobj_context->pobj_db->GetAll($query);
if(count($result) > 0){
echo $aobj_context->mobj_output->TOJSONEnvelope($result,0,"success");
}
else{
$arr['msg']="Please try later";
echo $aobj_context->mobj_output->TOJSONEnvelope($arr,-1,"failed");
}
}
?>
|