kopia lustrzana https://github.com/magicbug/Cloudlog
Logging: Change to single source file
rodzic
096faa3012
commit
e85ee13ffd
|
@ -49,11 +49,13 @@ class Frequency {
|
|||
'2m'=>array(
|
||||
'SSB'=>"144300000",
|
||||
'DATA'=>"144370000",
|
||||
'CW'=>"144.050000"),
|
||||
'CW'=>"144050000"),
|
||||
'FM'=>"144500000"),
|
||||
'70cm'=>array(
|
||||
'SSB'=>"432200000",
|
||||
'DATA'=>"432088000",
|
||||
'CW'=>"432050000"),
|
||||
'FM'=>"433500000"),
|
||||
'23cm'=>array(
|
||||
'SSB'=>"1296000000",
|
||||
'DATA'=>"1296138000",
|
||||
|
|
|
@ -9,6 +9,8 @@
|
|||
|
||||
<script type="text/javascript">
|
||||
|
||||
var manual = <?php echo $_GET['manual']; ?>;
|
||||
|
||||
$(document).ready(function() {
|
||||
$(".qsobox").fancybox({
|
||||
'autoDimensions' : false,
|
||||
|
@ -19,12 +21,15 @@
|
|||
'type' : 'iframe'
|
||||
});
|
||||
|
||||
if ( ! manual ) {
|
||||
$(function($) {
|
||||
var options = {
|
||||
utc: true
|
||||
utc: true,
|
||||
format: '%H:%M'
|
||||
}
|
||||
$('.input_time').jclock(options);
|
||||
});
|
||||
}
|
||||
});
|
||||
|
||||
</script>
|
||||
|
@ -48,9 +53,9 @@
|
|||
<div class="row show-grid">
|
||||
<div class="span6">
|
||||
|
||||
<h2>Add QSO</h2>
|
||||
<h2>Add QSO <?php echo ($_GET['manual'] == 1 ? "(post entry)" : "") ?></h2>
|
||||
|
||||
<form id="qso_input" method="post" action="<?php echo site_url('qso'); ?>" name="qsos">
|
||||
<form id="qso_input" method="post" action="<?php echo site_url('qso') . "?manual=" . $_GET['manual']; ?>" name="qsos">
|
||||
<input type="hidden" id="dxcc_id" name="dxcc_id" value=""/>
|
||||
<input type="hidden" id="cqz" name="cqz" value=""/>
|
||||
|
||||
|
@ -58,7 +63,16 @@
|
|||
|
||||
<tr>
|
||||
<td class="title">Date</td>
|
||||
<td><input class="input_date" type="text" name="start_date" value="<?php echo date('d-m-Y'); ?>" size="10" /> <input class="input_time" type="text" name="start_time" value="" size="7" /></td>
|
||||
<td>
|
||||
<input class="input_date" type="text" name="start_date" value="<?php echo date('d-m-Y'); ?>" size="10" <?php echo ($_GET['manual'] == 0 ? "disabled" : ""); ?> />
|
||||
<input class="input_time" type="text" id="start_date" name="start_time" value="<?php echo date('H:i'); ?>" size="7" <?php echo ($_GET['manual'] == 0 ? "disabled" : ""); ?> />
|
||||
|
||||
<?php if ( $_GET['manual'] == 0 ) { ?>
|
||||
<input class="input_time" type="hidden" id="start_time" name="start_time"value="<?php echo date('H:i'); ?>" />
|
||||
<input class="input_date" type="hidden" id="start_date" name="start_date" value="<?php echo date('d-m-Y'); ?>" />
|
||||
<?php } ?>
|
||||
|
||||
</td>
|
||||
</tr>
|
||||
|
||||
<tr>
|
||||
|
@ -261,8 +275,7 @@
|
|||
|
||||
<table class="zebra-striped" width="100%">
|
||||
<tr class="log_title titles">
|
||||
<td>Date</td>
|
||||
<td>Time</td>
|
||||
<td>Date/Time</td>
|
||||
<td>Call</td>
|
||||
<td>Mode</td>
|
||||
<td>Sent</td>
|
||||
|
@ -273,8 +286,7 @@
|
|||
<?php $i = 0;
|
||||
foreach ($query->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 $row->COL_TIME_ON; ?></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>
|
||||
|
@ -297,7 +309,21 @@
|
|||
|
||||
|
||||
<script type="text/javascript">
|
||||
|
||||
function delay(callback, ms) {
|
||||
var timer = 0;
|
||||
return function() {
|
||||
var context = this, args = arguments;
|
||||
clearTimeout(timer);
|
||||
timer = setTimeout(function () {
|
||||
callback.apply(context, args);
|
||||
}, ms || 0);
|
||||
};
|
||||
}
|
||||
|
||||
i=0;
|
||||
typeDelay=1000;
|
||||
|
||||
$(document).ready(function(){
|
||||
|
||||
// Set the focus input to the callsign field
|
||||
|
@ -418,11 +444,8 @@
|
|||
});
|
||||
|
||||
/* On Callsign Change */
|
||||
$("#callsign").focusout(function(){
|
||||
$("#callsign").keyup(delay(function(){
|
||||
if ($(this).val()) {
|
||||
/* Find Callsign Matches */
|
||||
$('#partial_view').load("logbook/partial/" + $(this).val()).fadeIn("slow");
|
||||
|
||||
/* Find and populate DXCC */
|
||||
$.get('logbook/find_dxcc/' + $(this).val(), function(result) {
|
||||
//$('#country').val(result);
|
||||
|
@ -461,8 +484,20 @@
|
|||
});
|
||||
}
|
||||
|
||||
/* Find Callsign Matches */
|
||||
$('#partial_view').load("logbook/partial/" + $(this).val()).fadeIn("slow");
|
||||
|
||||
} else {
|
||||
/* Reset fields ... */
|
||||
$('#country').val("");
|
||||
$('#dxcc_id').val("");
|
||||
$('#cqz').val("");
|
||||
$('#name').val("");
|
||||
$('#qth').val("");
|
||||
$('#iota_ref').val("");
|
||||
$('#partial_view').load("logbook/partial/");
|
||||
}
|
||||
});
|
||||
}, typeDelay));
|
||||
|
||||
|
||||
// Change report based on mode
|
||||
|
|
|
@ -1,4 +1,4 @@
|
|||
<table width="100%">
|
||||
<table class="zebra-striped" width="100%">
|
||||
<tr class="titles">
|
||||
<td>Date</td>
|
||||
<td>Time</td>
|
||||
|
|
|
@ -69,7 +69,7 @@ td.item { padding-bottom: 5px; }
|
|||
.title { padding-top: 5px; padding-bottom: 5px; color: #0073EA; font-weight: bold; }
|
||||
#qso_input { border: 1px solid #dddddd; margin: 5px; padding: 2px; }
|
||||
.input_date { width: 70px; }
|
||||
.input_time { width: 54px; }
|
||||
.input_time { width: 32px; }
|
||||
#locator { width: 55px; text-transform: uppercase; }
|
||||
#country { border: none; }
|
||||
#locator_info { font-size: 13px; }
|
||||
|
|
|
@ -22,7 +22,7 @@ table .title { font-weight: bold; color: #439BF6; }
|
|||
/* Add QSO CSS */
|
||||
.rst { width: 50px !important; }
|
||||
.input_date { width: 70px !important; }
|
||||
.input_time { width: 55px !important; }
|
||||
.input_time { width: 32px !important; }
|
||||
.band { width: 80px; }
|
||||
.mode { width: 80px; }
|
||||
#callsign { text-transform: uppercase; }
|
||||
|
|
Ładowanie…
Reference in New Issue