Resets date and time on post qso if the saved date and time was set for more than 24 hours ago.
这个提交包含在:
		
							父节点
							
								
									0c11f4e9a7
								
							
						
					
					
						当前提交
						cac020c4ea
					
				
					共有  2 个文件被更改,包括 19 次插入 和 2 次删除
				
			
		|  | @ -57,6 +57,7 @@ class QSO extends CI_Controller { | |||
| 			$qso_data = array( | ||||
|                 'start_date' => $this->input->post('start_date'), | ||||
|                 'start_time' => $this->input->post('start_time'), | ||||
| 				'time_stamp' => time(), | ||||
| 				'band' => $this->input->post('band'), | ||||
| 				'freq' => $this->input->post('freq_display'), | ||||
| 				'freq_rx' => $this->input->post('freq_display_rx'), | ||||
|  |  | |||
|  | @ -38,12 +38,28 @@ | |||
|               <div class="form-row"> | ||||
|                 <div class="form-group col-md-6"> | ||||
|                   <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 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" : "");  ?> >
 | ||||
|                   <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 && ((time() - $this->session->userdata('time_stamp')) < 24 * 60 * 60))) { | ||||
|                         echo $this->session->userdata('start_date'); | ||||
|                     } else { | ||||
|                         echo date('d-m-Y'); | ||||
|                     } | ||||
|                     ?>
 | ||||
|                        " <?php echo ($_GET['manual'] == 0 ? "disabled" : "");  ?> >
 | ||||
|                 </div> | ||||
| 
 | ||||
|                 <div class="form-group col-md-6"> | ||||
|                   <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 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" : "");  ?>>
 | ||||
|                   <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 && ((time() - $this->session->userdata('time_stamp')) < 24 * 60 * 60))) { | ||||
|                       echo $this->session->userdata('start_time'); | ||||
|                   } else { | ||||
|                       echo date('H:i'); | ||||
|                   } | ||||
|                   ?>
 | ||||
|                     " size="7" <?php echo ($_GET['manual'] == 0 ? "disabled" : "");  ?>>
 | ||||
|                 </div> | ||||
| 
 | ||||
|                 <?php if ( $_GET['manual'] == 0 ) { ?>
 | ||||
|  |  | |||
		正在加载…
	
		在新工单中引用