Cloudlog/application/views/logbooks/index.php

68 wiersze
2.3 KiB
PHP
Czysty Zwykły widok Historia

<div class="container">
<br>
<?php if($this->session->flashdata('message')) { ?>
<!-- Display Message -->
<div class="alert-message error">
<p><?php echo $this->session->flashdata('message'); ?></p>
</div>
<?php } ?>
<h2><?php echo $page_title; ?></h2>
<div class="card">
<div class="card-header">
2022-01-05 22:43:54 +00:00
What are Station Logbooks
</div>
<div class="card-body">
<p class="card-text">Station Logbooks allow you to group Station Locations, doing this allows you to see all the grouped locations across one session from the logbook areas to the analyics.</p>
<p class="card-text">Great for when your operating in multiple locations but they are part of the same DXCC or VUCC Circle.</p>
</div>
</div>
<div class="card" style="margin-top: 20px;">
<div class="card-header">
Station Locations <a class="btn btn-primary float-right" href="<?php echo site_url('logbooks/create'); ?>"><i class="fas fa-plus"></i> Create a Station Logbook</a>
</div>
<div class="">
<?php if ($my_logbooks->num_rows() > 0) { ?>
<div class="table-responsive">
2022-01-20 14:50:42 +00:00
<table id="station_logbooks_table" class="table table-striped">
<thead>
<tr>
<th scope="col">Name</th>
<th scope="col"></th>
</tr>
</thead>
<tbody>
<?php foreach ($my_logbooks->result() as $row) { ?>
<tr>
<td>
<?php echo $row->logbook_name;?><br>
</td>
<td>
<?php if($this->session->userdata('active_station_logbook') != $row->logbook_id) { ?>
<a href="<?php echo site_url('logbooks/set_active')."/".$row->logbook_id; ?>" class="btn btn-outline-primary btn-sm">Set as Active Logbook</a>
<?php } ?>
2022-01-05 22:45:19 +00:00
<a href="<?php echo site_url('logbooks/edit')."/".$row->logbook_id; ?>" class="btn btn-outline-primary btn-sm"><i class="fas fa-edit"></i> </a>
<?php if($this->session->userdata('active_station_logbook') != $row->logbook_id) { ?>
2022-01-05 22:45:19 +00:00
<a href="<?php echo site_url('Logbooks/delete')."/".$row->logbook_id; ?>" class="btn btn-danger btn-sm" onclick="return confirm('Are you sure you want delete station profile <?php echo $row->logbook_name; ?> this will delete all QSOs within this station logbook?');"><i class="fas fa-trash-alt"></i></a>
<?php } ?>
</td>
</tr>
<?php } ?>
</tbody>
<table>
</div>
<?php } ?>
</div>
</div>
</div>