application/modules/vehicle/controllers/Vehicle.php
/*report untuk menampilkan hasil pdf sesuai dengan report yang berlaku saat ini*/
report untuk menampilkan hasil pdf sesuai dengan report yang berlaku saat ini
report untuk menampilkan hasil pdf sesuai dengan report yang berlaku saat ini
public function rpt_sarana()
	{
		$group = "ga";
		$this->load->helper('url');
		$this->load->helper('form_helper');
		if (!$this->ion_auth->logged_in()) {
			redirect('auth/login','refresh');
		}
		else
		{
			$obj_user = $this->ion_auth->user()->row();
			$email = $obj_user->username;
			$data['username'] = $email;
			$data['title'] = 'Report Rekap Sarana';
			$data['dd_empcode'] = $this->master_lov->dd_empcode();
	        $data['empcode_selected'] = $this->input->post('empcode') ? $this->input->post('empcode') : '';
	        $data['dd_dept'] = $this->master_lov->dd_dept();
	        $data['dd_dept_selected'] = $this->input->post('departement') ? $this->input->post('departement') : '';
	        $data['dd_emp_pos'] = $this->master_lov->dd_emp_position();
	        $data['dd_emp_pos_select'] = $this->input->post('id_position') ? $this->input->post('id_position') : '';
	        dd empoyee status
			$data['dd_emp_status'] = $this->master_lov->dd_emp_status();
	        $data['empcode_status_selected'] = $this->input->post('id_position') ? $this->input->post('id_position') : '';
	        dropdown untuk vehicle code
				$data['dd_vehicle_code'] = $this->lov->dd_vehicle();
		        $data['vehicle_code'] = $this->input->post('f_nap') ? $this->input->post('f_nap') : '';
if ($this->ion_auth->in_group($group)) {
			$this->load->view('temp/title',$data);
			$this->load->view('template/header_ga');
			$this->load->view('temp/sidebar');
			$this->load->view('rpt_sarana');
			$this->load->view('temp/footer');
			$this->load->view('notif');
			$this->load->view('ajax_rpt_sarana',$data);
        }
    else
    {
			return show_error('You must be an administrator to view this page.');
    }
		}
	}
public function rpt_sarana ( ) { $ group = " ga " ; $ this -> load -> helper ( 'url' ) ; $ this -> load -> helper ( 'form_helper' ) ; if ( ! $ this -> ion_auth -> logged_in ( ) ) { redirect ( 'auth/login' , 'refresh' ) ; } else { $ obj_user = $ this -> ion_auth -> user ( ) -> row ( ) ; $ email = $ obj_user -> username ; $ data [ 'username' ] = $ email ; $ data [ 'title' ] = 'Report Rekap Sarana' ; $ data [ 'dd_empcode' ] = $ this -> master_lov -> dd_empcode ( ) ; $ data [ 'empcode_selected' ] = $ this -> input -> post ( 'empcode' ) ? $ this -> input -> post ( 'empcode' ) : '' ; $ data [ 'dd_dept' ] = $ this -> master_lov -> dd_dept ( ) ; $ data [ 'dd_dept_selected' ] = $ this -> input -> post ( 'departement' ) ? $ this -> input -> post ( 'departement' ) : '' ; $ data [ 'dd_emp_pos' ] = $ this -> master_lov -> dd_emp_position ( ) ; $ data [ 'dd_emp_pos_select' ] = $ this -> input -> post ( 'id_position' ) ? $ this -> input -> post ( 'id_position' ) : '' ; $ data [ 'dd_emp_status' ] = $ this -> master_lov -> dd_emp_status ( ) ; $ data [ 'empcode_status_selected' ] = $ this -> input -> post ( 'id_position' ) ? $ this -> input -> post ( 'id_position' ) : '' ; $ data [ 'dd_vehicle_code' ] = $ this -> lov -> dd_vehicle ( ) ; $ data [ 'vehicle_code' ] = $ this -> input -> post ( 'f_nap' ) ? $ this -> input -> post ( 'f_nap' ) : '' ; if ( $ this -> ion_auth -> in_group ( $ group ) ) { $ this -> load -> view ( 'temp/title' , $ data ) ; $ this -> load -> view ( 'template/header_ga' ) ; $ this -> load -> view ( 'temp/sidebar' ) ; $ this -> load -> view ( 'rpt_sarana' ) ; $ this -> load -> view ( 'temp/footer' ) ; $ this -> load -> view ( 'notif' ) ; $ this -> load -> view ( 'ajax_rpt_sarana' , $ data ) ; } else { return show_error ( 'You must be an administrator to view this page.' ) ; } } }
report untuk menampilkan hasil pdf sesuai dengan report yang berlaku saat ini
report untuk menampilkan hasil pdf sesuai dengan report yang berlaku saat ini
/*elseif (!$this->ion_auth->is_admin()) {
			return show_error('You must be an administrator to view this page.');
		}*/ //dd empcode //dd grade status // //dd empoyee status //dropdown untuk vehicle code