Cloudlog/application/views/search/main.php

74 lines
1.8 KiB
PHP
Raw Normal View History

2011-11-07 17:53:35 +00:00
<div id="container">
<h2>Search</h2>
2011-11-07 17:53:35 +00:00
<form method="post" action="" id="search_box" name="test">
Callsign: <input type="text" id="callsign" name="callsign" value="" />
</form>
<div id="partial_view"></div>
</div>
<script type="text/javascript">
i=0;
$(document).ready(function(){
2011-11-07 17:53:35 +00:00
$('#partial_view').load("logbook/search_result/<?php echo $this->input->post('callsign'); ?>", function() {
// after load trigger your fancybox
2016-02-12 16:31:29 +00:00
$(".qsobox").fancybox({
2011-11-07 17:53:35 +00:00
'autoDimensions' : false,
2016-02-12 16:31:29 +00:00
'width' : 700,
'height' : 300,
2011-11-07 17:53:35 +00:00
'transitionIn' : 'fade',
'transitionOut' : 'fade',
2016-02-12 16:31:29 +00:00
'type' : 'iframe'
2011-11-07 17:53:35 +00:00
});
2011-10-18 22:06:34 +00:00
$(".editbox").fancybox({
'autoDimensions' : false,
'width' : 450,
2011-10-18 22:06:34 +00:00
'height' : 550,
'transitionIn' : 'fade',
'transitionOut' : 'fade',
'type' : 'iframe',
});
});
2016-02-12 16:31:29 +00:00
$("#callsign").keyup(function(){
if ($(this).val()) {
$('#partial_view').load("logbook/search_result/" + $(this).val(), function() {
$(".qsobox").fancybox({
'autoDimensions' : false,
'width' : 700,
'height' : 300,
'transitionIn' : 'fade',
'transitionOut' : 'fade',
'type' : 'iframe'
});
// after load trigger your fancybox
$(".editbox").fancybox({
'autoDimensions' : false,
'width' : 450,
'height' : 550,
'transitionIn' : 'fade',
'transitionOut' : 'fade',
'type' : 'iframe',
});
});
}
});
});
2011-10-18 22:06:34 +00:00
</script>
<script type="text/javascript" src="<?php echo base_url() ;?>/fancybox/jquery.mousewheel-3.0.4.pack.js"></script>
<script type="text/javascript" src="<?php echo base_url() ;?>/fancybox/jquery.fancybox-1.3.4.pack.js"></script>
<link rel="stylesheet" type="text/css" href="<?php echo base_url() ;?>/fancybox/jquery.fancybox-1.3.4.css" media="screen" />