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 : 13.59.91.59


Current Path : /proc/thread-self/root/proc/thread-self/root/var/www/oasis/src/
Upload File :
Current File : //proc/thread-self/root/proc/thread-self/root/var/www/oasis/src/degree_SujectReport.php

<?php
	function examnnoForDegreeSubjectReport($aobj_context){
	$collcode=$_SESSION['collcode'];
	$degree=$aobj_context->mobj_data['degree'];

	$query = "SELECT fexamno AS internal_code, CONCAT(fexamno,' - ',fexamname) AS VALUE 
	          FROM degree WHERE fdegree='{$degree}'";
    $results=$aobj_context->mobj_db->GetAll($query);

	if($results){
		echo $aobj_context->mobj_output->ToJSONEnvelope($results,0,"success");
	}

	}

	function degreeForDegreeSubjectReport($aobj_context){
	
		$collcode=$_SESSION['collcode'];
		$query="SELECT DISTINCT d.fdegree AS internal_code,CONCAT(d.fdegree,' - ',d.fdescpn) AS VALUE FROM degree d
		        INNER JOIN colldeg r ON d.fdegree = r.fdegree 
		        WHERE r.fcollcode = '{$collcode}'";
				
		  $results=$aobj_context->mobj_db->GetAll($query);
		  if($results){
			echo $aobj_context->mobj_output->ToJSONEnvelope($results,0,"success");
		}
	}
?>