Also allow multiple orbit types for el analytics

This commit is contained in:
phl0
2025-07-02 16:57:27 +02:00
parent 0593ffa172
commit 30dc6c97fb
3 changed files with 17 additions and 5 deletions

View File

@@ -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;
}

View File

@@ -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 . '"';

View File

@@ -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
});
})