Merge pull request #2045 from m0urs/105-display-notes-tab-in-qso-data-view-if-a-note-exists-for-a-qso

Show Notes tab in "QSO data" view if a note exists
pull/2028/head
Peter Goodhall 2023-03-21 15:22:26 +00:00 zatwierdzone przez GitHub
commit e43e4616ae
Nie znaleziono w bazie danych klucza dla tego podpisu
ID klucza GPG: 4AEE18F83AFDEB23
1 zmienionych plików z 11 dodań i 0 usunięć

Wyświetl plik

@ -9,6 +9,12 @@
<a id="station-tab" class="nav-link" data-toggle="tab" href="#stationdetails" role="tab" aria-controls="table" aria-selected="true"><?php echo $this->lang->line('cloudlog_station_profile'); ?></a>
</li>
<?php
if ($row->COL_NOTES != null) {?>
<li class="nav-item">
<a id="notes-tab" class="nav-link" data-toggle="tab" href="#notesdetails" role="tab" aria-controls="table" aria-selected="true"><?php echo "Notes"; ?></a>
</li>
<?php }?>
<?php
if (($this->config->item('use_auth')) && ($this->session->userdata('user_type') >= 2)) {
echo '<li ';
@ -439,6 +445,11 @@
</table>
</div>
<div class="tab-pane fade" id="notesdetails" role="tabpanel" aria-labelledby="table-tab">
<h3>Notes</h3>
<?php echo nl2br($row->COL_NOTES); ?>
</div>
<?php
if (($this->config->item('use_auth')) && ($this->session->userdata('user_type') >= 2)) {
?>