2023-02-09 01:05:36 +01:00
|
|
|
<style>
|
2023-02-09 12:35:30 +01:00
|
|
|
#continentChart {
|
|
|
|
|
margin: 0 auto;
|
|
|
|
|
}
|
2023-02-09 01:05:36 +01:00
|
|
|
</style>
|
|
|
|
|
|
2026-04-26 22:15:35 +01:00
|
|
|
<div class="container statistics">
|
|
|
|
|
<div class="d-flex align-items-center justify-content-between flex-wrap gap-2 mb-3">
|
|
|
|
|
<div>
|
|
|
|
|
<h1 class="mb-0"><?php echo $page_title; ?></h1>
|
|
|
|
|
<p class="text-muted mb-0">See how your QSOs are distributed across continents by band and mode.</p>
|
|
|
|
|
</div>
|
2023-02-09 12:35:30 +01:00
|
|
|
</div>
|
2023-02-09 01:05:36 +01:00
|
|
|
|
2026-04-26 22:15:35 +01:00
|
|
|
<div class="card shadow-sm mb-4">
|
|
|
|
|
<div class="card-header py-3">
|
|
|
|
|
<h2 class="h5 mb-0">Filters</h2>
|
|
|
|
|
</div>
|
|
|
|
|
<div class="card-body">
|
|
|
|
|
<form id="continentFiltersForm"
|
|
|
|
|
name="continentFiltersForm"
|
|
|
|
|
class="form"
|
|
|
|
|
hx-post="<?php echo site_url('continents/component_continent_results'); ?>"
|
|
|
|
|
hx-target="#continentResults"
|
|
|
|
|
hx-swap="innerHTML"
|
|
|
|
|
hx-trigger="change from:select, submit">
|
|
|
|
|
<div class="row g-3 align-items-end">
|
|
|
|
|
<div class="col-md-4">
|
2023-02-09 12:35:30 +01:00
|
|
|
<label class="form-label" for="band">Band</label>
|
2026-04-26 22:15:35 +01:00
|
|
|
<select id="band" name="band" class="form-select">
|
2023-02-09 12:35:30 +01:00
|
|
|
<option value="">All</option>
|
|
|
|
|
<?php foreach($bands as $band){ ?>
|
2026-04-26 22:15:35 +01:00
|
|
|
<option value="<?php echo htmlentities($band); ?>"><?php echo htmlspecialchars($band); ?></option>
|
|
|
|
|
<?php } ?>
|
2023-02-09 12:35:30 +01:00
|
|
|
</select>
|
|
|
|
|
</div>
|
2026-04-26 22:15:35 +01:00
|
|
|
|
|
|
|
|
<div class="col-md-4">
|
2023-02-09 12:35:30 +01:00
|
|
|
<label class="form-label" for="mode">Mode</label>
|
2026-04-26 22:15:35 +01:00
|
|
|
<select id="mode" name="mode" class="form-select">
|
2023-02-09 12:35:30 +01:00
|
|
|
<option value="">All</option>
|
|
|
|
|
<?php foreach($modes as $modeId => $mode){ ?>
|
2026-04-26 22:15:35 +01:00
|
|
|
<option value="<?php echo htmlspecialchars($mode); ?>"><?php echo htmlspecialchars($mode); ?></option>
|
|
|
|
|
<?php } ?>
|
2023-02-09 12:35:30 +01:00
|
|
|
</select>
|
|
|
|
|
</div>
|
2026-04-26 22:15:35 +01:00
|
|
|
|
|
|
|
|
<div class="col-md-4 d-flex justify-content-md-end gap-2">
|
|
|
|
|
<button type="button" class="btn btn-outline-secondary" id="resetButton">Reset</button>
|
|
|
|
|
<button type="submit" class="btn btn-primary" id="searchButton">Show</button>
|
2023-02-09 12:35:30 +01:00
|
|
|
</div>
|
|
|
|
|
</div>
|
2026-04-26 22:15:35 +01:00
|
|
|
</form>
|
2023-02-09 12:35:30 +01:00
|
|
|
</div>
|
|
|
|
|
</div>
|
2026-04-26 22:15:35 +01:00
|
|
|
|
|
|
|
|
<div id="continentResults"
|
|
|
|
|
hx-post="<?php echo site_url('continents/component_continent_results'); ?>"
|
|
|
|
|
hx-target="this"
|
|
|
|
|
hx-swap="innerHTML"
|
|
|
|
|
hx-include="#continentFiltersForm"
|
|
|
|
|
hx-trigger="load"></div>
|
2023-02-09 12:35:30 +01:00
|
|
|
</div>
|