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.117.184.125


Current Path : /var/www/oasis/custom_src_old/
Upload File :
Current File : /var/www/oasis/custom_src_old/dash_board.php

<?php
class dash
{
	public $internal_code;
	
		function __construct($aobj_context)
		{
			session_start();
			$aobj_context->mobj_db->SetFetchMode(ADODB_FETCH_ASSOC);
			$this->aobj_context=$aobj_context;
			$this->user_id = $_SESSION['user_id'];		
			$this->user_type = $_SESSION['user_type'];	
			$this->collcode = $_SESSION['collcode'];	
 		
			 
		}  
		 
		function dashboardMessageBoard()
		{
			$get_all_message="select ifnull(college_code,0) as college_code,
							 message
							from
							message_board
							where current_date() between 
							display_from
							and display_to and college_code in('1','0','{$this->collcode}')";
			$lobj_get_all_message = $this->aobj_context->mobj_db->GetAll($get_all_message);	
			  
			 
			foreach($lobj_get_all_message as $k=>$v)
			{
			 
				if( empty($v[college_code]) or $v[college_code]=='0' )
				{
				 $this->univ_data=$v['message'];
				 
				}
				else
				 $this->college_data=$v['message'];
			}
			 
			 if(empty($this->univ_data))
			 {
			 $this->univ_data="<br><b>Welcome to Examination Automation.</b><br>
			 <br><p justify></p>";
			 }
			
		}
 }	
	
	function GetDashboardDetails($aobj_context)
	{
		$dash_obj=new dash($aobj_context);
		$dash_obj->dashboardMessageBoard();
		$arr[univ_data]=$dash_obj->univ_data;
		$arr[college_data]=$dash_obj->college_data;
		echo $aobj_context->mobj_output->ToJSONEnvelope($arr,0,"success");  
	}
 
?>