mirror of
https://github.com/wavelog/wavelog.git
synced 2026-03-22 10:24:14 +00:00
Fixed search
This commit is contained in:
@@ -12,25 +12,6 @@
|
||||
|
||||
<script type="text/javascript" src="<?php echo base_url(); ?>js/global.js"></script>
|
||||
<script type="text/javascript" src="http://maps.googleapis.com/maps/api/js?sensor=true"></script>
|
||||
|
||||
|
||||
|
||||
<style type="text/css" media="screen" >
|
||||
#submenu { height: 30px; color:#ffffff; clear: both; <?php
|
||||
|
||||
if($this->session->userdata('user_type') == 99) {
|
||||
switch ($this->uri->segment(1)) {
|
||||
case "user":
|
||||
?> display: normal; <?php
|
||||
break;
|
||||
default:
|
||||
?> display: none; <?php
|
||||
}
|
||||
} else {
|
||||
?> display: none; visibility: hidden; <?php
|
||||
}?> }
|
||||
|
||||
</style>
|
||||
|
||||
|
||||
<link rel="stylesheet" href="<?php echo base_url();?>css/bootcamp/bootstrap.css" type="text/css" />
|
||||
@@ -78,7 +59,7 @@
|
||||
|
||||
</ul>
|
||||
|
||||
<form action=""><input type="text" placeholder="Search Callsign"></form>
|
||||
<form method="post" action="<?php echo site_url('search'); ?>"><input type="text" name="callsign" placeholder="Search Callsign"></form>
|
||||
|
||||
<?php if(($this->config->item('use_auth')) && ($this->session->userdata('user_type') >= 2)) { ?>
|
||||
<p class="pull-right">Logged in as <a href="#"><?php echo $this->session->userdata('user_callsign'); ?></a></p>
|
||||
|
||||
@@ -1,5 +1,7 @@
|
||||
<div id="container">
|
||||
|
||||
<h2>Search</h2>
|
||||
<div class="wrap_content">
|
||||
|
||||
<form method="post" action="" id="search_box" name="test">
|
||||
Callsign: <input type="text" id="callsign" name="callsign" value="" />
|
||||
</form>
|
||||
@@ -12,6 +14,19 @@
|
||||
<script type="text/javascript">
|
||||
i=0;
|
||||
$(document).ready(function(){
|
||||
|
||||
$('#partial_view').load("logbook/search_result/<?php echo $this->input->post('callsign'); ?>", function() {
|
||||
// after load trigger your fancybox
|
||||
$(".editbox").fancybox({
|
||||
'autoDimensions' : false,
|
||||
'width' : 450,
|
||||
'height' : 550,
|
||||
'transitionIn' : 'fade',
|
||||
'transitionOut' : 'fade',
|
||||
'type' : 'iframe',
|
||||
});
|
||||
});
|
||||
|
||||
$("#callsign").keyup(function(){
|
||||
if ($(this).val()) {
|
||||
|
||||
|
||||
Reference in New Issue
Block a user