89 行
		
	
	
	
		
			4 KiB
		
	
	
	
		
			PHP
		
	
	
	
	
	
			
		
		
	
	
			89 行
		
	
	
	
		
			4 KiB
		
	
	
	
		
			PHP
		
	
	
	
	
	
| <!doctype html>
 | |
| <html lang="en">
 | |
|   <head>
 | |
|     <!-- Required meta tags -->
 | |
|     <meta charset="utf-8">
 | |
|     <meta name="viewport" content="width=device-width, initial-scale=1, shrink-to-fit=no">
 | |
| 
 | |
|     <!-- Bootstrap CSS -->
 | |
|     <?php if($this->optionslib->get_theme()) { ?>
 | |
| 		<link rel="stylesheet" href="<?php echo base_url(); ?>assets/css/<?php echo $this->optionslib->get_theme();?>/bootstrap.min.css">
 | |
| 		<link rel="stylesheet" href="<?php echo base_url(); ?>assets/css/general.css">
 | |
| 		<link rel="stylesheet" href="<?php echo base_url(); ?>assets/css/visitor.css">
 | |
|         <link rel="stylesheet" href="<?php echo base_url(); ?>assets/css/selectize.bootstrap4.css"/>
 | |
| 		<link rel="stylesheet" href="<?php echo base_url(); ?>assets/css/bootstrap-dialog.css"/>
 | |
| 		<link rel="stylesheet" href="<?php echo base_url(); ?>assets/css/<?php echo $this->optionslib->get_theme();?>/overrides.css">
 | |
| 	<?php } ?>
 | |
| 
 | |
|     <link rel="stylesheet" href="<?php echo base_url(); ?>assets/fontawesome/css/all.css">
 | |
| 
 | |
| 	<link rel="stylesheet" href="<?php echo base_url(); ?>assets/css/jquery.fancybox.min.css" />
 | |
| 
 | |
|     <!-- Maps -->
 | |
|     <link rel="stylesheet" type="text/css" href="<?php echo base_url(); ?>assets/js/leaflet/leaflet.css" />
 | |
| 
 | |
| 	<link rel="stylesheet" type="text/css" href="<?php echo base_url(); ?>assets/css/loading.min.css" />
 | |
| 	<link rel="stylesheet" type="text/css" href="<?php echo base_url(); ?>assets/css/ldbtn.min.css" />
 | |
| 
 | |
|     <link rel="stylesheet" type="text/css" href="<?php echo base_url(); ?>assets/css/buttons.dataTables.min.css"/>
 | |
| 
 | |
| 	<link rel="stylesheet" type="text/css" href="<?php echo base_url(); ?>assets/css/datatables.min.css"/>
 | |
| 
 | |
| 	<?php if (file_exists(APPPATH.'../assets/css/custom.css')) { echo '<link rel="stylesheet" href="'.base_url().'assets/css/custom.css">'; } ?>
 | |
| 
 | |
|     <link rel="icon" href="<?php echo base_url(); ?>favicon.ico">
 | |
| 
 | |
|     <title><?php if(isset($page_title)) { echo $page_title; } ?> - Cloudlog</title>
 | |
|   </head>
 | |
|   <body>
 | |
| 
 | |
| <nav class="navbar navbar-expand-lg navbar-light bg-light main-nav">
 | |
| <div class="container">
 | |
| 
 | |
| 		<?php
 | |
| 		if (!empty($slug)) {
 | |
| 			echo '<a class="navbar-brand" href="' . site_url('visitor/'.$slug) .'">Cloudlog</a>';
 | |
| 		} else {
 | |
| 			echo '<a class="navbar-brand" href="' . site_url() .'">Cloudlog</a>';
 | |
| 		}
 | |
| 		?>
 | |
| 	<button class="navbar-toggler" type="button" data-bs-toggle="collapse" data-bs-target="#navbarNav" aria-controls="navbarNav" aria-expanded="false" aria-label="Toggle navigation"><span class="navbar-toggler-icon"></span></button>
 | |
| 
 | |
| 	<div class="collapse navbar-collapse" id="navbarNav">
 | |
| 
 | |
| 		<ul class="navbar-nav">
 | |
| 		<?php
 | |
| 		if (!empty($slug)) { ?>
 | |
| 		<li class="nav-item">
 | |
| 			<a class="nav-link" href="<?php echo site_url('visitor/satellites/'.$slug);?>">Gridsquares</a>
 | |
| 		</li>
 | |
| 		<?php
 | |
| 			$this->CI =& get_instance();
 | |
| 			if ($this->CI->oqrs_enabled($slug)) {
 | |
| 			?>
 | |
| 			<li class="nav-item">
 | |
| 				<a class="nav-link" href="<?php echo site_url('oqrs');?>">OQRS</a>
 | |
| 			</li>
 | |
| 			<?php } 
 | |
| 		}
 | |
| 		if ($this->uri->segment(1) != "oqrs") { ?>
 | |
| 		<li class="nav-item">
 | |
| 			 <a class="btn btn-outline-primary" href="<?php echo site_url('user/login');?>">Login</a>
 | |
| 		</li>
 | |
| 		<?php } ?>
 | |
| 		</ul>
 | |
| 
 | |
| 		<div style="paddling-left: 0.5rem; padding-right: 0.5rem"></div>
 | |
| 		<?php if (!empty($slug)) {
 | |
| 			$this->CI =& get_instance();
 | |
| 			if ($this->CI->public_search_enabled($slug) || $this->session->userdata('user_type') >= 2) { ?>
 | |
| 				<form method="post" name="searchForm" action="<?php echo site_url('visitor/search'); ?>" onsubmit="return validateForm()" class="form-inline">
 | |
|             <input class="form-control me-sm-2" id="searchcall" type="search" name="callsign" placeholder="<?php echo lang('menu_search_text'); ?>" <?php if (isset($callsign) && $callsign != '') { echo 'value="'.strtoupper($callsign).'"'; } ?> aria-label="Search" data-toogle="tooltip" data-bs-placement="bottom" title="Please enter a callsign!">
 | |
| 					<input type="hidden" name="public_slug" value="<?php echo $slug; ?>">
 | |
| 					<button class="btn btn-outline-success my-2 my-sm-0" type="submit"><i class="fas fa-search"></i> <?php echo lang('menu_search_button'); ?></button>
 | |
| 				</form>
 | |
| 			<?php }
 | |
| 		} ?>
 | |
| 	</div>
 | |
| </div>
 | |
| </nav>
 |