2011-07-24 22:33:08 +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:47:20 +00:00
|
|
|
'autoDimensions' : false,
|
|
|
|
'width' : 700,
|
|
|
|
'height' : 300,
|
|
|
|
'transitionIn' : 'fade',
|
|
|
|
'transitionOut' : 'fade',
|
2011-07-24 22:33:08 +00:00
|
|
|
'type' : 'iframe'
|
|
|
|
});
|
|
|
|
});
|
|
|
|
|
|
|
|
</script>
|
2011-09-29 17:07: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-09-29 17:07: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 15:37:47 +00:00
|
|
|
$.getJSON("<?php echo site_url('dashboard/map'); ?>", function(data) {
|
2011-09-29 17:07: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-06-17 12:52:00 +00:00
|
|
|
|
2011-08-22 18:31:53 +00:00
|
|
|
<?php if(($this->config->item('use_auth') && ($this->session->userdata('user_type') >= 2)) || $this->config->item('use_auth') === FALSE) { ?>
|
2011-11-06 23:09:51 +00:00
|
|
|
<div class="alert-message success">
|
|
|
|
<p>You have had <strong><?php echo $todays_qsos; ?></strong> QSOs Today!</p>
|
|
|
|
</div>
|
2011-08-22 18:31:53 +00:00
|
|
|
<?php } ?>
|
2011-06-17 12:52:00 +00:00
|
|
|
|
2011-11-06 23:09:51 +00:00
|
|
|
<!-- Map -->
|
|
|
|
<div id="map" style="width: 100%; height: 300px"></div>
|
|
|
|
|
|
|
|
<!-- Log Data -->
|
2011-11-08 15:45:22 +00:00
|
|
|
<div class="row" style="margin-top: 10px;">
|
|
|
|
<div class="span10" style="padding-left: 15px; padding-right: 25px; border-right: 1px solid #dfdfdf;">
|
2011-11-06 23:09:51 +00:00
|
|
|
<table width="100%" class="zebra-striped">
|
|
|
|
<tr class="titles">
|
|
|
|
<td>Date</td>
|
|
|
|
<td>Time</td>
|
|
|
|
<td>Call</td>
|
|
|
|
<td>Mode</td>
|
|
|
|
<td>Sent</td>
|
|
|
|
<td>Recv</td>
|
|
|
|
<td>Band</td>
|
|
|
|
</tr>
|
|
|
|
|
|
|
|
<?php $i = 0;
|
|
|
|
foreach ($last_five_qsos->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) { ?>
|
2011-11-25 17:38:20 +00:00
|
|
|
<td><?php echo $row->COL_SAT_NAME; ?></td>
|
2011-11-06 23:09:51 +00:00
|
|
|
<?php } else { ?>
|
2014-01-08 18:05:14 +00:00
|
|
|
<td><?php echo strtolower($row->COL_BAND); ?></td>
|
2011-11-06 23:09:51 +00:00
|
|
|
<?php } ?>
|
|
|
|
</tr>
|
|
|
|
<?php $i++; } ?>
|
|
|
|
</table>
|
|
|
|
</div>
|
|
|
|
|
|
|
|
<div class="span5">
|
|
|
|
<table width="100%" class="zebra-striped">
|
|
|
|
<tr class="titles">
|
2012-05-20 14:24:27 +00:00
|
|
|
<td colspan="2"><span class="icon_stats">QSOs</span></td>
|
2011-11-06 23:09:51 +00:00
|
|
|
</tr>
|
|
|
|
|
|
|
|
<tr>
|
|
|
|
<td>Total </td>
|
|
|
|
<td><?php echo $total_qsos; ?></td>
|
|
|
|
</tr>
|
|
|
|
|
|
|
|
<tr>
|
|
|
|
<td>Year</td>
|
|
|
|
<td><?php echo $year_qsos; ?></td>
|
|
|
|
</tr>
|
|
|
|
|
|
|
|
<tr>
|
|
|
|
<td>Month</td>
|
|
|
|
<td><?php echo $month_qsos; ?></td>
|
|
|
|
</tr>
|
|
|
|
|
|
|
|
<tr>
|
|
|
|
<td></td>
|
|
|
|
<td></td>
|
|
|
|
</tr>
|
|
|
|
|
|
|
|
<tr class="titles">
|
2012-08-22 16:45:10 +00:00
|
|
|
<td colspan="2"><span class="icon_world">Countries</span></td>
|
2011-11-06 23:09:51 +00:00
|
|
|
</tr>
|
2011-09-21 21:17:24 +00:00
|
|
|
|
2011-11-06 23:09:51 +00:00
|
|
|
<tr>
|
|
|
|
<td>Worked</td>
|
|
|
|
<td><?php echo $total_countrys; ?></td>
|
|
|
|
</tr>
|
2011-09-21 21:17:24 +00:00
|
|
|
|
2011-11-06 23:09:51 +00:00
|
|
|
<tr>
|
|
|
|
<td>Needed</td>
|
|
|
|
<td><?php $dxcc = 340 - $total_countrys; echo $dxcc; ?></td>
|
|
|
|
</tr>
|
2011-09-21 21:17:24 +00:00
|
|
|
|
2011-11-06 23:09:51 +00:00
|
|
|
<tr>
|
|
|
|
<td></td>
|
|
|
|
<td></td>
|
|
|
|
</tr>
|
|
|
|
|
|
|
|
<tr class="titles">
|
2012-05-20 14:24:27 +00:00
|
|
|
<td colspan="2"><span class="icon_qsl">QSL Cards</span></td>
|
2011-11-06 23:09:51 +00:00
|
|
|
</tr>
|
|
|
|
|
|
|
|
<tr>
|
|
|
|
<td>Sent</td>
|
|
|
|
<td><?php echo $total_qsl_sent; ?></td>
|
|
|
|
</tr>
|
|
|
|
|
|
|
|
<tr>
|
|
|
|
<td>Received</td>
|
|
|
|
<td><?php echo $total_qsl_recv; ?></td>
|
|
|
|
</tr>
|
|
|
|
|
|
|
|
<tr>
|
|
|
|
<td>Requested</td>
|
|
|
|
<td><?php echo $total_qsl_requested; ?></td>
|
|
|
|
</tr>
|
|
|
|
</table>
|
|
|
|
</div>
|
|
|
|
</div>
|
|
|
|
|
2011-09-30 12:34:06 +00:00
|
|
|
</div>
|