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.116.63.107
<?php
function getdegappcandsum($aobj_context)
{
$college = $_SESSION['collcode'];
$usrtype = $_SESSION['usrtype'];
$userId = $_SESSION['user_id'];
if($_SESSION['FUNIVCODE'] == "021"){
$cond = "inner join colldeg s on d.fdegree = s.fdegree";
}else{
$cond = "inner join appcandsum s on d.fdegree = s.fdegree";
}
if($usrtype == '17')
{
$select_qry = "select distinct d.fdegree,
concat(d.fdegree,' - ',d.fdescpn) as fdescpn
FROM degree d
inner join usersub u on u.fdegree = d.fdegree
{$cond}
where s.fcollcode = '{$college}'
and u.FUSER = '{$userId}'
order by fdescpn";
}else
{
$select_qry = "select distinct d.fdegree, concat(d.fdegree,' - ',d.fdescpn) as fdescpn
FROM degree d {$cond}
where s.fcollcode = '{$college}'
order by fdescpn";
}
$cntrresults = $aobj_context->mobj_db->GetAll($select_qry);
echo $aobj_context->mobj_output->ToJSONEnvelope($cntrresults,0,"success");
return;
}
function getdegreg($aobj_context)
{
$college = $_SESSION['collcode'];
$select_qry = "select distinct d.fdegree, concat(d.fdegree,' - ',d.fdescpn) as fdescpn
FROM degree d inner join regcandsum s on d.fdegree = s.fdegree
and d.fexamno = s.fexamno
where s.fcollcode = '{$college}'
order by fdescpn";
$cntrresults = $aobj_context->mobj_db->GetAll($select_qry);
echo $aobj_context->mobj_output->ToJSONEnvelope($cntrresults,0,"success");
return;
}
function loadcolldegree($aobj_context)
{
$college = $_SESSION['collcode'];
$select_qry = "select distinct d.fdegree, concat(d.fdegree,' - ',d.fdescpn) as fdescpn
FROM degree d
inner join student s on d.fdegree = s.fdegree
and d.fexamno = 'A'
where s.fcollcode = '{$college}'
order by fdescpn";
$cntrresults = $aobj_context->mobj_db->GetAll($select_qry);
echo $aobj_context->mobj_output->ToJSONEnvelope($cntrresults,0,"success");
return;
}
function getdegrv($aobj_context)
{
$college = $_SESSION['collcode'];
$select_qry = "select distinct d.fdegree, concat(d.fdegree,' - ',d.fdescpn) as fdescpn
FROM degree d inner join res_stud s on d.fdegree = s.fdegree
and d.fexamno = s.fexamno
where s.fcollcode = '{$college}'
order by fdescpn";
$cntrresults = $aobj_context->mobj_db->GetAll($select_qry);
echo $aobj_context->mobj_output->ToJSONEnvelope($cntrresults,0,"success");
return;
}
function getcolldegrv($aobj_context)
{
$college = $_SESSION['collcode'];
$degree = stripslashes($aobj_context->mobj_data["degree"]);
$select_qry = "select distinct d.fexamno, concat(d.fexamno,' - ',d.fexamname) as fexamname
FROM degree d inner join res_stud r on
d.fdegree = r.fdegree
and d.fexamno = r.fexamno
where d.fdegree = '{$degree}'
order by d.fexamno";
$cntrresults = $aobj_context->mobj_db->GetAll($select_qry);
echo $aobj_context->mobj_output->ToJSONEnvelope($cntrresults,0,"success");
return;
}
?>
|