mirror of
https://github.com/wavelog/wavelog.git
synced 2026-03-22 10:24:14 +00:00
Improved CSS, Log Viewing, and General Layout
This commit is contained in:
@@ -22,8 +22,8 @@ body { background-color: #e6e6e6; font-family: Arial, "Trebuchet MS", sans-serif
|
||||
td { padding: 1px;}
|
||||
.tr1 td { background:none repeat scroll 0 0 #F0FFFF; }
|
||||
.partial td, .logbook td { padding: 5px; }
|
||||
#nav { background-image: url('./images/nav_bg.gif'); height: 39px; color:#ffffff; border-bottom: 1px solid #9bc9ed; }
|
||||
.log_title { background-image: url('./images/grey_bg.png'); background-repeat: repeat-x; color: #439bf6; }
|
||||
#nav { background-image: url('<?php echo base_url(); ?>/images/nav_bg.gif'); height: 39px; color:#ffffff; border-bottom: 1px solid #9bc9ed; }
|
||||
.log_title { background-image: url('<?php echo base_url(); ?>/images/grey_bg.png'); background-repeat: repeat-x; color: #439bf6; }
|
||||
|
||||
/* Nav List CSS */
|
||||
ul#navlist { font: bold 15px "Trebuchet MS", sans-serif; list-style-type: none; margin: 0; margin-left: 10px; }
|
||||
|
||||
@@ -1,5 +1,27 @@
|
||||
<h2>Logbook</h2>
|
||||
<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({
|
||||
'width' : '75%',
|
||||
'height' : '75%',
|
||||
'autoScale' : false,
|
||||
'transitionIn' : 'none',
|
||||
'transitionOut' : 'none',
|
||||
'type' : 'iframe'
|
||||
});
|
||||
|
||||
|
||||
});
|
||||
|
||||
</script>
|
||||
|
||||
<h2>Logbook</h2>
|
||||
<?php if($this->session->flashdata('notice')) { ?>
|
||||
<div id="message" >
|
||||
<?php echo $this->session->flashdata('notice'); ?>
|
||||
@@ -18,23 +40,21 @@
|
||||
<td>Sent</td>
|
||||
<td>Recv</td>
|
||||
<td>Band</td>
|
||||
<td>Name</td>
|
||||
<td>Country</td>
|
||||
<td>Options</td>
|
||||
<td></td>
|
||||
</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><?php echo strtoupper($row->COL_CALL); ?></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>
|
||||
<td><?php echo $row->COL_RST_SENT; ?></td>
|
||||
<td><?php echo $row->COL_RST_RCVD; ?></td>
|
||||
<td><?php echo $row->COL_BAND; ?></td>
|
||||
<td><?php echo substr($row->COL_NAME, 0, 15); ?></td>
|
||||
<td><?php echo $row->COL_COUNTRY; ?></td>
|
||||
<td><a href="<?php echo site_url('qso/edit'); ?>/<?php echo $row->COL_PRIMARY_KEY; ?>" >Edit</a></td>
|
||||
<td><a 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>
|
||||
</tr>
|
||||
<?php $i++; } ?>
|
||||
|
||||
|
||||
103
application/views/view_log/qso.php
Normal file
103
application/views/view_log/qso.php
Normal file
@@ -0,0 +1,103 @@
|
||||
<html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en">
|
||||
<head>
|
||||
<title>View QSO Info</title>
|
||||
<link rel="stylesheet" href="<?php echo base_url();?>css/reset.css" type="text/css" />
|
||||
<style type="text/css" media="screen">
|
||||
body { font-family: Arial, "Trebuchet MS", sans-serif; }
|
||||
h1 { font-weight: bold; font-size: 23px; margin-top: 5px; margin-bottom: 10px; }
|
||||
|
||||
#info { float: left; width: 50%; }
|
||||
#stat { float: right; width: 50%; }
|
||||
td { padding: 5px; }
|
||||
</style>
|
||||
</head>
|
||||
|
||||
<body>
|
||||
<?php if ($query->num_rows() > 0) { foreach ($query->result() as $row) {
|
||||
?>
|
||||
<h1>QSO Information for <?php echo $row->COL_CALL; ?></h1>
|
||||
|
||||
<div id="wrap">
|
||||
<div id="info">
|
||||
<table width="100%">
|
||||
<tr>
|
||||
<td>Date/Time</td>
|
||||
<td><?php $timestamp = strtotime($row->COL_TIME_ON); echo date('d/m/y', $timestamp); $timestamp = strtotime($row->COL_TIME_ON); echo " at ".date('H:i', $timestamp); ?></td>
|
||||
</tr>
|
||||
|
||||
<tr>
|
||||
<td>Callsign</td>
|
||||
<td><?php echo $row->COL_CALL; ?></td>
|
||||
</tr>
|
||||
|
||||
<tr>
|
||||
<td>Band</td>
|
||||
<td><?php echo $row->COL_BAND; ?></td>
|
||||
</tr>
|
||||
|
||||
<?php if($row->COL_FREQ != null) { ?>
|
||||
<tr>
|
||||
<td>Freq:</td>
|
||||
<td><?php echo $row->COL_FREQ; ?></td>
|
||||
</tr>
|
||||
<?php } ?>
|
||||
|
||||
<tr>
|
||||
<td>Mode</td>
|
||||
<td><?php echo $row->COL_MODE; ?></td>
|
||||
</tr>
|
||||
|
||||
<tr>
|
||||
<td>RST Sent</td>
|
||||
<td><?php echo $row->COL_RST_SENT; ?></td>
|
||||
</tr>
|
||||
|
||||
<tr>
|
||||
<td>RST Recv</td>
|
||||
<td><?php echo $row->COL_RST_RCVD; ?></td>
|
||||
</tr>
|
||||
|
||||
<?php if($row->COL_GRIDSQUARE != null) { ?>
|
||||
<tr>
|
||||
<td>Comment</td>
|
||||
<td><?php echo $row->COL_GRIDSQUARE; ?></td>
|
||||
</tr>
|
||||
<?php } ?>
|
||||
|
||||
<?php if($row->COL_COMMENT != null) { ?>
|
||||
<tr>
|
||||
<td>Comment</td>
|
||||
<td><?php echo $row->COL_COMMENT; ?></td>
|
||||
</tr>
|
||||
<?php } ?>
|
||||
|
||||
<?php if($row->COL_SAT_NAME != null) { ?>
|
||||
<tr>
|
||||
<td>Sat Name:</td>
|
||||
<td><?php echo $row->COL_SAT_NAME; ?></td>
|
||||
</tr>
|
||||
<?php } ?>
|
||||
|
||||
<?php if($row->COL_SAT_MODE != null) { ?>
|
||||
<tr>
|
||||
<td>Sat Name:</td>
|
||||
<td><?php echo $row->COL_SAT_MODE; ?></td>
|
||||
</tr>
|
||||
<?php } ?>
|
||||
<?php if($row->COL_COUNTRY != null) { ?>
|
||||
<tr>
|
||||
<td>Country:</td>
|
||||
<td><?php echo $row->COL_COUNTRY; ?></td>
|
||||
</tr>
|
||||
<?php } ?>
|
||||
</table>
|
||||
</div>
|
||||
|
||||
<div id="stat">
|
||||
|
||||
</div>
|
||||
</div>
|
||||
<?php } } ?>
|
||||
</body>
|
||||
|
||||
</html>
|
||||
Reference in New Issue
Block a user