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

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

	function index()	{
	}	
	
	function report_list_outstanding_payment($process=NULL,$query_id = 0, $sort_by = '', $sort_order = 'asc', $offset = 0) {
		$this->_page_data['process']=$process;
		$this->_page_data['page_title']="Outstanding Payment Report";
		$this->_page_data['bredcrum']=array(
										'Search Outstanding Payment'=>site_url('gc/report/search/'.$process),
										"Outstanding Payment Report"=>'#',
										);
			$this->load->view('gc/outstanding_payment_report.php',$this->_page_data);
	}
	
	function report_list_client($process=NULL,$query_id = 0, $sort_by = '', $sort_order = 'asc', $offset = 0){
		$this->_page_data['process']=$process;		
		$this->_page_data['page_title']="Sales Report";
		$this->_page_data['bredcrum']=array(
										'Search Sales Report'=>site_url('gc/report/search/'.$process),
										"Sales Report"=>'#',
										);
			$this->load->view('gc/client_sales_report.php',$this->_page_data);
	}
	function report_list_dealer($process=NULL,$query_id = 0, $sort_by = '', $sort_order = 'asc', $offset = 0){
		$this->_page_data['process']=$process;		
		$this->_page_data['page_title']="Dealer Company wise Sales Report";
		$this->_page_data['bredcrum']=array(
										'Search Dealer Company wise Sales'=>site_url('gc/report/search/'.$process),
										"Dealer Company wise Sales Report"=>'#',
										);
			$this->load->view('gc/dealerwise_sales_report.php',$this->_page_data);
	}
	function report_list_agent($process=NULL,$query_id = 0, $sort_by = '', $sort_order = 'asc', $offset = 0){
		$this->_page_data['process']=$process;		
		$this->_page_data['page_title']="Agentwise Sales Report";
		$this->_page_data['bredcrum']=array(
										'Search Agentwise Sales'=>site_url('gc/report/search/'.$process),
										"Agentwise Sales Report"=>'#',
										);
			$this->load->view('gc/agentwise_sales_report.php',$this->_page_data);
	}
	function report_list_location($process=NULL,$query_id = 0, $sort_by = '', $sort_order = 'asc', $offset = 0){
		$this->_page_data['process']=$process;		
		$this->_page_data['page_title']="Locationwise Sales Report";
		$this->_page_data['bredcrum']=array(
										'Search Locationwise Sales'=>site_url('gc/report/search/'.$process),
										"Locationwise Sales Report"=>'#',
										);
			$this->load->view('gc/locationwise_sales_report.php',$this->_page_data);
	}
	function search($process=NULL) {
		if($process == 'location')
		{
			$title='Location wise Sales';
		}else if($process == 'agent')
		{
			$title='Agent wise Sales Report';
		}else if($process == 'dealer')
		{
			$title='Dealer Company wise Sales';
		}else if($process == 'client')
		{
			$title='Sales Report';
		}else if($process == 'outstanding_payment')
		{
			$title='Outstanding Payment';
		}
		$this->_page_data['process']=$process;
		$this->_page_data['title']=$title;
		$this->_page_data['page_title']="Search for ".$title;
		$this->_page_data['bredcrum']=array(
										'Search '.$title=>'#',
										);
		$this->load->view('gc/report.php',$this->_page_data);
	}
	
	
}