MOON
Server: Apache
System: Linux nserver.cafsindia.com 4.18.0-553.104.1.lve.el8.x86_64 #1 SMP Tue Feb 10 20:07:30 UTC 2026 x86_64
User: cafsindia (1002)
PHP: 8.2.30
Disabled: NONE
Upload Files
File: /home/cafsindia/hrms_cafsinfotech_in/OLD/ZRM/application/controllers/Profile.php
<?php if ( ! defined('BASEPATH')) exit('No direct script is allowed');
require_once("Action_controller.php");
class Profile  extends Action_controller{	
	public function __construct(){
		parent::__construct('profile');
	}
	
	// LOAD PAGE QUICK LINK,FILTERS AND TABLE HEADERS
	public function index(){
		//query for offer_letter and profile picture for profile page

		$company_query	=	'SELECT display_appointment,hr_policy,display_offer FROM cw_company_information';
		$company_info   =	$this->db->query("CALL sp_a_run ('SELECT','$company_query')");
		$company_result =	$company_info->result();
		$company_info->next_result();

		$profile_query	=	'SELECT profile_picture FROM cw_employees';
		$profile_info   =	$this->db->query("CALL sp_a_run ('SELECT','$profile_query')");
		$profile_result = 	$profile_info->result();
		$profile_info->next_result();
		
		$data['company_result'] =	$company_result;
		$data['profile_result'] =	$profile_result;
		$this->load->view("$this->control_name/manage",$data);
	}
	
}
?>