Saves date and time and keeps it when entering POST QSOs. Fixes #463.
这个提交包含在:
父节点
2129ed83be
当前提交
ca3398e808
共有 2 个文件被更改,包括 5 次插入 和 2 次删除
|
|
@ -55,6 +55,8 @@ class QSO extends CI_Controller {
|
||||||
// $qso_data = [
|
// $qso_data = [
|
||||||
// 18-Jan-2016 - make php v5.3 friendly!
|
// 18-Jan-2016 - make php v5.3 friendly!
|
||||||
$qso_data = array(
|
$qso_data = array(
|
||||||
|
'start_date' => $this->input->post('start_date'),
|
||||||
|
'start_time' => $this->input->post('start_time'),
|
||||||
'band' => $this->input->post('band'),
|
'band' => $this->input->post('band'),
|
||||||
'freq' => $this->input->post('freq_display'),
|
'freq' => $this->input->post('freq_display'),
|
||||||
'freq_rx' => $this->input->post('freq_display_rx'),
|
'freq_rx' => $this->input->post('freq_display_rx'),
|
||||||
|
|
|
||||||
|
|
@ -1,3 +1,4 @@
|
||||||
|
<?php var_dump($this->session); ?>
|
||||||
<div class="container qso_panel">
|
<div class="container qso_panel">
|
||||||
|
|
||||||
<div class="row">
|
<div class="row">
|
||||||
|
|
@ -38,12 +39,12 @@
|
||||||
<div class="form-row">
|
<div class="form-row">
|
||||||
<div class="form-group col-md-6">
|
<div class="form-group col-md-6">
|
||||||
<label for="start_date">Date</label>
|
<label for="start_date">Date</label>
|
||||||
<input type="text" class="form-control form-control-sm input_date" name="start_date" id="start_date" value="<?php echo date('d-m-Y'); ?>" <?php echo ($_GET['manual'] == 0 ? "disabled" : ""); ?> >
|
<input type="text" class="form-control form-control-sm input_date" name="start_date" id="start_date" value="<?php if ($this->session->userdata('start_date') != NULL) {echo $this->session->userdata('start_date');} else {echo date('d-m-Y');} ?>" <?php echo ($_GET['manual'] == 0 ? "disabled" : ""); ?> >
|
||||||
</div>
|
</div>
|
||||||
|
|
||||||
<div class="form-group col-md-6">
|
<div class="form-group col-md-6">
|
||||||
<label for="start_time">Time</label>
|
<label for="start_time">Time</label>
|
||||||
<input type="text" class="form-control form-control-sm input_time" name="start_time" id="start_time" value="<?php echo date('H:i'); ?>" size="7" <?php echo ($_GET['manual'] == 0 ? "disabled" : ""); ?>>
|
<input type="text" class="form-control form-control-sm input_time" name="start_time" id="start_time" value="<?php if ($this->session->userdata('start_time') != NULL) {echo $this->session->userdata('start_time');} else {echo date('H:i');} ?>" size="7" <?php echo ($_GET['manual'] == 0 ? "disabled" : ""); ?>>
|
||||||
</div>
|
</div>
|
||||||
|
|
||||||
<?php if ( $_GET['manual'] == 0 ) { ?>
|
<?php if ( $_GET['manual'] == 0 ) { ?>
|
||||||
|
|
|
||||||
正在加载…
在新工单中引用