mirror of
https://github.com/wavelog/wavelog.git
synced 2026-03-22 10:24:14 +00:00
Also allow multiple orbit types for el analytics
This commit is contained in:
@@ -806,8 +806,8 @@
|
||||
$binding[] = trim($sat);
|
||||
}
|
||||
|
||||
if ($orbit !== 'All' && $orbit !== '') {
|
||||
$conditions[] = "orbit = ?";
|
||||
if ($orbit !== '') {
|
||||
$conditions[] = "orbit in ?";
|
||||
$binding[] = $orbit;
|
||||
}
|
||||
|
||||
@@ -864,7 +864,7 @@
|
||||
$binding[] = $mode;
|
||||
}
|
||||
|
||||
if ($orbit !== 'All' && $orbit !== '') {
|
||||
if ($orbit !== '') {
|
||||
$conditions[] = "orbit in ?";
|
||||
$binding[] = $orbit;
|
||||
}
|
||||
|
||||
@@ -99,8 +99,7 @@
|
||||
</div>
|
||||
<label class="w-auto control-label" for="orbit"><?= __("Orbit") ?></label>
|
||||
<div class="w-auto">
|
||||
<select id="orbitel" name="orbitel" class="form-select">
|
||||
<option value="All" <?php if ($this->input->post('orbit') == "All" || $this->input->method() !== 'post') echo ' selected'; ?> ><?= __("All") ?></option>
|
||||
<select id="orbitel" name="orbitel" class="form-select" multiple="multiple">
|
||||
<?php
|
||||
foreach($orbits as $orbit){
|
||||
echo '<option value="' . $orbit . '"';
|
||||
|
||||
@@ -10,4 +10,17 @@ $(document).ready(function () {
|
||||
inheritClass: true,
|
||||
includeSelectAllOption: true
|
||||
});
|
||||
|
||||
|
||||
$('#orbitel').multiselect({
|
||||
enableFiltering: true,
|
||||
enableCaseInsensitiveFiltering: true,
|
||||
filterPlaceholder: lang_general_word_search,
|
||||
templates: {
|
||||
button: '<button type="button" class="multiselect dropdown-toggle btn btn-sm btn-secondary me-2 w-auto" data-bs-toggle="dropdown" aria-expanded="false"><span class="multiselect-selected-text"></span></button>',
|
||||
},
|
||||
numberDisplayed: 1,
|
||||
inheritClass: true,
|
||||
includeSelectAllOption: true
|
||||
});
|
||||
})
|
||||
|
||||
Reference in New Issue
Block a user