<?php	if ( ! defined('BASEPATH')) exit('No direct script access allowed');
class Financial_year extends CI_Controller {

var $_page_data=array('view_page_name'=>'gc/financial_year_manage.php','form_action'=> 'gc/financial_year/manage_financial_year','financial_year_id'=>'','financial_year_code'=>'','financial_year_name'=>'','is_active'=>'','error'=>'');
	
	function __construct()	{
		parent::__construct();
		$this->load->model('master_model');
	}

	function index()	{	
		$this->list_financial_year();
	}
	
	
	function manage_financial_year($financial_year_id=null){
		if($financial_year_id=='')
			$purpose='Add';
		else
			$purpose='Edit';
		$this->_page_data['purpose']=$purpose;
		$this->_page_data['page_title']=$purpose." Financial Year";
		$this->_page_data['bredcrum']=array(
										'List Financial Year'=>site_url(FINANCIAL_YEAR_PATH.'list_financial_year'),
										$purpose.' Financial Year'=>'#',
										);
		$this->load->view('gc/financial_year_manage.php',$this->_page_data);
	}
		
	function confirm_financial_year()	{
		$this->_page_data['page_title']="Confirm Financial Year";
		$this->_page_data['bredcrum']=array(
										'Manage Financial Year'=>site_url(FINANCIAL_YEAR_PATH.'list_financial_year'),
										'Confirm Financial Year'=>'#',
										);
		$this->load->view('gc/deisgnation_confirm.php',$this->_page_data);
	}
	
	function view_financial_year()	{
		$this->_page_data['page_title']="View Financial Year";
		$this->_page_data['bredcrum']=array(
										'Manage Financial Year'=>site_url(FINANCIAL_YEAR_PATH.'list_financial_year'),
										'View Financial Year'=>'#',
										);
		$this->load->view('gc/financial_year_view.php',$this->_page_data);
	}
	
	function store_financial_year()	{ 		
	}
	
	function toggle_financial_year($financial_year_id,$financial_year_status){
	}
	
	function list_financial_year($query_id = 0, $sort_by = '', $sort_order = 'asc', $offset = 0) {
		$this->_page_data['page_title']="List of Financial Year";
		$this->_page_data['bredcrum']=array(
										'Manage Financial Year'=>'#',
										'List of Financial Year'=>'#',
										);
		$this->load->view('gc/financial_year_list',$this->_page_data);
	}
		
	function search() {
		
	}
	
	
}