mirror of
https://github.com/wavelog/wavelog.git
synced 2026-03-22 10:24:14 +00:00
Make Station_Location optionally move to 1st tab
This commit is contained in:
@@ -31,7 +31,11 @@ class QSO extends CI_Controller {
|
||||
show_404();
|
||||
}
|
||||
|
||||
$data['active_station_profile'] = $this->stations->find_active();
|
||||
if ($this->stations->check_station_is_accessible($this->session->userdata('station_profile_id') ?? 0)) { // Last Station from session accessible? Take it!
|
||||
$data['active_station_profile'] = $this->session->userdata('station_profile_id');
|
||||
} else {
|
||||
$data['active_station_profile'] =$this->stations->find_active();
|
||||
}
|
||||
|
||||
$data['notice'] = false;
|
||||
$data['stations'] = $this->stations->all_of_user();
|
||||
@@ -88,6 +92,13 @@ class QSO extends CI_Controller {
|
||||
$data['user_dok_to_qso_tab'] = 0;
|
||||
}
|
||||
|
||||
$qkey_opt=$this->user_options_model->get_options('qso_tab',array('option_name'=>'station','option_key'=>'show'))->result();
|
||||
if (count($qkey_opt)>0) {
|
||||
$data['user_station_to_qso_tab'] = $qkey_opt[0]->option_value;
|
||||
} else {
|
||||
$data['user_station_to_qso_tab'] = 0;
|
||||
}
|
||||
|
||||
// Get status of DX Waterfall enable option
|
||||
$qkey_opt=$this->user_options_model->get_options('dxwaterfall',array('option_name'=>'enable','option_key'=>'boolean'))->result();
|
||||
if (count($qkey_opt)>0) {
|
||||
|
||||
Reference in New Issue
Block a user