mirror of
https://github.com/magicbug/Cloudlog
synced 2024-11-23 01:59:14 +00:00
added quicklog to User Controller
This commit is contained in:
parent
a160663009
commit
6be6309d0f
@ -91,6 +91,7 @@ class User extends CI_Controller {
|
||||
$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_qso_end_times'] = $this->input->post('user_qso_end_times');
|
||||
$data['user_quicklog'] = $this->input->post('user_quicklog');
|
||||
$data['language'] = $this->input->post('language');
|
||||
$this->load->view('user/add', $data);
|
||||
} else {
|
||||
@ -127,6 +128,7 @@ class User extends CI_Controller {
|
||||
$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_qso_end_times'),
|
||||
$this->input->post('user_quicklog'),
|
||||
$this->input->post('language'),
|
||||
)) {
|
||||
// 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_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_quicklog'] = $this->input->post('user_quicklog');
|
||||
$data['language'] = $this->input->post('language');
|
||||
$this->load->view('user/add', $data);
|
||||
$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;
|
||||
}
|
||||
|
||||
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')) {
|
||||
$data['user_show_profile_image'] = $this->input->post('user_show_profile_image', false);
|
||||
} else {
|
||||
@ -539,6 +548,7 @@ class User extends CI_Controller {
|
||||
$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_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['user_winkey'] = $this->input->post('user_winkey');
|
||||
$this->load->view('user/edit');
|
||||
|
Loading…
Reference in New Issue
Block a user