wavelog/application/views/timeplotter/index.php

68 lines
3.1 KiB
PHP
Raw Normal View History

2024-02-14 01:22:03 +01:00
<script>
2024-06-06 20:23:19 +02:00
var lang_statistics_timeplotter_contacts_plotted = '<?= __("contacts were plotted"); ?>';
var lang_statistics_timeplotter_chart_header = '<?= __("Time Distribution"); ?>';
var lang_statistics_timeplotter_number_of_qsos = '<?= __("Number of QSOs"); ?>';
var lang_general_word_time = '<?= __("Time"); ?>';
var lang_statistics_timeplotter_callsigns_worked = '<?= __("Callsign(s) worked (max 5)"); ?>';
2024-02-14 01:22:03 +01:00
</script>
2020-10-18 00:00:01 +02:00
<div class="container">
2024-06-06 20:23:19 +02:00
<h2><?= __("Timeplotter"); ?></h1>
<p><?= __("The Timeplotter is used to analyze your logbook and find out at what times you worked certain CQ zones or DXCC countries on a selected band."); ?></p>
2020-10-18 00:00:01 +02:00
<form class="form">
2023-11-14 13:35:53 +01:00
<div class="mb-3 row">
2024-06-06 20:23:19 +02:00
<label class="col-md-1 control-label" for="band"><?= __("Band"); ?></label>
2020-10-18 00:00:01 +02:00
<div class="col-md-3">
2023-11-27 13:33:38 +01:00
<select id="band" name="band" class="form-select">
2024-06-06 20:23:19 +02:00
<option value="All"><?= __("All"); ?></option>
2020-10-18 00:00:01 +02:00
<?php foreach($worked_bands as $band) {
echo '<option value="' . $band . '">' . $band . '</option>'."\n";
} ?>
</select>
</div>
2024-06-06 20:23:19 +02:00
<label class="col-md-1 control-label" for="dxcc"><?= __("DXCC"); ?></label>
2020-10-18 00:00:01 +02:00
<div class="col-md-3">
2023-11-27 13:33:38 +01:00
<select id="dxcc" name="dxcc" class="form-select">
2024-06-06 20:23:19 +02:00
<option value = 'All'><?= __("All"); ?></option>
2020-10-18 00:00:01 +02:00
<?php
if ($dxcc_list->num_rows() > 0) {
foreach ($dxcc_list->result() as $dxcc) {
echo '<option value=' . $dxcc->adif . '> ' . ucwords(strtolower($dxcc->name)) . ' - ' . $dxcc->prefix;
2020-10-18 00:00:01 +02:00
if ($dxcc->end != null) {
2024-06-06 15:41:03 +02:00
echo ' ('.__("Deleted DXCC").')';
2020-10-18 00:00:01 +02:00
}
echo '</option>';
}
}
?>
</select>
</div>
</div>
2023-11-14 13:35:53 +01:00
<div class="mb-3 row">
2024-06-06 20:23:19 +02:00
<label class="col-md-1 control-label" for="cqzone"><?= __("CQ Zone"); ?></label>
2020-10-18 00:00:01 +02:00
<div class="col-md-3">
2023-11-27 13:33:38 +01:00
<select id="cqzone" name="cqzone" class="form-select">
2024-06-06 20:23:19 +02:00
<option value = 'All'><?= __("All"); ?></option>
2020-10-18 00:00:01 +02:00
<?php
for ($i = 1; $i<=40; $i++) {
echo '<option value='. $i . '>'. $i .'</option>';
}
?>
</select>
</div>
</div>
2023-11-14 13:35:53 +01:00
<div class="mb-3 row">
2020-10-18 00:00:01 +02:00
<div class="col-md-3">
2024-06-06 20:23:19 +02:00
<button id="button1id" type="button" name="button1id" class="btn btn-primary ld-ext-right" onclick="timeplot(this.form);"><?= __("Show"); ?><div class="ld ld-ring ld-spin"></div></button>
2020-10-18 00:00:01 +02:00
</div>
</div>
</form>
<div id="timeplotter_div">
</div>
</div>