<?php
class Dealer extends CI_Controller {

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

	function index(){	
		$this->list_dealer();
	}
	
	function list_dealer(){
		$this->_page_data['page_title']="List of Dealer Company";
		$this->_page_data['bredcrum']=array(
										'Manage Dealer Company'=>'#',
										'List Dealer Company'=>'#',
										);
		$this->load->view('gc/dealer_list.php',$this->_page_data);
	}
	
	function view_dealer() {
		$this->_page_data['page_title']="View Dealer Company";
		$this->_page_data['bredcrum']=array(
										'List Dealer Company'=>site_url(DEALER_PATH.'list_dealer'),
										'View Dealer Company'=>'#',
										);
		$this->load->view('gc/dealer_view.php',$this->_page_data);
	}
	
	function manage_dealer($purpose=NULL){
		if($purpose=='')
			$purpose='Add';
		
		$this->_page_data['purpose']=$purpose;
		$this->_page_data['page_title']=$purpose." Dealer Company";
		$this->_page_data['bredcrum']=array(
										'List Dealer Company'=>site_url(DEALER_PATH.'list_dealer'),
										$purpose.' Dealer Company'=>'#',
										);
		$this->load->view('gc/dealer_manage.php',$this->_page_data);
	}
}
?>