<?php
class Client extends CI_Controller {

	function __construct(){
		parent::__construct();
	}

	function index(){	
		$this->list_client();
	}
	
	function list_client(){
		$this->_page_data['page_title']="List of Client";
		$this->_page_data['bredcrum']=array(
										'Manage Client'=>'#',
										'List Client'=>'#',
										);
		$this->load->view('gc/client_list.php',$this->_page_data);
	}
	
	function view_client() {
		$this->_page_data['page_title']="View Client";
		$this->_page_data['bredcrum']=array(
										'List Client'=>site_url(CLIENT_PATH.'list_client'),
										'View Client'=>'#',
										);
		$this->load->view('gc/client_view.php',$this->_page_data);
	}
	
	function manage_client($purpose=NULL){
		if($purpose=='')
			$purpose='Add';
		
		$this->_page_data['purpose']=$purpose;
		$this->_page_data['page_title']=$purpose." Client";
		$this->_page_data['bredcrum']=array(
										'List Client'=>site_url(CLIENT_PATH.'list_client'),
										$purpose.' Client'=>'#',
										);
		$this->load->view('gc/client_manage.php',$this->_page_data);
	}
}
?>