Made Band chooseable
这个提交包含在:
父节点
5f5c104535
当前提交
81dac90266
共有 2 个文件被更改,包括 23 次插入 和 0 次删除
|
|
@ -7,6 +7,7 @@ class Bandmap extends CI_Controller {
|
||||||
|
|
||||||
$this->load->model('user_model');
|
$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'); }
|
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() {
|
function index() {
|
||||||
|
|
|
||||||
|
|
@ -1,9 +1,31 @@
|
||||||
|
<script>
|
||||||
|
var dxcluster_provider="/index.php/dxcluster";
|
||||||
|
</script>
|
||||||
|
|
||||||
<div class="container">
|
<div class="container">
|
||||||
|
|
||||||
<br>
|
<br>
|
||||||
|
|
||||||
<h2><?php echo $page_title; ?></h2>
|
<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">
|
<figure class="highcharts-figure">
|
||||||
<div id="bandmap"></div>
|
<div id="bandmap"></div>
|
||||||
<p class="highcharts-description">
|
<p class="highcharts-description">
|
||||||
|
|
|
||||||
正在加载…
在新工单中引用