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.129.249.240
Current Path : /var/www/oasis/src/ |
| Current File : /var/www/oasis/src/stud_wise_report.php |
<?php
function __construct($aobj_context)
{
session_start();
$this->aobj_context=$aobj_context;
include_once("/JSON.php");
$this->json = new Services_JSON();
$aobj_context->mobj_db->SetFetchMode(ADODB_FETCH_ASSOC);
$this->aobj_context=$aobj_context;
$this->ip=$_SERVER["REMOTE_ADDR"];
$this->funivcode = $_SESSION['FUNIVCODE'];
$this->collcode = $_SESSION['collcode'];
$this->login_cnt=$_SESSION['login_cnt'];
$this->u_id = $_SESSION['user_id'];
$this->log_name = $_SESSION['usr'];
}
function loaddegreegrpjss($aobj_context)
{
$db = $aobj_context->mobj_data["db"];
$get_deggrp_names="SELECT IFNULL(d.fdeggrp,'') AS fdeggrp, IFNULL(d.fdescpn,'') AS fdescpn
FROM deggrp d inner join degree dg on d.fdeggrp = dg.fdeggrp
INNER JOIN colldeg c ON dg.fdegree = c.fdegree
WHERE c.fcollcode='{$_SESSION['collcode']}'
GROUP BY d.fdeggrp
ORDER BY d.`FDEGGRP`;";
// var_dump($get_deggrp_names);
// die();
$lobj_get_deggrp_names = $aobj_context->mobj_db->GetAll($get_deggrp_names);
// var_dump($lobj_get_deggrp_names);
// die();
if($lobj_get_deggrp_names!= 0)
echo $aobj_context->mobj_output->ToJSONEnvelope($lobj_get_deggrp_names,0,"success");
else
echo $aobj_context->mobj_output->ToJSONEnvelope($lobj_get_deggrp_names,-1,"Failure");
return;
}
function loaddegreestudreport($aobj_context)
{
$db = $aobj_context->mobj_data["db"];
$deggrp = $aobj_context->mobj_data["deggrp"];
$get_degree_names="SELECT DISTINCT d.fdeggrp,c.fcollcode,d.fdegree,d.fdescpn FROM degree d
INNER JOIN student c ON d.fdegree=c.fdegree
WHERE c.fcollcode='{$_SESSION['collcode']}' AND d.fdeggrp='{$deggrp}'";
$lobj_get_degree_names = $aobj_context->mobj_db->GetAll($get_degree_names);
if($lobj_get_degree_names!= 0)
echo $aobj_context->mobj_output->ToJSONEnvelope($lobj_get_degree_names,0,"success");
else
echo $aobj_context->mobj_output->ToJSONEnvelope($lobj_get_degree_names,-1,"Failure");
return;
}
function loadyearstudreport($aobj_context)
{
$db = $aobj_context->mobj_data["db"];
$deggrp = $aobj_context->mobj_data["deggrp"];
$degree = $aobj_context->mobj_data["degree"];
$get_year="SELECT DISTINCT IFNULL(s.fayear, '') AS fayear FROM student s
INNER JOIN degree d
ON d.fdegree = s.fdegree WHERE s.fdegree='{$degree}' AND
d.fdeggrp='{$deggrp}' AND s.`FCOLLCODE`='{$_SESSION['collcode']}'
and s.fayear IS NOT NULL";
$lobj_get_year = $aobj_context->mobj_db->GetAll($get_year);
if($lobj_get_year!= 0)
echo $aobj_context->mobj_output->ToJSONEnvelope($lobj_get_year,0,"success");
else
echo $aobj_context->mobj_output->ToJSONEnvelope($lobj_get_year,-1,"Failure");
return;
}
?>
|