kopia lustrzana https://github.com/magicbug/Cloudlog
68 wiersze
2.3 KiB
PHP
68 wiersze
2.3 KiB
PHP
<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">
|
|
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">
|
|
<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 } ?>
|
|
|
|
<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) { ?>
|
|
<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>
|