mirror of
https://github.com/wavelog/wavelog.git
synced 2026-03-22 10:24:14 +00:00
Added sat dropdown
This commit is contained in:
@@ -240,9 +240,11 @@ class Statistics extends CI_Controller {
|
||||
public function antennaanalytics() {
|
||||
$this->load->model('stats');
|
||||
|
||||
$total_qsos = array();
|
||||
$data = array();
|
||||
|
||||
$total_qsos['azelarray'] = $this->stats->azeldata();
|
||||
$data['azelarray'] = $this->stats->azeldata();
|
||||
|
||||
$data['satellites'] = $this->stats->get_sats();
|
||||
|
||||
|
||||
$footerData = [];
|
||||
@@ -253,7 +255,7 @@ class Statistics extends CI_Controller {
|
||||
|
||||
// Load Views
|
||||
$this->load->view('interface_assets/header');
|
||||
$this->load->view('statistics/antennaanalytics', $total_qsos);
|
||||
$this->load->view('statistics/antennaanalytics', $data);
|
||||
$this->load->view('interface_assets/footer', $footerData);
|
||||
}
|
||||
}
|
||||
|
||||
@@ -11,6 +11,17 @@ echo json_encode($azelarray);
|
||||
<?= __("Antenna Analytics"); ?>
|
||||
</div>
|
||||
<div class="tables-container mx-2">
|
||||
<form class="d-flex align-items-center">
|
||||
<label class="my-1 me-2" id="satslabel" for="distplot_sats"><?= __("Satellite"); ?></label>
|
||||
<select class="form-select my-1 me-sm-2 w-auto" id="sats">
|
||||
<?php foreach($satellites as $sat) {
|
||||
echo '<option value="' . $sat . '"' . '>' . $sat . '</option>'."\n";
|
||||
} ?>
|
||||
</select>
|
||||
|
||||
|
||||
<button id="plot" type="button" name="plot" class="btn btn-primary me-1 ld-ext-right ld-ext-right-plot" onclick="plot_sat()"><?= __("Plot"); ?><div class="ld ld-ring ld-spin"></div></button>
|
||||
</form>
|
||||
<?php
|
||||
if ($azelarray) {
|
||||
echo '<table style="width:100%" class="qsotable table-sm table table-bordered table-hover table-striped table-condensed text-center">
|
||||
|
||||
Reference in New Issue
Block a user