Show Logbook-ID

This commit is contained in:
int2001
2026-02-20 10:34:40 +00:00
parent 43d661b305
commit 242a8b4af8
3 changed files with 4 additions and 1 deletions

View File

@@ -259,7 +259,7 @@ class Stationsetup extends CI_Controller {
$result = $this->logbooks_model->show_all()->result(); $result = $this->logbooks_model->show_all()->result();
foreach ($result as $entry) { foreach ($result as $entry) {
$single=(Object)[]; $single=(Object)[];
$single->logbook_id = $entry->logbook_id; $single->logbook_id = '<span class="badge bg-info">'.$entry->logbook_id.'</span>';
$single->logbook_name = $this->lbname2html($entry->logbook_id, $entry->logbook_name); $single->logbook_name = $this->lbname2html($entry->logbook_id, $entry->logbook_name);
$single->logbook_state = $this->lbstate2html($entry->logbook_id); $single->logbook_state = $this->lbstate2html($entry->logbook_id);
$single->logbook_edit = $this->lbedit2html($entry->logbook_id); $single->logbook_edit = $this->lbedit2html($entry->logbook_id);

View File

@@ -30,6 +30,7 @@
<table id="station_logbooks_table" class="table-sm table table-hover table-striped table-condensed"> <table id="station_logbooks_table" class="table-sm table table-hover table-striped table-condensed">
<thead> <thead>
<tr> <tr>
<th scope="col"><?= __("ID")?></th>
<th scope="col"><?= __("Name")?></th> <th scope="col"><?= __("Name")?></th>
<th scope="col"><?= __("Status")?></th> <th scope="col"><?= __("Status")?></th>
<th scope="col"><?= __("Edit Linked locations"); ?></th> <th scope="col"><?= __("Edit Linked locations"); ?></th>
@@ -41,6 +42,7 @@
<tbody> <tbody>
<?php foreach ($my_logbooks->result() as $row) { ?> <?php foreach ($my_logbooks->result() as $row) { ?>
<tr> <tr>
<td><span class="badge bg-info"><?php echo $row->logbook_id;?></span></td>
<td><?php echo $row->logbook_name;?> <i id="<?php echo $row->logbook_id ?>" class="editContainerName fas fa-edit" role="button"></i></td> <td><?php echo $row->logbook_name;?> <i id="<?php echo $row->logbook_id ?>" class="editContainerName fas fa-edit" role="button"></i></td>
<td> <td>
<?php if($this->session->userdata('active_station_logbook') != $row->logbook_id) { ?> <?php if($this->session->userdata('active_station_logbook') != $row->logbook_id) { ?>

View File

@@ -522,6 +522,7 @@ function loadLogbookTable(rows) {
let logbook = rows[i]; let logbook = rows[i];
var data = []; var data = [];
data.push(logbook.logbook_id);
data.push(logbook.logbook_name); data.push(logbook.logbook_name);
data.push(logbook.logbook_state); data.push(logbook.logbook_state);
data.push(logbook.logbook_edit); data.push(logbook.logbook_edit);