mirror of
https://github.com/wavelog/wavelog.git
synced 2026-03-22 10:24:14 +00:00
Fixed dropdown
This commit is contained in:
@@ -28,14 +28,16 @@ class Distances_model extends CI_Model
|
||||
$this->db->join('satellite', 'satellite.name = '.$this->config->item('table_name').'.COL_SAT_NAME', 'left outer');
|
||||
$this->db->where('LENGTH(col_gridsquare) >', 0);
|
||||
|
||||
if ($postdata['band'] == 'sat') {
|
||||
$this->db->where('col_prop_mode', $postdata['band']);
|
||||
if ($postdata['sat'] != 'All') {
|
||||
$this->db->where('col_sat_name', $postdata['sat']);
|
||||
if ($postdata['band'] != 'All') {
|
||||
if ($postdata['band'] == 'sat') {
|
||||
$this->db->where('col_prop_mode', $postdata['band']);
|
||||
if ($postdata['sat'] != 'All') {
|
||||
$this->db->where('col_sat_name', $postdata['sat']);
|
||||
}
|
||||
}
|
||||
else {
|
||||
$this->db->where('col_band', $postdata['band']);
|
||||
}
|
||||
}
|
||||
else {
|
||||
$this->db->where('col_band', $postdata['band']);
|
||||
}
|
||||
|
||||
if ($postdata['orbit'] != 'All') {
|
||||
|
||||
@@ -18,6 +18,7 @@
|
||||
<form class="d-flex align-items-center">
|
||||
<label class="my-1 me-2" for="distplot_bands"><?= __("Band selection"); ?></label>
|
||||
<select class="form-select my-1 me-sm-2 w-auto" id="distplot_bands">
|
||||
<option value="All"><?= __("All"); ?></option>
|
||||
<?php if (count($sats_available) != 0) { ?>
|
||||
<option value="sat"><?= __("SAT"); ?></option>
|
||||
<?php } ?>
|
||||
|
||||
Reference in New Issue
Block a user