mirror of
https://github.com/wavelog/wavelog.git
synced 2026-03-22 10:24:14 +00:00
Added gui for viewing bandedges
This commit is contained in:
@@ -99,6 +99,22 @@ class Bands extends CI_Model {
|
||||
return $this->db->get()->result();
|
||||
}
|
||||
|
||||
function get_all_bandedges_for_user() {
|
||||
$this->db->from('bandedges');
|
||||
$this->db->where('bandedges.userid', $this->session->userdata('user_id'));
|
||||
|
||||
$result = $this->db->get()->result();
|
||||
|
||||
if ($result) {
|
||||
return $result;
|
||||
}
|
||||
|
||||
$this->db->from('bandedges');
|
||||
$this->db->where('bandedges.userid', -1);
|
||||
|
||||
return $this->db->get()->result();
|
||||
}
|
||||
|
||||
function all() {
|
||||
return $this->bandslots;
|
||||
}
|
||||
|
||||
45
application/views/bands/bandedges.php
Normal file
45
application/views/bands/bandedges.php
Normal file
@@ -0,0 +1,45 @@
|
||||
<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><?= __("Bandedges"); ?></h2>
|
||||
|
||||
<div class="card">
|
||||
<div class="card-body">
|
||||
<p class="card-text">
|
||||
<?= __("Using the bandedges list you can control the mode classification in the cluster."); ?><br>
|
||||
</p>
|
||||
<div class="table-responsive">
|
||||
|
||||
<table style="width:100%" class="bandtable table table-sm table-striped">
|
||||
<thead>
|
||||
<tr>
|
||||
<th><?= __("Frequency from (Hz)"); ?></th>
|
||||
<th><?= __("Frequency to (Hz)"); ?></th>
|
||||
<th><?= __("Mode"); ?></th>
|
||||
</tr>
|
||||
</thead>
|
||||
<tbody>
|
||||
<?php foreach ($bands as $band) { ?>
|
||||
<tr>
|
||||
<td style="text-align: center; vertical-align: middle;" ><?php echo $band->frequencyfrom;?></td>
|
||||
<td style="text-align: center; vertical-align: middle;" ><?php echo $band->frequencyto;?></td>
|
||||
<td style="text-align: center; vertical-align: middle;" ><?php echo $band->mode;?></td>
|
||||
</tr>
|
||||
|
||||
<?php } ?>
|
||||
</tbody>
|
||||
<table>
|
||||
</div>
|
||||
<br/>
|
||||
<p>
|
||||
</p>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
@@ -413,6 +413,7 @@
|
||||
<li><a class="dropdown-item" href="<?php echo site_url('stationsetup'); ?>" title="Manage station setup"><i class="fas fa-home"></i> <?= __("Station Setup"); ?></a></li>
|
||||
<?php } ?>
|
||||
<li><a class="dropdown-item" href="<?php echo site_url('band'); ?>" title="Manage Bands"><i class="fas fa-cog"></i> <?= __("Bands"); ?></a></li>
|
||||
<li><a class="dropdown-item" href="<?php echo site_url('band/edges'); ?>" title="Manage Band Edgeds"><i class="fas fa-cog"></i> <?= __("Band Edges"); ?></a></li>
|
||||
<li><a class="dropdown-item" href="<?php echo site_url('usermode'); ?>" title="Manage Modes"><i class="fas fa-cog"></i> <?= __("Modes"); ?></a></li>
|
||||
|
||||
<?php if ($this->config->item('special_callsign') && $this->session->userdata('clubstation') == 0) { ?>
|
||||
|
||||
Reference in New Issue
Block a user