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.68.18
<?php
function getRvPCStatus($aobj_context){
$aobj_context->mobj_db->SetFetchMode(ADODB_FETCH_ASSOC);
$univcode = $aobj_context->mobj_data["univcode"];
$studid = $aobj_context->mobj_data["regno"];
if($univcode == '027')
{
$query = "select r.fsubcode,r.fregno, r.fexamno, concat(dg.fexamdate,' \n ',d.fexamname) as fexamname,
concat(r.fsubcode,' - ',s.fqpcode) as fqpcode,
concat(s.fsubname, ' - ', s.fssubname) as fsubname, d.FRESEXAMDATE as fexamdate,
d.fdegree, d.fdescpn, d.fmeyear, d.fmeexamtyp, r.fcorrtype,
if(ifnull(fxrpath, '') = '', 'abc.pdf',fxrpath) as fxrpath,
if(ifnull(f.fcorrtype,'') = r.fcorrtype, 'T', 'F') as frvstatus,
ifnull(r.fomarks,-1) as fomarks,
ifnull(r.fnmarks,-1) as fnmarks,
if(ifnull(t.fqpcode,'') = '',0,1) as tdvsqp
from res_stud r inner join subject s on r.fdegree = s.fdegree
and r.fexamno = s.fexamno and r.fsubcode = s.fcsubcode
inner join res_fee f on r.fregno = f.fregno and r.fexamno = f.fexamno inner join degree d
on r.fdegree = d.fdegree and r.fexamno = d.fexamno
and r.fyear = f.fyear and r.fexamtype = f.fexamtype
left join tdvs_masqp t on s.fqpcode = t.fqpcode
left join degexam dg on f.fyear = dg.fyear and f.fexamtype = dg.fexamtype
and f.fdegree = dg.fdegree and f.fexamno = dg.fexamno
where r.fregno = '{$studid}' and ifnull(r.fpaymentstatus,'') = 'success'
order by r.fsubcode, r.fcorrtype desc";
}else{
$query = "select r.fsubcode,r.fregno, r.fexamno, concat(dg.fexamdate,' \n ',d.fexamname) as fexamname,
concat(r.fsubcode,' - ',s.fqpcode) as fqpcode,
concat(s.fsubname, ' - ', s.fssubname) as fsubname, d.FRESEXAMDATE as fexamdate,
d.fdegree, d.fdescpn, d.fmeyear, d.fmeexamtyp, r.fcorrtype,
if(ifnull(fxrpath, '') = '', 'abc.pdf',fxrpath) as fxrpath,
if(ifnull(f.fcorrtype,'') = r.fcorrtype, 'T', 'F') as frvstatus,
ifnull(r.fomarks,-1) as fomarks,
ifnull(r.fnmarks,-1) as fnmarks,
'0' as tdvsqp
from res_stud r inner join subject s on r.fdegree = s.fdegree
and r.fexamno = s.fexamno and r.fsubcode = s.fcsubcode
and r.fyear = f.fyear and r.fexamtype = f.fexamtype
inner join res_fee f on r.fregno = f.fregno and r.fexamno = f.fexamno inner join degree d
on r.fdegree = d.fdegree and r.fexamno = d.fexamno
left join degexam dg on f.fyear = dg.fyear and f.fexamtype = dg.fexamtype
and f.fdegree = dg.fdegree and f.fexamno = dg.fexamno
where r.fregno = '{$studid}' and ifnull(r.fpaymentstatus,'') = 'success'
order by r.fsubcode, r.fcorrtype desc";
}
$lobj_get_rvpc = $aobj_context->pobj_db->GetAll($query);
// var_dump($lobj_get_rvpc);
// die();
if($lobj_get_rvpc){
$arr['rvpc']=$lobj_get_rvpc;
echo $aobj_context->mobj_output->ToJSONEnvelope($arr,0,"success");
}else{
$arr['msg']="no data found";
echo $aobj_context->mobj_output->ToJSONEnvelope($arr,-1,"Failure");
return;
}
}
function getPracticalTTStatus($aobj_context){
$aobj_context->mobj_db->SetFetchMode(ADODB_FETCH_ASSOC);
$univcode = $aobj_context->mobj_data["univcode"];
$studid = $aobj_context->mobj_data["regno"];
$cnd = "and ifnull(cd.fpresent,'') = 'P'";
if($univcode != '041' || $$univcode != '042')
$cnd = '';
$query = "select st.fname, concat(cd.fdegree,' - ',de.fdescpn) as fdegree,
cd.fexamno, de.fexamname, de.FEXAMDATE as exam,
cd.fregno, su.fcsubcode, concat(su.fsubname,' - ',su.fssubname) as fsubname,
concat(date_format(pr.fexamdate,'%d/%m/%Y'),' [',dayname(pr.FEXAMDATE),']') as fexamdate,
pr.fexamtime, concat('[',cl.fcollcode,'] ',cl.fcollname, ', ', cl.ftown) as centrename,
mp.fbatch
from canddet cd inner join subject su on cd.fdegree = su.fdegree
and cd.fexamno = su.fexamno and cd.fsubcode = su.fsubcode
inner join candsum cs on cd.fregno = cs.fregno and cd.fcollcode = cs.fcollcode
and cd.fdegree = cs.fdegree
inner join degree de on cd.fdegree = de.fdegree and cd.fexamno = de.fexamno
inner join marks_pr mp on cd.fexamno = mp.fexamno
and cd.fregno = mp.fregno
and su.fcsubcode = mp.fsubcode
inner join practical_entry_freeze pr
on mp.fdegree = pr.fdegree
and mp.fexamno = pr.fexam
and mp.fcollcode = pr.fcollcode
and mp.fsubcode = pr.fcsubcode
and mp.fbatch = pr.fbatch
inner join college cl
on mp.fcollcode = cl.fcollcode
inner join student st on
mp.focollcode = st.fcollcode
and mp.fregno = st.fregno
where cd.fregno = '{$studid}'
and su.fcsubcode = pr.fcsubcode
and ifnull(cd.fpassmth,'') = ''
and INSTR(cs.fhtenable,cd.fexamno) >0
{$cnd}
and su.ftheory <> 'T'";
// var_dump($query);
// die();
$lobj_get_ptt = $aobj_context->pobj_db->GetAll($query);
if($lobj_get_ptt){
$arr["ptt"]=$lobj_get_ptt;
echo $aobj_context->mobj_output->ToJSONEnvelope($arr,0,"success");
}else{
$arr['msg']="no data found";
echo $aobj_context->mobj_output->ToJSONEnvelope($arr,-1,"Failure");
return;
}
}
function fetchStudentReport($aobj_context){
$aobj_context->mobj_db->SetFetchMode(ADODB_FETCH_ASSOC);
$fmobile = $aobj_context->mobj_data["fmobile"];
$query = "select distinct ifnull(s.FAREGNO, '') as FAREGNO,
ifnull(s.FPHOTOPATH, '')as FPHOTOPATH,
ifnull(s.FNAME, '')as FNAME,
ifnull(d.fdescpn, '')as FDEGREE,
concat(c.fcollcode, ' - ', c.fcollname,', ',c.ftown) as fcollege,
ifnull(s.FFATNAME, '')as FFATNAME,
ifnull(s.FMOTNAME, '')as FMOTNAME,
ifnull(s.FGENDER, '')as FGENDER,
ifnull(s.FCASTE, '')as FCASTE,
ifnull(s.FDOB, '')as FDOB,
ifnull(s.FSTUDID, '')as FSTUDID,
ifnull(s.FMOBILE_NO, '')as FMOBILE_NO,
ifnull(s.FEMAIL, '')as FEMAIL,
ifnull(s.funivfee, '')as funivfee,
ifnull(s.ftotfee ,'')as ftotfee
from studadm s inner join degree d on s.fdegree = d.fdegree inner join college c on s.FCOLLCODE = c.fcollcode
where FMOBILE_NO = '$fmobile'";
$student_per = $aobj_context->pobj_db->GetRow($query);
if($student_per)
{
echo $aobj_context->mobj_output->ToJSONEnvelope($student_per,0,"success");
return;
}
else
{
$arr['msg'] = 'Student Details not found ';
echo $aobj_context->mobj_output->ToJSONEnvelope($arr,-1,"failure");
return;
}
}
function getResultStatus($aobj_context){
$aobj_context->mobj_db->SetFetchMode(ADODB_FETCH_ASSOC);
$univcode = $aobj_context->mobj_data["univcode"];
$regno = $aobj_context->mobj_data["studid"];
if($univcode == "021"){
$cond="rd.fmcnumber desc";
}else{
$cond="r.fresultdate desc, r.fexamno";
}
if($univcode == '049')
{
$query = "select rd.fclass,
if(ifnull(rd.fmcnumber,'XXXXXXXX') = 'XXXXXXXX','',rd.fmcnumber) as fmcnumber,
concat(d.fexamno,'-',d.fyear,'-',d.fexamtype) as fyear,
d.fexamdate, group_concat(distinct dg.fexamname order by d.fexamno SEPARATOR ', ' ) as fexamname,ifnull(date_format(r.fresultdate,'%d/%m/%Y'),'-') as fresultdate,r.fregno,
concat(dg.fdegree,' - ',dg.fdescpn) as degree,concat(c.fcollcode,' - ',c.fcollname,', ',c.ftown) as college,
s.fname as fname,
ifnull(u.fdegas,'Degree ') as fdegas,
ifnull(u.fcollas,'College ') as fcollas,
ifnull(u.fsubas,'Subject ') as fsubas,
ifnull(u.FREGROLL,'Reg. No.') as FREGROLL
from control u, degexam d inner join res_fee r on d.fdegree = r.fdegree
and d.fexamno = r.fexamno
and d.fyear = r.fyear
and d.fexamtype = r.fexamtype
inner join degree dg on r.fdegree = dg.fdegree
and r.fexamno = dg.fexamno
inner join student s on s.fregno = r.fregno
inner join college c on r.fcollcode = c.fcollcode
inner join resmarks rd on r.fregno = rd.fregno and r.fexamno = rd.fexamno
and r.fyear = rd.fyear and r.fexamtype = rd.fexamtype
where r.fregno = '{$regno}'
group by r.fregno,r.fyear,r.fexamtype
order by r.fresultdate desc, r.fexamno";
}else
{
$query = "select rd.fclass,
if(ifnull(rd.fmcnumber,'XXXXXXXX') = 'XXXXXXXX','',rd.fmcnumber) as fmcnumber,
concat(d.fexamno,'-',d.fyear,'-',d.fexamtype) as fyear,
d.fexamdate, dg.fexamname,ifnull(date_format(r.fresultdate,'%d/%m/%Y'),'-') as fresultdate,r.fregno,
concat(dg.fdegree,' - ',dg.fdescpn) as degree,concat(c.fcollcode,' - ',c.fcollname,', ',c.ftown) as college,
s.fname as fname,
ifnull(u.fdegas,'Degree ') as fdegas,
ifnull(u.fcollas,'College ') as fcollas,
ifnull(u.fsubas,'Subject ') as fsubas,
ifnull(u.FREGROLL,'Reg. No.') as FREGROLL
from control u, degexam d inner join res_fee r on d.fdegree = r.fdegree
and d.fexamno = r.fexamno
and d.fyear = r.fyear
and d.fexamtype = r.fexamtype
inner join degree dg on r.fdegree = dg.fdegree
and r.fexamno = dg.fexamno
inner join student s on s.fregno = r.fregno
inner join college c on r.fcollcode = c.fcollcode
inner join resmarks rd on r.fregno = rd.fregno and r.fexamno = rd.fexamno
and r.fyear = rd.fyear and r.fexamtype = rd.fexamtype
where r.fregno = '{$regno}'
group by r.fregno,r.fexamno,r.fyear,r.fexamtype
order by {$cond}";
}
$lobj_get_ptt = $aobj_context->pobj_db->GetAll($query);
if($lobj_get_ptt){
$arr["res"]=$lobj_get_ptt;
echo $aobj_context->mobj_output->ToJSONEnvelope($arr,0,"success");
}else{
$arr['msg']="no data found";
echo $aobj_context->mobj_output->ToJSONEnvelope($arr,-1,"Failure");
return;
}
}
?>
|