<?php	if ( ! defined('BASEPATH')) exit('No direct script access allowed');
/*
///////////////////////////////////////////////////////////////////////
/  Project Name 	: HRMS-Asian Paints
/  File Name 		: location.php  
/  Created on  		: 06/11/2014
/  Created by       : Trupti
/  Last Changed By 	: 
/  Updated On		: 
/  Purpose			: To view and add location
/  ---------
/  
////////////////////////////////////////////////////////////////////////
*/

class Location extends CI_Controller {

var $_page_data=array('view_page_name'=>'gc/location_manage.php','form_action'=>'gc/location/manage_location','location_id'=>'','location_code'=>'','location_name'=>'','is_enabled'=>'','error'=>'');
	
	function __construct()	{
		parent::__construct();
		$this->load->model('master_model');
	}

	function index()	{	
		$this->list_location();
	}
	
	function manage_location($location_id=null){
		$this->_page_data['page_title']="Add Location";
		$this->_page_data['bredcrum']=array(
										'Manage Location'=>site_url('gc/location/list_location'),
										'Add Location'=>'#',
										);
		$this->load->view('gc/location_manage.php',$this->_page_data);
	}
		
	function confirm_location()	{
		$this->_page_data['page_title']="Confirm Location";
		$this->_page_data['bredcrum']=array(
										'Manage Location'=>site_url('gc/location/list_location'),
										'Confirm Location'=>'#',
										);
		$this->load->view('gc/location_confirm.php',$this->_page_data);
	}
	
	function view_location()	{
		$this->_page_data['page_title']="View Location";
		$this->_page_data['bredcrum']=array(
										'Manage Location'=>site_url('gc/location/list_location'),
										'View Location'=>'#',
										);
		$this->load->view('gc/location_view.php',$this->_page_data);
	}
	
	function list_location($query_id = 0, $sort_by = '', $sort_order = 'asc', $offset = 0) {
		$this->_page_data['page_title']="List Location";
		$this->_page_data['bredcrum']=array(
										'Manage Location'=>'#',
										'List Location'=>'#',
										);
		$this->load->view('gc/location_list.php',$this->_page_data);
	}	
}