Fix QSL marking functions
这个提交包含在:
父节点
ff3c2a798f
当前提交
d09b9282fb
共有 3 个文件被更改,包括 8 次插入 和 8 次删除
|
|
@ -113,7 +113,7 @@ $ci =& get_instance();
|
||||||
$custom_date_format = $this->config->item('qso_date_format');
|
$custom_date_format = $this->config->item('qso_date_format');
|
||||||
}
|
}
|
||||||
?>
|
?>
|
||||||
<?php echo '<tr class="tr'.($i & 1).'" id ="qso_'. $row->COL_PRIMARY_KEY .'">'; ?>
|
<?php echo '<tr class="tr'.($i & 1).'" id="qso_'. $row->COL_PRIMARY_KEY .'">'; ?>
|
||||||
<td><?php $timestamp = strtotime($row->COL_TIME_ON); echo date($custom_date_format, $timestamp); ?></td>
|
<td><?php $timestamp = strtotime($row->COL_TIME_ON); echo date($custom_date_format, $timestamp); ?></td>
|
||||||
<?php if(($this->config->item('use_auth') && ($this->session->userdata('user_type') >= 2)) || $this->config->item('use_auth') === FALSE || ($this->config->item('show_time'))) { ?>
|
<?php if(($this->config->item('use_auth') && ($this->session->userdata('user_type') >= 2)) || $this->config->item('use_auth') === FALSE || ($this->config->item('show_time'))) { ?>
|
||||||
<td><?php $timestamp = strtotime($row->COL_TIME_ON); echo date('H:i', $timestamp); ?></td>
|
<td><?php $timestamp = strtotime($row->COL_TIME_ON); echo date('H:i', $timestamp); ?></td>
|
||||||
|
|
@ -207,7 +207,7 @@ $ci =& get_instance();
|
||||||
if(($this->config->item('use_auth')) && ($this->session->userdata('user_type') >= 2)) { ?>
|
if(($this->config->item('use_auth')) && ($this->session->userdata('user_type') >= 2)) { ?>
|
||||||
|
|
||||||
<?php
|
<?php
|
||||||
echo '<td style=\'text-align: center\' class="qsl">';
|
echo '<td id="qsl_'.$row->COL_PRIMARY_KEY.'" style=\'text-align: center\' class="qsl">';
|
||||||
echo '<span ';
|
echo '<span ';
|
||||||
if ($row->COL_QSL_SENT != "N") {
|
if ($row->COL_QSL_SENT != "N") {
|
||||||
if ($row->COL_QSLSDATE != null) {
|
if ($row->COL_QSLSDATE != null) {
|
||||||
|
|
|
||||||
|
|
@ -92,7 +92,7 @@ function echoQrbCalcLink($mygrid, $grid, $vucc) {
|
||||||
// Get Default date format from /config/cloudlog.php
|
// Get Default date format from /config/cloudlog.php
|
||||||
$custom_date_format = $this->config->item('qso_date_format');
|
$custom_date_format = $this->config->item('qso_date_format');
|
||||||
}
|
}
|
||||||
echo '<tr class="tr'.($i & 1).'" id ="qso_'. $row->COL_PRIMARY_KEY .'">'; ?>
|
echo '<tr class="tr'.($i & 1).'" id="qso_'. $row->COL_PRIMARY_KEY .'">'; ?>
|
||||||
<td><?php $timestamp = strtotime($row->COL_TIME_ON); echo date($custom_date_format, $timestamp); ?></td>
|
<td><?php $timestamp = strtotime($row->COL_TIME_ON); echo date($custom_date_format, $timestamp); ?></td>
|
||||||
<?php if(($this->config->item('use_auth') && ($this->session->userdata('user_type') >= 2)) || $this->config->item('use_auth') === FALSE || ($this->config->item('show_time'))) { ?>
|
<?php if(($this->config->item('use_auth') && ($this->session->userdata('user_type') >= 2)) || $this->config->item('use_auth') === FALSE || ($this->config->item('show_time'))) { ?>
|
||||||
<td><?php $timestamp = strtotime($row->COL_TIME_ON); echo date('H:i', $timestamp); ?></td>
|
<td><?php $timestamp = strtotime($row->COL_TIME_ON); echo date('H:i', $timestamp); ?></td>
|
||||||
|
|
@ -109,7 +109,7 @@ function echoQrbCalcLink($mygrid, $grid, $vucc) {
|
||||||
echo_table_col($row, $this->session->userdata('user_column5'));
|
echo_table_col($row, $this->session->userdata('user_column5'));
|
||||||
|
|
||||||
if(($this->config->item('use_auth')) && ($this->session->userdata('user_type') >= 2)) { ?>
|
if(($this->config->item('use_auth')) && ($this->session->userdata('user_type') >= 2)) { ?>
|
||||||
<td class="qsl">
|
<td id="qsl_<?php echo $row->COL_PRIMARY_KEY; ?>" class="qsl">
|
||||||
<span <?php if ($row->COL_QSL_SENT != "N") {
|
<span <?php if ($row->COL_QSL_SENT != "N") {
|
||||||
switch ($row->COL_QSL_SENT) {
|
switch ($row->COL_QSL_SENT) {
|
||||||
case "Y":
|
case "Y":
|
||||||
|
|
|
||||||
|
|
@ -7,7 +7,7 @@ function qsl_rcvd(id, method) {
|
||||||
},
|
},
|
||||||
success: function(data) {
|
success: function(data) {
|
||||||
if (data.message == 'OK') {
|
if (data.message == 'OK') {
|
||||||
$("#qso_" + id).find("td:eq(8)").find("span:eq(1)").attr('class', 'qsl-green'); // Paints arrow green
|
$("#qsl_" + id).find("span:eq(1)").attr('class', 'qsl-green'); // Paints arrow green
|
||||||
$(".qsl_rcvd_" + id).remove(); // removes choice from menu
|
$(".qsl_rcvd_" + id).remove(); // removes choice from menu
|
||||||
}
|
}
|
||||||
else {
|
else {
|
||||||
|
|
@ -26,7 +26,7 @@ function qsl_sent(id, method) {
|
||||||
},
|
},
|
||||||
success: function(data) {
|
success: function(data) {
|
||||||
if (data.message == 'OK') {
|
if (data.message == 'OK') {
|
||||||
$("#qso_" + id).find("td:eq(8)").find("span:eq(0)").attr('class', 'qsl-green'); // Paints arrow green
|
$("#qsl_" + id).find("span:eq(0)").attr('class', 'qsl-green'); // Paints arrow green
|
||||||
$(".qsl_sent_" + id).remove(); // removes choice from menu
|
$(".qsl_sent_" + id).remove(); // removes choice from menu
|
||||||
}
|
}
|
||||||
else {
|
else {
|
||||||
|
|
@ -47,7 +47,7 @@ function qsl_requested(id, method) {
|
||||||
},
|
},
|
||||||
success: function(data) {
|
success: function(data) {
|
||||||
if (data.message == 'OK') {
|
if (data.message == 'OK') {
|
||||||
$("#qso_" + id).find("td:eq(8)").find("span:eq(0)").attr('class', 'qsl-yellow'); // Paints arrow green
|
$("#qsl_" + id).find("span:eq(0)").attr('class', 'qsl-yellow'); // Paints arrow yellow
|
||||||
}
|
}
|
||||||
else {
|
else {
|
||||||
$(".bootstrap-dialog-message").append('<div class="alert alert-danger"><a href="#" class="close" data-dismiss="alert" aria-label="close">×</a>You are not allowed to update QSL status!</div>');
|
$(".bootstrap-dialog-message").append('<div class="alert alert-danger"><a href="#" class="close" data-dismiss="alert" aria-label="close">×</a>You are not allowed to update QSL status!</div>');
|
||||||
|
|
@ -67,7 +67,7 @@ function qsl_ignore(id, method) {
|
||||||
},
|
},
|
||||||
success: function(data) {
|
success: function(data) {
|
||||||
if (data.message == 'OK') {
|
if (data.message == 'OK') {
|
||||||
$("#qso_" + id).find("td:eq(8)").find("span:eq(0)").attr('class', 'qsl-grey'); // Paints arrow grey
|
$("#qsl_" + id).find("span:eq(0)").attr('class', 'qsl-grey'); // Paints arrow grey
|
||||||
}
|
}
|
||||||
else {
|
else {
|
||||||
$(".bootstrap-dialog-message").append('<div class="alert alert-danger"><a href="#" class="close" data-dismiss="alert" aria-label="close">×</a>You are not allowed to update QSL status!</div>');
|
$(".bootstrap-dialog-message").append('<div class="alert alert-danger"><a href="#" class="close" data-dismiss="alert" aria-label="close">×</a>You are not allowed to update QSL status!</div>');
|
||||||
|
|
|
||||||
正在加载…
在新工单中引用