[Clublog] Started making GUI for syncing Clublog

This commit is contained in:
Andreas Kristiansen
2025-01-17 14:02:20 +01:00
parent dad530ce7b
commit 0e21df3ced
4 changed files with 182 additions and 9 deletions

View File

@@ -89,4 +89,30 @@ class Clublog extends CI_Controller
// echo ucfirst(strtolower($data['Name']));
return $data;
}
/*
* Used for displaying the uid for manually selecting log for upload to qrz
*/
public function export() {
$this->load->model('user_model');
if(!$this->user_model->authorize(2) || !clubaccess_check(9)) { $this->session->set_flashdata('error', __("You're not allowed to do that!")); redirect('dashboard'); }
$this->load->model('clublog_model');
$this->load->model('stations');
$data['page_title'] = __("Clublog");
$data['station_profiles'] = $this->stations->all_of_user();
$data['station_profile'] = $this->clublog_model->stations_with_clublog_enabled();
$data['callsigns'] = $this->stations->callsigns_of_user($this->session->userdata('user_id'));
$this->load->model('cron_model');
$data['next_run_up'] = $this->cron_model->get_next_run("clublog_upload");
$data['next_run_down'] = $this->cron_model->get_next_run("clublog_download");
$this->load->view('interface_assets/header', $data);
$this->load->view('clublog/export');
$this->load->view('interface_assets/footer');
}
}