added quicklog to User Controller

This commit is contained in:
HB9HIL 2023-11-04 18:31:46 +01:00
parent a160663009
commit 6be6309d0f

View File

@ -91,6 +91,7 @@ class User extends CI_Controller {
$data['user_default_band'] = $this->input->post('user_default_band'); $data['user_default_band'] = $this->input->post('user_default_band');
$data['user_default_confirmation'] = ($this->input->post('user_default_confirmation_qsl') !== null ? 'Q' : '').($this->input->post('user_default_confirmation_lotw') !== null ? 'L' : '').($this->input->post('user_default_confirmation_eqsl') !== null ? 'E' : ''); $data['user_default_confirmation'] = ($this->input->post('user_default_confirmation_qsl') !== null ? 'Q' : '').($this->input->post('user_default_confirmation_lotw') !== null ? 'L' : '').($this->input->post('user_default_confirmation_eqsl') !== null ? 'E' : '');
$data['user_qso_end_times'] = $this->input->post('user_qso_end_times'); $data['user_qso_end_times'] = $this->input->post('user_qso_end_times');
$data['user_quicklog'] = $this->input->post('user_quicklog');
$data['language'] = $this->input->post('language'); $data['language'] = $this->input->post('language');
$this->load->view('user/add', $data); $this->load->view('user/add', $data);
} else { } else {
@ -127,6 +128,7 @@ class User extends CI_Controller {
$this->input->post('user_default_band'), $this->input->post('user_default_band'),
($this->input->post('user_default_confirmation_qsl') !== null ? 'Q' : '').($this->input->post('user_default_confirmation_lotw') !== null ? 'L' : '').($this->input->post('user_default_confirmation_eqsl') !== null ? 'E' : ''), ($this->input->post('user_default_confirmation_qsl') !== null ? 'Q' : '').($this->input->post('user_default_confirmation_lotw') !== null ? 'L' : '').($this->input->post('user_default_confirmation_eqsl') !== null ? 'E' : ''),
$this->input->post('user_qso_end_times'), $this->input->post('user_qso_end_times'),
$this->input->post('user_quicklog'),
$this->input->post('language'), $this->input->post('language'),
)) { )) {
// Check for errors // Check for errors
@ -175,6 +177,7 @@ class User extends CI_Controller {
$data['user_default_band'] = $this->input->post('user_default_band'); $data['user_default_band'] = $this->input->post('user_default_band');
$data['user_default_confirmation'] = ($this->input->post('user_default_confirmation_qsl') !== null ? 'Q' : '').($this->input->post('user_default_confirmation_lotw') !== null ? 'L' : '').($this->input->post('user_default_confirmation_eqsl') !== null ? 'E' : ''); $data['user_default_confirmation'] = ($this->input->post('user_default_confirmation_qsl') !== null ? 'Q' : '').($this->input->post('user_default_confirmation_lotw') !== null ? 'L' : '').($this->input->post('user_default_confirmation_eqsl') !== null ? 'E' : '');
$data['user_qso_end_times'] = $this->input->post('user_qso_end_times'); $data['user_qso_end_times'] = $this->input->post('user_qso_end_times');
$data['user_quicklog'] = $this->input->post('user_quicklog');
$data['language'] = $this->input->post('language'); $data['language'] = $this->input->post('language');
$this->load->view('user/add', $data); $this->load->view('user/add', $data);
$this->load->view('interface_assets/footer'); $this->load->view('interface_assets/footer');
@ -398,6 +401,12 @@ class User extends CI_Controller {
$data['user_qso_end_times'] = $q->user_qso_end_times; $data['user_qso_end_times'] = $q->user_qso_end_times;
} }
if($this->input->post('user_quicklog')) {
$data['user_quicklog'] = $this->input->post('user_quicklog', true);
} else {
$data['user_quicklog'] = $q->user_quicklog;
}
if($this->input->post('user_show_profile_image')) { if($this->input->post('user_show_profile_image')) {
$data['user_show_profile_image'] = $this->input->post('user_show_profile_image', false); $data['user_show_profile_image'] = $this->input->post('user_show_profile_image', false);
} else { } else {
@ -539,6 +548,7 @@ class User extends CI_Controller {
$data['user_default_band'] = $this->input->post('user_default_band'); $data['user_default_band'] = $this->input->post('user_default_band');
$data['user_default_confirmation'] = ($this->input->post('user_default_confirmation_qsl') !== null ? 'Q' : '').($this->input->post('user_default_confirmation_lotw') !== null ? 'L' : '').($this->input->post('user_default_confirmation_eqsl') !== null ? 'E' : ''); $data['user_default_confirmation'] = ($this->input->post('user_default_confirmation_qsl') !== null ? 'Q' : '').($this->input->post('user_default_confirmation_lotw') !== null ? 'L' : '').($this->input->post('user_default_confirmation_eqsl') !== null ? 'E' : '');
$data['user_qso_end_times'] = $this->input->post('user_qso_end_times'); $data['user_qso_end_times'] = $this->input->post('user_qso_end_times');
$data['user_quicklog'] = $this->input->post('user_quicklog');
$data['language'] = $this->input->post('language'); $data['language'] = $this->input->post('language');
$data['user_winkey'] = $this->input->post('user_winkey'); $data['user_winkey'] = $this->input->post('user_winkey');
$this->load->view('user/edit'); $this->load->view('user/edit');