| 
									
										
										
										
											2023-10-25 04:53:45 +08:00
										 |  |  | <?php if ( ! defined('BASEPATH')) exit('No direct script access allowed'); | 
					
						
							|  |  |  | 
 | 
					
						
							| 
									
										
										
										
											2023-10-25 13:48:51 +08:00
										 |  |  | class SimpleFLE extends CI_Controller { | 
					
						
							| 
									
										
										
										
											2023-10-25 04:53:45 +08:00
										 |  |  | 
 | 
					
						
							|  |  |  |     public function index() { | 
					
						
							|  |  |  |         $this->load->model('user_model'); | 
					
						
							|  |  |  | 		if(!$this->user_model->authorize(2)) { $this->session->set_flashdata('notice', 'You\'re not allowed to do that!'); redirect('dashboard'); } | 
					
						
							|  |  |  | 
 | 
					
						
							| 
									
										
										
										
											2023-10-25 21:14:53 +08:00
										 |  |  | 		 | 
					
						
							|  |  |  | 		$this->load->model('stations'); | 
					
						
							| 
									
										
										
										
											2023-10-25 22:32:39 +08:00
										 |  |  | 		$this->load->model('logbook_model'); | 
					
						
							|  |  |  | 		$this->load->model('modes'); | 
					
						
							|  |  |  | 		$this->load->model('bands'); | 
					
						
							| 
									
										
										
										
											2023-10-25 21:14:53 +08:00
										 |  |  | 
 | 
					
						
							|  |  |  | 		$data['station_profile'] = $this->stations->all_of_user();			// Used in the view for station location select
 | 
					
						
							|  |  |  | 
 | 
					
						
							| 
									
										
										
										
											2023-10-25 04:53:45 +08:00
										 |  |  | 		$data['page_title'] = "Simple Fast Log Entry"; | 
					
						
							| 
									
										
										
										
											2023-10-25 16:02:06 +08:00
										 |  |  |          | 
					
						
							|  |  |  | 		$footerData = []; | 
					
						
							|  |  |  | 		$footerData['scripts'] = [ | 
					
						
							|  |  |  | 			'assets/js/moment.min.js', | 
					
						
							|  |  |  | 			'assets/js/tempusdominus-bootstrap-4.min.js', | 
					
						
							|  |  |  | 			'assets/js/datetime-moment.js', | 
					
						
							|  |  |  | 			'assets/js/sections/simplefle.js?' . filemtime(realpath(__DIR__ . "/../../assets/js/sections/simplefle.js")) | 
					
						
							|  |  |  | 		]; | 
					
						
							| 
									
										
										
										
											2023-10-25 04:53:45 +08:00
										 |  |  | 
 | 
					
						
							|  |  |  | 		$this->load->view('interface_assets/header', $data); | 
					
						
							| 
									
										
										
										
											2023-10-25 13:48:51 +08:00
										 |  |  | 		$this->load->view('simplefle/index'); | 
					
						
							| 
									
										
										
										
											2023-10-25 16:02:06 +08:00
										 |  |  | 		$this->load->view('interface_assets/footer', $footerData); | 
					
						
							| 
									
										
										
										
											2023-10-25 04:53:45 +08:00
										 |  |  | 
 | 
					
						
							|  |  |  |     } | 
					
						
							|  |  |  | } |