mirror of
https://github.com/wavelog/wavelog.git
synced 2026-03-22 10:24:14 +00:00
Added QSL card status icons to logbook view if logged in
This commit is contained in:
@@ -196,7 +196,7 @@ class Logbook_model extends CI_Model {
|
|||||||
|
|
||||||
|
|
||||||
function get_qsos($num, $offset) {
|
function get_qsos($num, $offset) {
|
||||||
$this->db->select('COL_CALL, COL_BAND, COL_TIME_ON, COL_RST_RCVD, COL_RST_SENT, COL_MODE, COL_NAME, COL_COUNTRY, COL_PRIMARY_KEY, COL_SAT_NAME, COL_GRIDSQUARE');
|
$this->db->select('COL_CALL, COL_BAND, COL_TIME_ON, COL_RST_RCVD, COL_RST_SENT, COL_MODE, COL_NAME, COL_COUNTRY, COL_PRIMARY_KEY, COL_SAT_NAME, COL_GRIDSQUARE, COL_QSL_RCVD, COL_QSL_SENT');
|
||||||
$this->db->order_by("COL_TIME_ON", "desc");
|
$this->db->order_by("COL_TIME_ON", "desc");
|
||||||
$query = $this->db->get($this->config->item('table_name'), $num, $offset);
|
$query = $this->db->get($this->config->item('table_name'), $num, $offset);
|
||||||
return $query;
|
return $query;
|
||||||
|
|||||||
@@ -91,7 +91,10 @@
|
|||||||
<td>Recv</td>
|
<td>Recv</td>
|
||||||
<td>Band</td>
|
<td>Band</td>
|
||||||
<td>Country</td>
|
<td>Country</td>
|
||||||
|
<?php if(($this->config->item('use_auth')) && ($this->session->userdata('user_type') >= 2)) { ?>
|
||||||
<td></td>
|
<td></td>
|
||||||
|
<td></td>
|
||||||
|
<?php } ?>
|
||||||
</tr>
|
</tr>
|
||||||
|
|
||||||
<?php $i = 0; foreach ($results->result() as $row) { ?>
|
<?php $i = 0; foreach ($results->result() as $row) { ?>
|
||||||
@@ -108,8 +111,26 @@
|
|||||||
<td><?php echo $row->COL_BAND; ?></td>
|
<td><?php echo $row->COL_BAND; ?></td>
|
||||||
<?php } ?>
|
<?php } ?>
|
||||||
<td><?php echo $row->COL_COUNTRY; ?></td>
|
<td><?php echo $row->COL_COUNTRY; ?></td>
|
||||||
<td><?php if(($this->config->item('use_auth')) && ($this->session->userdata('user_type') >= 2)) { ?><a class="editbox" 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" />
|
<?php if(($this->config->item('use_auth')) && ($this->session->userdata('user_type') >= 2)) { ?>
|
||||||
<?php } ?></a></td>
|
<td>
|
||||||
|
<?php
|
||||||
|
if($row->COL_QSL_RCVD == "Y" && $row->COL_QSL_SENT == "Y")
|
||||||
|
{
|
||||||
|
?>
|
||||||
|
<img src="<?php echo base_url();?>images/icons/qslcard.png" alt="QSL Cards Both sent and received" title="QSL Cards Both sent and received" />
|
||||||
|
<?php
|
||||||
|
} elseif($row->COL_QSL_RCVD == "Y") {
|
||||||
|
?>
|
||||||
|
<img src="<?php echo base_url();?>images/icons/qslcard_in.png" alt="QSL Cards received" title="QSL Cards received" />
|
||||||
|
<?php
|
||||||
|
} elseif($row->COL_QSL_SENT == "Y") {
|
||||||
|
?>
|
||||||
|
<img src="<?php echo base_url();?>images/icons/qslcard_sent.png" alt="QSL Cards sent" title="QSL Cards sent" />
|
||||||
|
<?php } ?>
|
||||||
|
</td>
|
||||||
|
<td><a class="editbox" 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>
|
||||||
|
<?php } ?>
|
||||||
</tr>
|
</tr>
|
||||||
<?php $i++; } ?>
|
<?php $i++; } ?>
|
||||||
|
|
||||||
|
|||||||
BIN
images/icons/qslcard_in.png
Normal file
BIN
images/icons/qslcard_in.png
Normal file
Binary file not shown.
|
After Width: | Height: | Size: 416 B |
BIN
images/icons/qslcard_sent.png
Normal file
BIN
images/icons/qslcard_sent.png
Normal file
Binary file not shown.
|
After Width: | Height: | Size: 391 B |
Reference in New Issue
Block a user