2011-07-06 16:15:48 +00:00
|
|
|
<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" />
|
|
|
|
|
|
|
|
<script type="text/javascript">
|
|
|
|
$(document).ready(function() {
|
|
|
|
$(".qsobox").fancybox({
|
2011-09-28 15:41:45 +00:00
|
|
|
'autoDimensions' : false,
|
|
|
|
'width' : 700,
|
|
|
|
'height' : 300,
|
|
|
|
'transitionIn' : 'fade',
|
|
|
|
'transitionOut' : 'fade',
|
2011-07-06 16:15:48 +00:00
|
|
|
'type' : 'iframe'
|
|
|
|
});
|
2011-10-18 22:06:34 +00:00
|
|
|
|
|
|
|
$(".editbox").fancybox({
|
|
|
|
'autoDimensions' : false,
|
2011-10-21 18:48:30 +00:00
|
|
|
'width' : 450,
|
2011-10-18 22:06:34 +00:00
|
|
|
'height' : 550,
|
|
|
|
'transitionIn' : 'fade',
|
|
|
|
'transitionOut' : 'fade',
|
|
|
|
'type' : 'iframe',
|
|
|
|
onCleanup : function() {
|
|
|
|
return window.location.reload();
|
|
|
|
}
|
|
|
|
});
|
|
|
|
|
2011-07-06 16:15:48 +00:00
|
|
|
});
|
|
|
|
</script>
|
|
|
|
|
2011-10-04 15:09:21 +00:00
|
|
|
<script type="text/javascript">
|
|
|
|
function create_map() {
|
2012-11-30 16:16:43 +00:00
|
|
|
<?php if($qra == "set") { ?>
|
|
|
|
var latlng = new google.maps.LatLng(<?php echo $qra_lat; ?>, <?php echo $qra_lng; ?>);
|
|
|
|
<?php } else { ?>
|
|
|
|
var latlng = new google.maps.LatLng(40.313043, -32.695312);
|
|
|
|
<?php } ?>
|
2011-10-04 15:09:21 +00:00
|
|
|
var myOptions = {
|
|
|
|
zoom: 3,
|
|
|
|
center: latlng,
|
|
|
|
mapTypeId: google.maps.MapTypeId.ROADMAP
|
|
|
|
};
|
|
|
|
var infowindow = new google.maps.InfoWindow();
|
|
|
|
|
|
|
|
var marker, i;
|
|
|
|
|
|
|
|
/* Get QSO points via json*/
|
2011-11-24 16:14:54 +00:00
|
|
|
$.getJSON("<?php echo site_url('logbook/qso_map/25/'.$this->uri->segment(3)); ?>", function(data) {
|
2011-10-04 15:09:21 +00:00
|
|
|
|
|
|
|
$.each(data.markers, function(i, val) {
|
|
|
|
/* Create Markers */
|
|
|
|
marker = new google.maps.Marker({
|
|
|
|
position: new google.maps.LatLng(this.lat, this.lng),
|
|
|
|
map: map
|
|
|
|
});
|
|
|
|
|
|
|
|
/* Store Popup Text */
|
|
|
|
var content = this.html;
|
|
|
|
|
|
|
|
/* Create Popups */
|
|
|
|
google.maps.event.addListener(marker, 'click', (function(marker, i) {
|
|
|
|
return function() {
|
|
|
|
infowindow.setContent(content);
|
|
|
|
infowindow.open(map, marker);
|
|
|
|
}
|
|
|
|
})(marker, i));
|
|
|
|
});
|
|
|
|
});
|
|
|
|
|
|
|
|
var map = new google.maps.Map(document.getElementById("map"),
|
|
|
|
myOptions);
|
|
|
|
}
|
|
|
|
|
|
|
|
$(document).ready(function(){
|
|
|
|
create_map();
|
|
|
|
});
|
|
|
|
</script>
|
|
|
|
|
2011-11-06 23:09:51 +00:00
|
|
|
<div id="container">
|
2011-10-04 15:09:21 +00:00
|
|
|
|
2011-11-06 23:09:51 +00:00
|
|
|
<h2>Logbook</h2>
|
2011-04-25 15:24:01 +00:00
|
|
|
|
2011-11-06 23:09:51 +00:00
|
|
|
<!-- Map -->
|
|
|
|
<div id="map" style="width: 100%; height: 300px"></div>
|
|
|
|
|
|
|
|
<table width="100%">
|
|
|
|
<tr class="titles">
|
|
|
|
<td>Date</td>
|
|
|
|
<td>Time</td>
|
|
|
|
<td>Call</td>
|
|
|
|
<td>Mode</td>
|
|
|
|
<td>Sent</td>
|
|
|
|
<td>Recv</td>
|
|
|
|
<td>Band</td>
|
|
|
|
<td>Country</td>
|
2012-05-20 14:54:05 +00:00
|
|
|
<?php if(($this->config->item('use_auth')) && ($this->session->userdata('user_type') >= 2)) { ?>
|
2011-11-06 23:09:51 +00:00
|
|
|
<td></td>
|
2012-05-20 14:54:05 +00:00
|
|
|
<td></td>
|
|
|
|
<?php } ?>
|
2011-11-06 23:09:51 +00:00
|
|
|
</tr>
|
|
|
|
|
|
|
|
<?php $i = 0; foreach ($results->result() as $row) { ?>
|
|
|
|
<?php echo '<tr class="tr'.($i & 1).'">'; ?>
|
|
|
|
<td><?php $timestamp = strtotime($row->COL_TIME_ON); echo date('d/m/y', $timestamp); ?></td>
|
|
|
|
<td><?php $timestamp = strtotime($row->COL_TIME_ON); echo date('H:i', $timestamp); ?></td>
|
|
|
|
<td><a class="qsobox" href="<?php echo site_url('logbook/view')."/".$row->COL_PRIMARY_KEY; ?>"><?php echo strtoupper($row->COL_CALL); ?></a></td>
|
|
|
|
<td><?php echo $row->COL_MODE; ?></td>
|
2012-11-13 20:20:26 +00:00
|
|
|
<td><?php echo $row->COL_RST_SENT; ?> <?php if ($row->COL_STX_STRING) { ?><span class="label"><?php echo $row->COL_STX_STRING;?></span><?php } ?></td>
|
|
|
|
<td><?php echo $row->COL_RST_RCVD; ?> <?php if ($row->COL_SRX_STRING) { ?><span class="label"><?php echo $row->COL_SRX_STRING;?></span><?php } ?></td>
|
2011-11-06 23:09:51 +00:00
|
|
|
<?php if($row->COL_SAT_NAME != null) { ?>
|
|
|
|
<td><?php echo $row->COL_SAT_NAME; ?></td>
|
|
|
|
<?php } else { ?>
|
|
|
|
<td><?php echo $row->COL_BAND; ?></td>
|
|
|
|
<?php } ?>
|
|
|
|
<td><?php echo $row->COL_COUNTRY; ?></td>
|
2012-05-20 14:54:05 +00:00
|
|
|
<?php if(($this->config->item('use_auth')) && ($this->session->userdata('user_type') >= 2)) { ?>
|
|
|
|
<td>
|
|
|
|
<?php
|
|
|
|
if($row->COL_QSL_RCVD == "Y" && $row->COL_QSL_SENT == "Y")
|
|
|
|
{
|
|
|
|
?>
|
|
|
|
<img src="<?php echo base_url();?>images/icons/qslcard.png" alt="QSL Cards Both sent and received" title="QSL Cards Both sent and received" />
|
|
|
|
<?php
|
|
|
|
} elseif($row->COL_QSL_RCVD == "Y") {
|
|
|
|
?>
|
|
|
|
<img src="<?php echo base_url();?>images/icons/qslcard_in.png" alt="QSL Cards received" title="QSL Cards received" />
|
|
|
|
<?php
|
|
|
|
} elseif($row->COL_QSL_SENT == "Y") {
|
|
|
|
?>
|
|
|
|
<img src="<?php echo base_url();?>images/icons/qslcard_sent.png" alt="QSL Cards sent" title="QSL Cards sent" />
|
|
|
|
<?php } ?>
|
|
|
|
</td>
|
|
|
|
<td><a class="editbox" href="<?php echo site_url('qso/edit'); ?>/<?php echo $row->COL_PRIMARY_KEY; ?>" ><img src="<?php echo base_url(); ?>/images/application_edit.png" width="16" height="16" alt="Edit" />
|
|
|
|
</a></td>
|
|
|
|
<?php } ?>
|
2011-11-06 23:09:51 +00:00
|
|
|
</tr>
|
|
|
|
<?php $i++; } ?>
|
|
|
|
|
|
|
|
</table>
|
2011-04-25 15:24:01 +00:00
|
|
|
|
2011-11-06 23:09:51 +00:00
|
|
|
<div class="pagination">
|
2011-09-27 19:18:19 +00:00
|
|
|
<?php echo $this->pagination->create_links(); ?>
|
|
|
|
</div>
|
|
|
|
|
2011-08-19 17:24:56 +00:00
|
|
|
</div>
|