Skip to content

Commit

Permalink
Logbook interface updated
Browse files Browse the repository at this point in the history
  • Loading branch information
magicbug committed May 14, 2019
1 parent 1ce6fdb commit e2ff5d7
Show file tree
Hide file tree
Showing 6 changed files with 77 additions and 90 deletions.
7 changes: 0 additions & 7 deletions application/controllers/Dashboard.php
Original file line number Original file line Diff line number Diff line change
Expand Up @@ -2,13 +2,6 @@


class Dashboard extends CI_Controller { class Dashboard extends CI_Controller {


/*
TODO
- DXCLuster Spots
- Breakdown of QSOs per band/mode
- Countries worked
*/

public function index() public function index()
{ {
// Check our version and run any migrations // Check our version and run any migrations
Expand Down
4 changes: 2 additions & 2 deletions application/controllers/Logbook.php
Original file line number Original file line Diff line number Diff line change
Expand Up @@ -47,9 +47,9 @@ function index()
// load the view // load the view
$data['page_title'] = "Logbook"; $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('view_log/index');
$this->load->view('layout/footer'); $this->load->view('interface_assets/footer');


} }


Expand Down
20 changes: 20 additions & 0 deletions application/views/interface_assets/footer.php
Original file line number Original file line Diff line number Diff line change
Expand Up @@ -87,5 +87,25 @@
</script> </script>
<?php } ?> <?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> </body>
</html> </html>
51 changes: 1 addition & 50 deletions application/views/view_log/index.php
Original file line number Original file line Diff line number Diff line change
@@ -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" /> <div class="container logbook">

<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">


<h2>Logbook</h2> <h2>Logbook</h2>


Expand Down
55 changes: 24 additions & 31 deletions application/views/view_log/partial/log.php
Original file line number Original file line Diff line number Diff line change
Expand Up @@ -89,39 +89,32 @@
</table> </table>


<?php if (isset($this->pagination)){ ?> <?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(); ?> <?php echo $this->pagination->create_links(); ?>
</div>
<?php } ?> <?php } ?>


</div> </div>
</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>
30 changes: 30 additions & 0 deletions assets/css/general.css
Original file line number Original file line Diff line number Diff line change
Expand Up @@ -28,4 +28,34 @@


.search { .search {
padding-top: 15px; 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.