Skip to content
Permalink
Browse files

Logbook interface updated

  • Loading branch information...
magicbug committed May 14, 2019
1 parent 1ce6fdb commit e2ff5d77c1d99c67769d32adb871293d9e117c8b
@@ -2,13 +2,6 @@
class Dashboard extends CI_Controller {
/*
TODO
- DXCLuster Spots
- Breakdown of QSOs per band/mode
- Countries worked
*/
public function index()
{
// Check our version and run any migrations
@@ -47,9 +47,9 @@ function index()
// load the view
$data['page_title'] = "Logbook";
$this->load->view('layout/header', $data);
$this->load->view('interface_assets/header', $data);
$this->load->view('view_log/index');
$this->load->view('layout/footer');
$this->load->view('interface_assets/footer');
}
@@ -87,5 +87,25 @@
</script>
<?php } ?>

<?php if ($this->uri->segment(1) == "logbook") { ?>
<script type="text/javascript" src="<?php echo base_url();?>js/leaflet/leafembed.js"></script>
<script type="text/javascript">
<?php if($qra == "set") { ?>
var q_lat = <?php echo $qra_lat; ?>;
var q_lng = <?php echo $qra_lng; ?>;
<?php } else { ?>
var q_lat = 40.313043;
var q_lng = -32.695312;
<?php } ?>
var qso_loc = '<?php echo site_url('logbook/qso_map/25/'.$this->uri->segment(3)); ?>';
var q_zoom = 2;
initmap();
</script>
<?php } ?>

</body>
</html>
@@ -1,55 +1,6 @@
<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({
'autoDimensions' : false,
'width' : 700,
'height' : 300,
'transitionIn' : 'fade',
'transitionOut' : 'fade',
'type' : 'iframe'
});
$(".editbox").fancybox({
'autoDimensions' : false,
'width' : 600,
'height' : 550,
'transitionIn' : 'fade',
'transitionOut' : 'fade',
'type' : 'iframe',
onCleanup : function() {
return window.location.reload();
}
});
});
</script>

<script type="text/javascript" src="<?php echo base_url();?>js/leaflet/leafembed.js"></script>
<script type="text/javascript">
<?php if($qra == "set") { ?>
var q_lat = <?php echo $qra_lat; ?>;
var q_lng = <?php echo $qra_lng; ?>;
<?php } else { ?>
var q_lat = 40.313043;
var q_lng = -32.695312;
<?php } ?>
var qso_loc = '<?php echo site_url('logbook/qso_map/25/'.$this->uri->segment(3)); ?>';
var q_zoom = 2;
$(document).ready(function(){
initmap();
});
</script>

<div id="container">
<div class="container logbook">

<h2>Logbook</h2>

@@ -89,39 +89,32 @@
</table>

<?php if (isset($this->pagination)){ ?>
<div class="pagination">
<?php
$config['full_tag_open'] = '<ul class="pagination">';
$config['full_tag_close'] = '</ul>';
$config['attributes'] = ['class' => 'page-link'];
$config['first_link'] = false;
$config['last_link'] = false;
$config['first_tag_open'] = '<li class="page-item">';
$config['first_tag_close'] = '</li>';
$config['prev_link'] = '&laquo';
$config['prev_tag_open'] = '<li class="page-item">';
$config['prev_tag_close'] = '</li>';
$config['next_link'] = '&raquo';
$config['next_tag_open'] = '<li class="page-item">';
$config['next_tag_close'] = '</li>';
$config['last_tag_open'] = '<li class="page-item">';
$config['last_tag_close'] = '</li>';
$config['cur_tag_open'] = '<li class="page-item active"><a href="#" class="page-link">';
$config['cur_tag_close'] = '<span class="sr-only">(current)</span></a></li>';
$config['num_tag_open'] = '<li class="page-item">';
$config['num_tag_close'] = '</li>';
$this->pagination->initialize($config);
?>

<?php echo $this->pagination->create_links(); ?>
</div>

<?php } ?>

</div>
</div>

<style>
TD.qsl{
width: 20px;
}
TD.eqsl{
width: 33px;
}
.eqsl-green{
color: #00A000;
font-size: 1.1em;
}
.eqsl-red{
color: #F00;
font-size: 1.1em;
}
TD.lotw{
width: 33px;
}
.lotw-green{
color: #00A000;
font-size: 1.1em;
}
.lotw-red{
color: #F00;
font-size: 1.1em;
}
</style>
@@ -28,4 +28,34 @@

.search {
padding-top: 15px;
}

.logbook {
padding-top: 15px;
}

TD.qsl{
width: 20px;
}
TD.eqsl{
width: 33px;
}
.eqsl-green{
color: #00A000;
font-size: 1.1em;
}
.eqsl-red{
color: #F00;
font-size: 1.1em;
}
TD.lotw{
width: 33px;
}
.lotw-green{
color: #00A000;
font-size: 1.1em;
}
.lotw-red{
color: #F00;
font-size: 1.1em;
}

0 comments on commit e2ff5d7

Please sign in to comment.
You can’t perform that action at this time.