Creation of station profiles

Station profiles allows you to define a profile for where you are operating from including your operating callsign, gridsquare, dxcc, state, cq, itu and sota.

This is then made available via the "stations" tab when adding a QSO as a drop down.
This commit is contained in:
Peter Goodhall
2019-01-01 19:14:25 +00:00
parent 71d8eb22a2
commit df3de16d5a
12 changed files with 419 additions and 3 deletions

View File

@@ -14,12 +14,14 @@ class QSO extends CI_Controller {
{
$this->load->model('cat');
$this->load->model('stations');
$this->load->model('logbook_model');
$this->load->model('user_model');
if(!$this->user_model->authorize(2)) { $this->session->set_flashdata('notice', 'You\'re not allowed to do that!'); redirect('dashboard'); }
$data['notice'] = false;
$data['stations'] = $this->stations->all();
$data['radios'] = $this->cat->radios();
$data['query'] = $this->logbook_model->last_custom('16');
@@ -57,7 +59,8 @@ class QSO extends CI_Controller {
'mode' => $this->input->post('mode'),
'sat_name' => $this->input->post('sat_name'),
'sat_mode' => $this->input->post('sat_mode'),
'radio' => $this->input->post('radio')
'radio' => $this->input->post('radio'),
'station_profile_id' => $this->input->post('station_profile')
);
// ];