<?php	if ( ! defined('BASEPATH')) exit('No direct script access allowed');

class Vessel extends CI_Controller {

var $_page_data=array('view_page_name'=>'gc/vessel_manage.php','form_action'=>'gc/vessel/manage_vessel','vessel_id'=>'','vessel_code'=>'','vessel_name'=>'','is_enabled'=>'','error'=>'');
	
	function __construct()	{
		parent::__construct();
		$this->load->model('master_model');
	}

	function index()	{	
		$this->list_vessel();
	}
	
	function manage_vessel($purpose=null){
		if($purpose=='')
			$purpose='Add';
		$this->_page_data['purpose']=$purpose;
		$this->_page_data['page_title']=$purpose." Vessel";
		$this->_page_data['bredcrum']=array(
										'Manage Vessel'=>site_url(VESSEL_PATH.'list_vessel'),
										'Add Vessel'=>'#',
										);
		$this->load->view('gc/vessel_manage.php',$this->_page_data);
	}
		
	function confirm_vessel()	{
		$this->_page_data['page_title']="Confirm Vessel";
		$this->_page_data['bredcrum']=array(
										'Manage Vessel'=>site_url(VESSEL_PATH.'list_vessel'),
										'Confirm Vessel'=>'#',
										);
		$this->load->view('gc/vessel_confirm.php',$this->_page_data);
	}
	
	function view_vessel()	{
		$this->_page_data['page_title']="View Vessel";
		$this->_page_data['bredcrum']=array(
										'Manage Vessel'=>site_url(VESSEL_PATH.'list_vessel'),
										'View Vessel'=>'#',
										);
		$this->load->view('gc/vessel_view.php',$this->_page_data);
	}
	
	function list_vessel($query_id = 0, $sort_by = '', $sort_order = 'asc', $offset = 0) {
		$this->_page_data['page_title']="List Vessel";
		$this->_page_data['bredcrum']=array(
										'Manage Vessel'=>'#',
										'List Vessel'=>'#',
										);
		$this->load->view('gc/vessel_list.php',$this->_page_data);
	}	
}