Added the handling of measurement_base in the station_profile.

这个提交包含在:
Andreas 2020-09-13 11:45:49 +02:00
父节点 640d0c151b
当前提交 6e12336f89
共有 3 个文件被更改,包括 22 次插入0 次删除

查看文件

@ -47,6 +47,7 @@ class Stations extends CI_Model {
'state' => xss_clean($this->input->post('station_state', true)),
'eqslqthnickname' => xss_clean($this->input->post('eqslnickname', true)),
'qrzapikey' => xss_clean($this->input->post('qrzapikey', true)),
'measurement_base' => xss_clean($this->input->post('measurement_base', true)),
);
$this->db->insert('station_profile', $data);
@ -68,6 +69,7 @@ class Stations extends CI_Model {
'state' => xss_clean($this->input->post('station_state', true)),
'eqslqthnickname' => xss_clean($this->input->post('eqslnickname', true)),
'qrzapikey' => xss_clean($this->input->post('qrzapikey', true)),
'measurement_base' => xss_clean($this->input->post('measurement_base', true)),
);
$this->db->where('station_id', xss_clean($this->input->post('station_id', true)));

查看文件

@ -165,6 +165,16 @@
<small id="qrzApiKeyHelp" class="form-text text-muted">Your QRZ.com Logbook API can be found in the <a href="https://logbook.qrz.com/logbook" target="_blank">settings page</a></small>
</div>
<div class="form-group">
<label for="measurement_base">Measurement preference</label>
<select class="custom-select" id="measurement_base" name="measurement_base" required>
<option value='K' selected='selected'>Kilometers</option>
<option value='M'>Miles</option>
<option value='N'>Nautical miles</option>
</select>
<small id="measurement_base_Help" class="form-text text-muted">Choose which unit distances will be shown in.</small>
</div>
<button type="submit" class="btn btn-primary"><i class="fas fa-plus-square"></i> Create Station Profile</button>
</form>

查看文件

@ -179,6 +179,16 @@
<small id="qrzApiKeyHelp" class="form-text text-muted">Your QRZ.com Logbook API can be found in the <a href="https://logbook.qrz.com/logbook" target="_blank">settings page</a></small>
</div>
<div class="form-group">
<label for="measurement_base">Measurement preference</label>
<select class="custom-select" id="measurement_base" name="measurement_base" required>
<option value='K' <?php if ($my_station_profile->measurement_base == "K") { echo " selected=\"selected\""; } ?>>Kilometers</option>
<option value='M' <?php if ($my_station_profile->measurement_base == "M") { echo " selected=\"selected\""; } ?>>Miles</option>
<option value='N' <?php if ($my_station_profile->measurement_base == "N") { echo " selected=\"selected\""; } ?>>Nautical miles</option>
</select>
<small id="measurement_base_Help" class="form-text text-muted">Choose which unit distances will be shown in.</small>
</div>
<button type="submit" class="btn btn-primary"><i class="fas fa-plus-square"></i> Update Station Profile</button>
</form>