Made Band chooseable

pull/2317/head
int2001 2023-07-21 09:16:19 +00:00
rodzic 5f5c104535
commit 81dac90266
2 zmienionych plików z 23 dodań i 0 usunięć

Wyświetl plik

@ -7,6 +7,7 @@ class Bandmap extends CI_Controller {
$this->load->model('user_model');
if(!$this->user_model->authorize(2)) { $this->session->set_flashdata('notice', 'You\'re not allowed to do that!'); redirect('dashboard'); }
$this->load->model('bands');
}
function index() {

Wyświetl plik

@ -1,9 +1,31 @@
<script>
var dxcluster_provider="/index.php/dxcluster";
</script>
<div class="container">
<br>
<h2><?php echo $page_title; ?></h2>
<div class="form-group col-md-6">
<label for="band"><?php echo lang('gen_hamradio_band'); ?></label>
<select id="band" class="form-control form-control-sm" name="band">
<?php
$bands = $this->bands->get_user_bands_for_qso_entry();
foreach($bands as $key=>$bandgroup) {
echo '<optgroup label="' . strtoupper($key) . '">';
foreach($bandgroup as $band) {
echo '<option value="' . $band . '"';
if ($band == "20m") echo ' selected';
echo '>' . $band . '</option>'."\n";
}
echo '</optgroup>';
}
?>
</select>
</div>
<figure class="highcharts-figure">
<div id="bandmap"></div>
<p class="highcharts-description">