fixing custom map

这个提交包含在:
HB9HIL 2023-11-17 22:56:16 +01:00
父节点 d6edea7809
当前提交 adb8526704
共有 2 个文件被更改,包括 81 次插入98 次删除

查看文件

@ -81,16 +81,12 @@ class Map extends CI_Controller {
if ($this->input->post('from')) {
$from = $this->input->post('from');
$from = DateTime::createFromFormat('m/d/Y g:i A', $from);
$from = $from->format('Y-m-d H:i');
$footer_data['date_from'] = $from;
} else {
$footer_data['date_from'] = date('Y-m-d H:i:00');
}
if ($this->input->post('to')) {
$to = DateTime::createFromFormat('m/d/Y g:i A', $this->input->post('to'));
$to = $to->modify('+1 day')->format('Y-m-d H:i:00');
$to = $this->input->post('to');
$footer_data['date_to'] = $to;
} else {
$temp_to = new DateTime('tomorrow');

查看文件

@ -1,5 +1,5 @@
<div class="container custom-map-QSOs">
<br>
<h2><?php echo $logbook_name ?> logbook QSOs (Custom Date)</h2>
<?php if ($this->session->flashdata('notice')) { ?>
@ -10,32 +10,21 @@
<form method="post" action="<?php echo site_url('map/custom'); ?>">
<div class="row">
<label class="col-md-2 control-label" for="from">Start Date/Time</label>
<div class="input-group date col-md-3 w-auto" id="datetimepicker1" data-target-input="nearest">
<input name="from" type="text" placeholder="DD/MM/YYYY" class="form-control form-control-sm datetimepicker-input" data-bs-target="#datetimepicker1" <?php if ($this->input->post('from') != "" || $this->input->method() !== 'post') echo 'value="'.$this->input->post('from').'"'; ?>/>
<div class="input-group-append" data-bs-target="#datetimepicker1" data-bs-toggle="datetimepicker">
<div class="input-group-text"><i class="fa fa-calendar"></i></div>
<div class="mb-3 col-md-3">
<label for="from"><?php echo lang('gen_from_date') . ": " ?></label>
<input name="from" id="from" type="date" class="form-control w-auto">
</div>
</div>
</div>
</row>
<div class="row">
<label class="col-md-2 control-label" for="to">End Date/Time</label>
<div class="input-group date col-md-3 w-auto" id="datetimepicker2" data-target-input="nearest">
<input name="to" type="text" placeholder="DD/MM/YYYY" class="form-control form-control-sm datetimepicker-input" data-bs-target="#datetimepicker2" <?php if ($this->input->post('to') != "" || $this->input->method() !== 'post') echo 'value="'.$this->input->post('to').'"'; ?>/>
<div class="input-group-append" data-bs-target="#datetimepicker2" data-bs-toggle="datetimepicker">
<div class="input-group-text"><i class="fa fa-calendar"></i></div>
</div>
<div class="mb-3 col-md-3">
<label for="to"><?php echo lang('gen_to_date') . ": " ?></label>
<input name="to" id="to" type="date" class="form-control w-auto">
</div>
</div>
<div class="row">
<label class="col-md-2 control-label" for="band">Band</label>
<div class="col-md-3">
<select id="band2" name="band" class="form-select form-select-sm">
<div class="mb-3 col-md-3">
<label for="band">Band</label>
<select id="band2" name="band" class="form-select">
<option value="All" <?php if ($this->input->post('band') == "All" || $this->input->method() !== 'post') echo ' selected'; ?>>Every band</option>
<?php foreach ($worked_bands as $band) {
echo '<option value="' . $band . '"';
@ -44,12 +33,11 @@
} ?>
</select>
</div>
</div>
<div class="row">
<label class="col-md-2 control-label" for="mode">Mode</label>
<div class="col-md-3">
<select id="mode" name="mode" class="form-select form-select-sm">
<div class="mb-3 col-md-3">
<label for="mode">Mode</label>
<select id="mode" name="mode" class="form-select">
<option value="All" <?php if ($this->input->post('mode') == "All" || $this->input->method() !== 'post') echo ' selected'; ?>>All</option>
<?php
foreach ($modes->result() as $mode) {
@ -66,11 +54,10 @@
?>
</select>
</div>
</div>
<div class="row">
<label class="col-md-2 control-label"for="selectPropagation">Propagation Mode</label>
<div class="col-md-3">
<select class="form-select form-select-sm" id="selectPropagation" name="prop_mode">
<div class="mb-3 col-md-3">
<label for="selectPropagation">Propagation Mode</label>
<select class="form-select" id="selectPropagation" name="prop_mode">
<option value="All" <?php if ($this->input->post('prop_mode') == "All" || $this->input->method() !== 'post') echo ' selected'; ?>>All</option>
<option value="AS" <?php if ($this->input->post('prop_mode') == "AS") echo ' selected'; ?>>Aircraft Scatter</option>
<option value="AUR" <?php if ($this->input->post('prop_mode') == "AUR") echo ' selected'; ?>>Aurora</option>
@ -94,7 +81,7 @@
</div>
</div>
<input type="submit" value="Load Map">
<input class="btn btn-primary" type="submit" value="Load Map">
<br><br>
</form>