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.145.199.240
Current Path : /var/www/html/dud/src/ |
| Current File : /var/www/html/dud/src/ack_report.php |
<?php
function getDegreeGroup($aobj_context)
{
$query = "SELECT DISTINCT(fdeggrp) AS internal_code,fdeggrp AS VALUE FROM degree
WHERE ifnull(fdeggrp,'') <> ''";
$results = $aobj_context->mobj_db->GetAll($query);
$arr['deggrp']=$results;
echo $aobj_context->mobj_output->ToJSONEnvelope($arr,0,"success");
}
function getDegreeNames($aobj_context)
{
$deg = $aobj_context->mobj_data["degtype"];
//var_dump($deg );
$query1="SELECT DISTINCT(fdegree) AS internal_code,CONCAT(fdegree,' - ',fdescpn) AS VALUE FROM degree where fdeggrp='{$deg}' ";
//var_dump($query1);
$results1=$aobj_context->mobj_db->GetAll($query1);
$arr['degree']=$results1;
echo $aobj_context->mobj_output->ToJSONEnvelope($arr,0,"success");
}
function getResDegreeName($aobj_context)
{
session_start();
$collcode=$_SESSION['collcode'];
$deg = $aobj_context->mobj_data["deggrp"];
//var_dump($deg );
$query1="SELECT DISTINCT d.fdegree AS internal_code,CONCAT(d.fdegree,' - ',d.fdescpn) AS VALUE FROM degree d inner join res_fee r on d.fdegree = r.fdegree
where fdeggrp='{$deg}' and r.fcollcode = '{$collcode}'";
$results1=$aobj_context->mobj_db->GetAll($query1);
$arr['degree']=$results1;
echo $aobj_context->mobj_output->ToJSONEnvelope($arr,0,"success");
}
function getDegreeResExamName($aobj_context)
{
session_start();
$collcode=$_SESSION['collcode'];
$deg = $aobj_context->mobj_data["deggrp"];
//var_dump($deg );
$query1="SELECT DISTINCT d.fexamno AS internal_code,CONCAT(d.fexamno,' - ',d.fexamname) AS VALUE FROM degree d inner join res_fee r on d.fdegree = r.fdegree
and d.fexamno = r.fexamno
where fdeggrp='{$deg}' and r.fcollcode = '{$collcode}'";
$results1=$aobj_context->mobj_db->GetAll($query1);
$arr['degexam']=$results1;
echo $aobj_context->mobj_output->ToJSONEnvelope($arr,0,"success");
}
function getExamNo($aobj_context)
{
$deg = $aobj_context->mobj_data["degtype"];
$degree = $aobj_context->mobj_data["degreename"];
$query2="SELECT fexamno AS internal_code,CONCAT(fexamno,' - ',fexamname) AS VALUE FROM degree WHERE fdeggrp='{$deg}' and fdegree='{$degree}'";
//var_dump($query2);
$results2=$aobj_context->mobj_db->GetAll($query2);
$arr['exam']=$results2;
echo $aobj_context->mobj_output->ToJSONEnvelope($arr,0,"success");
}
?>
|