Station setup (#175)

* The start of station setup

* Added modals new logbook and new location

* Added 1st JSON-Create Logbook (PHP)

* Added 1st JSON-Create Logbook (JS)

* Changed to small buttons

* A bit more errorhandling (JS)

* Moved collecting of params to controller and added errorhandling

* Added Delete-Function (with confirmation)

* Moved view to new folder and added delete Logbook

* Added AJAX for setActive Book

* Added AJAX for setActiveBook (JS)

* Partially working reload logbook table

* Dynamic loading of logbooks (PHP)

* Dynamic loading of logbooks (JS)

* Reload location table

* Removed duplicate return statement

* Fixed Zoo of params to JSON-Out

* Fixed RenderBug (not yet finished) at JS

* Fixed DT error

* Fixed CSS

* Changed setActiveStation from link to Ajax (PHP)

* Changed setActiveStation from link to Ajax (JS)

* Added confirmation to changeActiveStation

* Changed EmptyStation to AJAX (PHP)

* Changed EmptyStation to AJAX (JS)

* Changed DeleteStation to AJAX (JS)

* Changed DeleteStation to AJAX (PHP)

* Tidy up code a little

* Re-added favorites

* Ajaxyfing favorite location

* Fixed clicking on favorite

* Fixed favorite star

* Tweaked new logbook dialog

* Fixed public search badge

* Fix badges on first load

* Reloads stations on load

* Redirect to station setup

* Re-added translation

* Fixed more badges

* Added menu item translation

* Header with translated menu

* Updated warning links on dashboard to go to station setup

* Added missing lang lines for Polish and Czech

* Changed links in Quickswitch to station setup

* station setup in quickswitcher

* Make station location ID a separate (and sortable) column

* Added missing ID

* Relocated eQSL-Thing to station_model to reduce redundancies

* Removed Debug-Stuff

* Moved get_options to get_default_eqsl_message within QSO-Controller

* Moved generic get_options to more specific get_eqsl_default_message

* Removed loading of options_model, since it is already loaded via "autload"...

* dynamic quickswitcher

* disabled button for active location

* typo

* removed empty unused function

* comment

* reload stationsetup list if we are on this page

* don't grey out the locations

* dynamic loading in both directions

* rename function to make it more clear

* readability

---------

Co-authored-by: int2001 <joerg@dj7nt.de>
Co-authored-by: Joerg (DJ7NT) <int2001@users.noreply.github.com>
Co-authored-by: HB9HIL <fabian.berg@hb9hil.org>
Co-authored-by: phl0 <github@florian-wolters.de>
This commit is contained in:
Andreas Kristiansen
2024-03-03 21:52:51 +01:00
committed by GitHub
parent 1335d915c6
commit 4bbfe1b07e
59 changed files with 1353 additions and 427 deletions

View File

@@ -27,7 +27,7 @@ class Logbooks extends CI_Controller {
$this->load->view('interface_assets/footer');
}
public function create()
public function create()
{
$this->load->library('form_validation');
@@ -41,11 +41,11 @@ class Logbooks extends CI_Controller {
$this->load->view('interface_assets/footer');
}
else
{
{
$this->load->model('logbooks_model');
$this->logbooks_model->add();
redirect('logbooks');
redirect('stationsetup');
}
}
@@ -65,7 +65,7 @@ class Logbooks extends CI_Controller {
$data['station_locations_list'] = $this->stations->all_of_user();
$data['station_locations_linked'] = $this->logbooks_model->list_logbooks_linked($station_logbook_id);
$data['page_title'] = "Edit Station Logbook";
$this->form_validation->set_rules('station_logbook_id', 'Station Logbook Name', 'required');
@@ -99,27 +99,27 @@ class Logbooks extends CI_Controller {
$this->logbooks_model->set_logbook_active($id);
$this->user_model->update_session($this->session->userdata('user_id'));
redirect('logbooks');
redirect('stationsetup');
}
public function delete($id) {
$this->load->model('logbooks_model');
$this->logbooks_model->delete($id);
redirect('logbooks');
redirect('stationsetup');
}
public function delete_relationship($logbook_id, $station_id) {
$this->load->model('logbooks_model');
$this->logbooks_model->delete_relationship($logbook_id, $station_id);
redirect('logbooks/edit/'.$logbook_id);
}
public function publicslug_validate() {
$this->load->model('logbooks_model');
$result = $this->logbooks_model->is_public_slug_available($this->input->post('public_slug'));
if($result == true) {
$data['slugAvailable'] = true;
} else {
@@ -151,8 +151,8 @@ class Logbooks extends CI_Controller {
{
$this->load->model('logbooks_model');
$result = $this->logbooks_model->is_public_slug_available($this->input->post('public_slug'));
if($result == true) {
$returndata = $this->logbooks_model->save_public_slug($this->input->post('public_slug'), $this->input->post('logbook_id'));
echo "<div class=\"alert alert-success\" role=\"alert\">Public Slug Saved</div>";

View File

@@ -575,6 +575,17 @@ class QSO extends CI_Controller {
$this->load->view('qso/components/previous_contacts', $data);
}
public function get_eqsl_default_qslmsg() { // Get ONLY Default eQSL-Message with this function. This is ONLY for QSO relevant!
$return_json = array();
$option_key = $this->input->post('option_key');
if ($option_key > 0) {
$options_object = $this->user_options_model->get_options('eqsl_default_qslmsg', array('option_name' => 'key_station_id', 'option_key' => $option_key))->result();
$return_json['eqsl_default_qslmsg'] = (isset($options_object[0]->option_value)) ? $options_object[0]->option_value : '';
}
header('Content-Type: application/json');
echo json_encode($return_json);
}
function check_locator($grid) {
$grid = $this->input->post('locator');
// Allow empty locator

View File

@@ -57,15 +57,8 @@ class Station extends CI_Controller
$this->load->view('station_profile/create');
$this->load->view('interface_assets/footer');
} else {
if (($station_id = $this->stations->add()) !== false) {
// [eQSL default msg] ADD to user options (option_type='eqsl_default_qslmsg'; option_name='key_station_id'; option_key=station_id; option_value=value) //
$eqsl_default_qslmsg = xss_clean($this->input->post('eqsl_default_qslmsg', true));
if (!empty(trim($eqsl_default_qslmsg))) {
$this->load->model('user_options_model');
$this->user_options_model->set_option('eqsl_default_qslmsg', 'key_station_id', array($station_id => $eqsl_default_qslmsg));
}
}
redirect('station');
$this->stations->add();
redirect('stationsetup');
}
}
@@ -77,32 +70,17 @@ class Station extends CI_Controller
$data['page_title'] = lang('station_location_edit') . $data['my_station_profile']->station_profile_name;
if ($this->form_validation->run() == FALSE) {
// [eQSL default msg] GET from user options (option_type='eqsl_default_qslmsg'; option_name='key_station_id'; option_key=station_id) //
$this->load->model('user_options_model');
$options_object = $this->user_options_model->get_options('eqsl_default_qslmsg', array('option_name' => 'key_station_id', 'option_key' => $id))->result();
$data['eqsl_default_qslmsg'] = (isset($options_object[0]->option_value)) ? $options_object[0]->option_value : '';
$this->load->view('interface_assets/header', $data);
$this->load->view('station_profile/edit');
$this->load->view('interface_assets/footer');
} else {
if ($this->stations->edit() !== false) {
// [eQSL default msg] ADD to user options (option_type='eqsl_default_qslmsg'; option_name='key_station_id'; option_key=station_id; option_value=value) //
$eqsl_default_qslmsg = xss_clean($this->input->post('eqsl_default_qslmsg', true));
$this->load->model('user_options_model');
if (!empty(trim($eqsl_default_qslmsg))) {
$this->user_options_model->set_option('eqsl_default_qslmsg', 'key_station_id', array($id => $eqsl_default_qslmsg));
} else {
$this->user_options_model->del_option('eqsl_default_qslmsg', 'key_station_id', array('option_key' => $id));
}
if ($this->stations->edit()) {
$data['notice'] = lang('station_location') . $this->security->xss_clean($this->input->post('station_profile_name', true)) . " Updated";
}
$data['notice'] = lang('station_location') . $this->security->xss_clean($this->input->post('station_profile_name', true)) . " Updated";
redirect('station');
redirect('stationsetup');
}
} else {
redirect('station');
redirect('stationsetup');
}
}
@@ -125,22 +103,19 @@ class Station extends CI_Controller
} else {
$this->stations->add();
redirect('station');
redirect('stationsetup');
}
} else {
redirect('station');
redirect('stationsetup');
}
}
public function edit_favorite($id)
public function edit_favourite($id)
{
$is_favorite = $this->user_options_model->get_options('station_location', array('option_name'=>'is_favorite', 'option_key'=>$id))->row()->option_value ?? 'false';
if ($is_favorite == 'true') {
$this->user_options_model->del_option('station_location', 'is_favorite', array('option_key'=>$id));
} else if ($is_favorite == 'false') {
$this->user_options_model->set_option('station_location', 'is_favorite', array($id=>'true'));
}
redirect('station');
$this->load->model('stations');
$this->stations->edit_favourite($id);
redirect('stationsetup');
}
function load_station_for_editing($id): array
@@ -155,9 +130,7 @@ class Station extends CI_Controller
$item_id_clean = $this->security->xss_clean($id);
$station_profile_query = $this->stations->profile($item_id_clean);
$data['my_station_profile'] = $station_profile_query->row();
$data['my_station_profile'] = $this->stations->profile_full($item_id_clean);
$data['dxcc_list'] = $this->dxcc->list();
@@ -176,19 +149,19 @@ class Station extends CI_Controller
}
//$this->stations->logbook_session_data();
redirect('station');
redirect('stationsetup');
}
function set_active($current, $new, $is_ajax = null)
{
$this->load->model('stations');
$this->stations->set_active($current, $new);
if ($is_ajax != null) {
return;
}
redirect('station');
redirect('stationsetup');
}
public function delete($id)
@@ -196,11 +169,8 @@ class Station extends CI_Controller
$this->load->model('stations');
if ($this->stations->check_station_is_accessible($id)) {
$this->stations->delete($id);
// [eQSL default msg] DELETE user options //
$this->load->model('user_options_model');
$this->user_options_model->del_option('eqsl_default_qslmsg', 'key_station_id', array('option_key' => $id));
}
redirect('station');
redirect('stationsetup');
}
public function deletelog($id)
@@ -209,7 +179,7 @@ class Station extends CI_Controller
if ($this->stations->check_station_is_accessible($id)) {
$this->stations->deletelog($id);
}
redirect('station');
redirect('stationsetup');
}
/*
@@ -246,19 +216,4 @@ class Station extends CI_Controller
echo json_encode($json);
}
// [eQSL default msg] Function return options from this station (but can be general use) //
public function get_options()
{
$return_json = array();
$option_type = $this->input->post('option_type');
$option_name = $this->input->post('option_name');
$option_key = $this->input->post('option_key');
if (!empty($option_type) && !empty($option_name) && ($option_key > 0)) {
$this->load->model('user_options_model');
$options_object = $this->user_options_model->get_options($option_type, array('option_name' => $option_name, 'option_key' => $option_key))->result();
$return_json[$option_type] = (isset($options_object[0]->option_value)) ? $options_object[0]->option_value : '';
}
header('Content-Type: application/json');
echo json_encode($return_json);
}
}

View File

@@ -0,0 +1,321 @@
<?php if ( ! defined('BASEPATH')) exit('No direct script access allowed');
/*
Handles Displaying of information for station tools.
*/
class Stationsetup extends CI_Controller {
function __construct()
{
parent::__construct();
$this->load->helper(array('form', 'url'));
$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'); }
}
public function index() {
$this->load->model('stations');
$this->load->model('Logbook_model');
$this->load->model('logbooks_model');
$data['my_logbooks'] = $this->logbooks_model->show_all();
$data['stations'] = $this->stations->all_with_count();
$data['current_active'] = $this->stations->find_active();
$data['is_there_qsos_with_no_station_id'] = $this->Logbook_model->check_for_station_id();
$footerData = [];
$footerData['scripts'] = [
'assets/js/sections/stationsetup.js?' . filemtime(realpath(__DIR__ . "/../../assets/js/sections/stationsetup.js")),
];
// Render Page
$data['page_title'] = "Station Setup";
$this->load->view('interface_assets/header', $data);
$this->load->view('stationsetup/stationsetup');
$this->load->view('interface_assets/footer', $footerData);
}
public function DeleteStation_json() {
$id2del=xss_clean($this->input->post('id2del',true));
if ($id2del ?? '' != '') {
$this->load->model('stations');
if ($this->stations->check_station_is_accessible($id2del)) {
$this->stations->delete($id2del);
$data['success']=1;
} else {
$data['success']=0;
$data['flashdata']='Not allowed';
}
} else {
$data['success']=0;
$data['flashdata']='Error';
}
echo json_encode($data);
}
public function EmptyStation_json() {
$id2empty=xss_clean($this->input->post('id2Empty',true));
if ($id2empty ?? '' != '') {
$this->load->model('stations');
if ($this->stations->check_station_is_accessible($id2empty)) {
$this->stations->deletelog($id2empty);
$data['success']=1;
} else {
$data['success']=0;
$data['flashdata']='Not allowed';
}
} else {
$data['success']=0;
$data['flashdata']='Error';
}
echo json_encode($data);
}
public function setActiveStation_json() {
$id2act=xss_clean($this->input->post('id2setActive',true));
if ($id2act ?? '' != '') {
$this->load->model('stations');
$current=$this->stations->find_active();
$this->stations->set_active($current, $id2act);
$data['success']=1;
} else {
$data['success']=0;
$data['flashdata']='Error';
}
echo json_encode($data);
}
// get active station for quickswitcher
public function getActiveStation() {
$active_loc = $this->stations->find_active();
echo json_encode($active_loc);
}
public function setFavorite_json() {
$id2fav = xss_clean($this->input->post('id2Favorite', true));
if ($id2fav ?? '' != '') {
$this->load->model('stations');
$this->stations->edit_favourite($id2fav);
$data['success'] = 1;
} else {
$data['success'] = 0;
$data['flashdata'] ='Error';
}
echo json_encode($data);
}
public function setActiveLogbook_json() {
$id2act=xss_clean($this->input->post('id2setActive',true));
if ($id2act ?? '' != '') {
$this->load->model('logbooks_model');
$this->logbooks_model->set_logbook_active($id2act);
$data['success']=1;
} else {
$data['success']=0;
$data['flashdata']='Error';
}
echo json_encode($data);
}
public function deleteLogbook_json() {
$id2del=xss_clean($this->input->post('id2delete',true));
if ($id2del ?? '' != '') {
$this->load->model('logbooks_model');
$this->logbooks_model->delete($id2del);
$data['success']=1;
} else {
$data['success']=0;
$data['flashdata']='Error';
}
echo json_encode($data);
}
public function newLogbook_json() {
$this->load->library('form_validation');
$this->form_validation->set_rules('stationLogbook_Name', 'Station Logbook Name', 'required');
if ($this->form_validation->run() == FALSE) {
$data['flashdata']=validation_errors();
$data['success']=0;
echo json_encode($data);
} else {
$this->load->model('logbooks_model');
$newId=$this->logbooks_model->add(xss_clean($this->input->post('stationLogbook_Name', true)));
if ($newId > 0) {
$data['success']=1;
} else {
$data['success']=0;
$data['flashdata']='Error';
}
echo json_encode($data);
}
}
public function newLogbook() {
$data['page_title'] = "Create Station Logbook";
$this->load->view('stationsetup/create', $data);
}
public function newLocation() {
$this->load->model('stations');
$this->load->model('dxcc');
$data['dxcc_list'] = $this->dxcc->list();
$this->load->model('logbook_model');
$data['iota_list'] = $this->logbook_model->fetchIota();
$data['page_title'] = lang('station_location_create_header');
$this->load->view('station_profile/create', $data);
}
public function fetchLogbooks() {
$this->load->model('logbooks_model');
$hres=[];
$result = $this->logbooks_model->show_all()->result();
foreach ($result as $entry) {
$single=(Object)[];
$single->logbook_id=$entry->logbook_id;
$single->logbook_name=$entry->logbook_name;
$single->logbook_state=$this->lbstate2html($entry->logbook_id);
$single->logbook_edit=$this->lbedit2html($entry->logbook_id,$entry->logbook_name);
$single->logbook_delete=$this->lbdel2html($entry->logbook_id,$entry->logbook_name);
$single->logbook_link=$this->lblnk2html($entry->public_slug,$entry->logbook_name);
$single->logbook_publicsearch = $this->lbpublicsearch2html($entry->public_search);
array_push($hres,$single);
}
echo json_encode($hres);
}
private function lbpublicsearch2html($publicsearch) {
return ($publicsearch=='1' ? '<span class="badge text-bg-success">Enabled</span>' : 'Disabled');
}
private function lbstate2html($id) {
if($this->session->userdata('active_station_logbook') != $id) {
$htmret='<button id="'.$id.'" class="setActiveLogbook btn btn-outline-primary btn-sm">'.lang('station_logbooks_set_active').'</button>';
} else {
$htmret="<span class='badge text-bg-success'>" . lang('station_logbooks_active_logbook') . "</span>";
}
return $htmret;
}
private function lbdel2html($id, $logbook_name) {
if($this->session->userdata('active_station_logbook') != $id) {
$htmret='<button id="'.$id.'" class="deleteLogbook btn btn-danger btn-sm" cnftext="'.lang('station_logbooks_confirm_delete').$logbook_name.'"><i class="fas fa-trash-alt"></i></button>';
} else {
$htmret='';
}
return $htmret;
}
private function lblnk2html($public_slug, $logbook_name) {
if($public_slug != '') {
$htmret='<a target="_blank" href="'.site_url('visitor')."/".$public_slug.'" class="btn btn-outline-primary btn-sm"><i class="fas fa-globe" title="'.lang('station_logbooks_view_public') . $logbook_name.'"></i></a>';
} else {
$htmret='';
}
return $htmret;
}
private function lbps2html($id, $logbook_name) {
return '<a href="'.site_url('logbooks/edit')."/".$id.'" class="btn btn-outline-primary btn-sm"><i class="fas fa-edit" title="'.lang('station_logbooks_edit_logbook').': '.$logbook_name.'"></i></a>';
}
private function lbedit2html($id, $logbook_name) {
return '<a href="'.site_url('logbooks/edit')."/".$id.'" class="btn btn-outline-primary btn-sm"><i class="fas fa-edit" title="'.lang('station_logbooks_edit_logbook').': '.$logbook_name.'"></i></a>';
}
public function fetchLocations() {
$this->load->model('stations');
$this->load->model('Logbook_model');
$result = $this->stations->all_with_count()->result();
$current_active = $this->stations->find_active();
$data['is_there_qsos_with_no_station_id'] = $this->Logbook_model->check_for_station_id();
$quickswitch_enabled = ($this->user_options_model->get_options('header_menu', array('option_name'=>'locations_quickswitch'))->row()->option_value ?? 'false');
$hres=[];
foreach ($result as $entry) {
$single=(Object)[];
$single->station_id = $this->stationid2html($entry->station_id);
$single->station_name = $entry->station_profile_name;
$single->station_callsign = $entry->station_callsign;
$single->station_country = $this->stationcountry2html($entry->station_country, $entry->dxcc_end);
$single->station_gridsquare = $entry->station_gridsquare;
$single->station_badge = $this->stationbadge2html($entry->station_active, $entry->qso_total, $current_active, $entry->station_profile_name,$entry->station_id);
$single->station_edit = $this->stationedit2html($entry->station_id);
$single->station_emptylog = $this->stationemptylog2html($entry->station_id);
$single->station_copylog = $this->stationcopy2html($entry->station_id);
$single->station_delete = $this->stationdelete2html($entry->station_id, $entry->station_profile_name, $entry->station_active);
$single->station_favorite = $this->stationfavorite2html($entry->station_id, $quickswitch_enabled);
array_push($hres,$single);
}
echo json_encode($hres);
}
private function stationfavorite2html($id, $quickswitch_enabled) {
if ($quickswitch_enabled == 'false') {
return '';
}
$locationFavorite = ($this->user_options_model->get_options('station_location', array('option_name'=>'is_favorite', 'option_key'=>$id))->row()->option_value ?? 'false');
if ($locationFavorite == 'true') {
$favStarClasses = 'class="setFavorite fas fa-star btn btn-sm" style="color: #ffc82b;"';
} else {
$favStarClasses = 'class="setFavorite far fa-star btn btn-sm" style="color: #a58118;"';
}
return '<button id ="' . $id .'" title="mark/unmark as favorite" ' . $favStarClasses . ' </a>';
}
private function stationid2html($station_id) {
return '<span class="badge bg-info">'.$station_id.'</span>';
}
private function stationbadge2html($station_active, $qso_total, $current_active, $station_profile_name, $id) {
$returntext = '';
if($station_active != 1) {
$returntext .= '<button id="'.$id.'" class="setActiveStation btn btn-outline-secondary btn-sm" cnftext="'. lang('station_location_confirm_active') . $station_profile_name .'">' . lang('station_location_set_active') . '</button><br/>';
} else {
$returntext .= '<span class="badge bg-success text-bg-success">' . lang('station_location_active') . '</span><br/>';
}
$returntext .='<span class="badge bg-light">' . $qso_total .' '. lang('gen_hamradio_qso') . '</span>';
return $returntext;
}
private function stationedit2html($id) {
return '<a href="' . site_url('station/edit')."/" . $id . '" title="' . lang('admin_edit') . '" class="btn btn-outline-primary btn-sm"><i class="fas fa-edit"></i></a>';
}
private function stationemptylog2html($id) {
return '<button id="'. $id . '" class="EmptyStation btn btn-danger btn-sm" title="' . lang('station_location_emptylog') . '" cnftext="' . lang('station_location_confirm_del_qso') . '"><i class="fas fa-trash-alt"></i></button>';
}
private function stationcopy2html($id) {
return '<a href="' . site_url('station/copy') . "/" . $id . '" title="' . lang('admin_copy') . '" class="btn btn-outline-primary btn-sm"><i class="fas fa-copy"></i></a>';
}
private function stationdelete2html($id, $station_profile_name, $station_active) {
if($station_active != 1) {
return '<button id="'.$id . '" class="DeleteStation btn btn-danger btn-sm" title="' . lang('admin_delete') . '" cnftext="' . lang('station_location_confirm_del_stationlocation') . $station_profile_name . lang('station_location_confirm_del_stationlocation_qso') . '"><i class="fas fa-trash-alt"></i></button>';
}
return '';
}
private function stationcountry2html($station_country, $dxcc_end) {
$returntext = $station_country == '' ? '- NONE -' : $station_country;
if ($dxcc_end != NULL) {
$returntext .= ' <span class="badge badge-danger">'.lang('gen_hamradio_deleted_dxcc').'</span>';
}
return $returntext;
}
}

View File

@@ -227,8 +227,8 @@ $lang['general_word_today'] = 'Today';
$lang['dashboard_php_version_warning'] = 'You need to upgrade your PHP version. Minimum version is 7.4. Your version is';
$lang['dashboard_country_files_warning'] = 'You need to update country files! Go <a href="'.site_url('update').'">here</a> to do it!';
$lang['dashboard_locations_warning'] = 'You have no station locations. Go <a href="'. site_url('station') . '">here</a> to create it!';
$lang['dashboard_logbooks_warning'] = 'You have no station logbook. Go <a href="'. site_url('logbooks') . '">here</a> to create it!';
$lang['dashboard_locations_warning'] = 'You have no station locations. Go <a href="'. site_url('stationsetup') . '">here</a> to create it!';
$lang['dashboard_logbooks_warning'] = 'You have no station logbook. Go <a href="'. site_url('stationsetup') . '">here</a> to create it!';
$lang['hams_at_no_activations_found'] = 'No upcoming activations found. Please check back later.';

View File

@@ -80,8 +80,7 @@ $lang['menu_account'] = 'Account';
$lang['menu_station_logbooks'] = 'Station Logbooks';
$lang['menu_station_locations'] = 'Station Locations';
$lang['menu_select_location'] = "Select a Location";
$lang['menu_select_location_show_all'] = "Show all";
$lang['menu_choose_another_logbook'] = "Choose another Logbook";
$lang['menu_station_setup'] = 'Station Setup';
$lang['menu_bands'] = 'Bands';
$lang['menu_adif_import_export'] = 'ADIF Import / Export';
$lang['menu_other_export'] = "Other Export Options";

View File

@@ -58,6 +58,7 @@ $lang['station_location_updated_suff'] = ' Updated.';
$lang['station_location_warning'] = 'Attention: You need to set an active station location. Go to Callsign->Station Location to select one.';
$lang['station_location_reassign_at'] = 'Please reassign them at ';
$lang['station_location_warning_reassign'] = 'Due to recent changes within Wavelog you need to reassign QSOs to your station profiles.';
$lang['station_location_id'] = 'ID';
$lang['station_location_name'] = 'Profile Name';
$lang['station_location_name_hint'] = 'Shortname for the station location. For example: Home (HM54ip)';
$lang['station_location_callsign'] = 'Station Callsign';

View File

@@ -227,8 +227,8 @@ $lang['general_word_today'] = '今天';
$lang['dashboard_php_version_warning'] = '您需要升级您的 PHP 版本。 最低版本为 7.4。 你的版本是';
$lang['dashboard_country_files_warning'] = '您需要更新国家/地区文件! 请前往<a href="'.site_url('update').'">此处</a>执行此操作!';
$lang['dashboard_locations_warning'] = '您没有电台站位置。 前往<a href="'.site_url('station') .'">此处</a>创建它!';
$lang['dashboard_logbooks_warning'] = '你没有电台日志。 请前往<a href="'.site_url('logbooks') .'">此处</a>创建它!';
$lang['dashboard_locations_warning'] = '您没有电台站位置。 前往<a href="'.site_url('stationsetup') .'">此处</a>创建它!';
$lang['dashboard_logbooks_warning'] = '你没有电台日志。 请前往<a href="'.site_url('stationsetup') .'">此处</a>创建它!';
$lang['hams_at_no_activations_found'] = '未找到即将进行的激活。 请稍后再回来查看。';

View File

@@ -80,8 +80,7 @@ $lang['menu_account'] = '账户';
$lang['menu_station_logbooks'] = '电台站日志簿';
$lang['menu_station_locations'] = '电台站位置';
$lang['menu_select_location'] = "Select a Location";
$lang['menu_select_location_show_all'] = "Show all";
$lang['menu_choose_another_logbook'] = "Choose another Logbook";
$lang['menu_station_setup'] = 'Station Setup';
$lang['menu_bands'] = '波段';
$lang['menu_adif_import_export'] = 'ADIF 导入/导出';
$lang['menu_other_export'] = "Other Export Options";

View File

@@ -58,6 +58,7 @@ $lang['station_location_updated_suff'] = ' Updated.';
$lang['station_location_warning'] = 'Attention: You need to set an active station location. Go to Callsign->Station Location to select one.';
$lang['station_location_reassign_at'] = 'Please reassign them at ';
$lang['station_location_warning_reassign'] = 'Due to recent changes within Wavelog you need to reassign QSOs to your station profiles.';
$lang['station_location_id'] = 'ID';
$lang['station_location_name'] = 'Profile Name';
$lang['station_location_name_hint'] = 'Shortname for the station location. For example: Home (HM54ip)';
$lang['station_location_callsign'] = 'Station Callsign';

View File

@@ -225,6 +225,11 @@ $lang['southamerica'] = 'Jižní Amerika';
$lang['gen_band_selection'] = 'Výběr pásma';
$lang['general_word_today'] = 'Dnes';
$lang['dashboard_php_version_warning'] = 'You need to upgrade your PHP version. Minimum version is 7.4. Your version is';
$lang['dashboard_country_files_warning'] = 'You need to update country files! Go <a href="'.site_url('update').'">here</a> to do it!';
$lang['dashboard_locations_warning'] = 'You have no station locations. Go <a href="'. site_url('stationsetup') . '">here</a> to create it!';
$lang['dashboard_logbooks_warning'] = 'You have no station logbook. Go <a href="'. site_url('stationsetup') . '">here</a> to create it!';
$lang['hams_at_no_activations_found'] = 'No upcoming activations found. Please check back later.';
$lang['datatables_language'] = "en-GB";

View File

@@ -80,8 +80,7 @@ $lang['menu_account'] = 'Účet';
$lang['menu_station_logbooks'] = 'Logy stanice';
$lang['menu_station_locations'] = 'Umístění stanice';
$lang['menu_select_location'] = "Select a Location";
$lang['menu_select_location_show_all'] = "Show all";
$lang['menu_choose_another_logbook'] = "Choose another Logbook";
$lang['menu_station_setup'] = 'Station Setup';
$lang['menu_bands'] = 'Pásmo';
$lang['menu_adif_import_export'] = 'ADIF import / export';
$lang['menu_other_export'] = "Other Export Options";

View File

@@ -58,6 +58,7 @@ $lang['station_location_updated_suff'] = ' Updated.';
$lang['station_location_warning'] = 'Attention: You need to set an active station location. Go to Callsign->Station Location to select one.';
$lang['station_location_reassign_at'] = 'Please reassign them at ';
$lang['station_location_warning_reassign'] = 'Due to recent changes within Wavelog you need to reassign QSOs to your station profiles.';
$lang['station_location_id'] = 'ID';
$lang['station_location_name'] = 'Profile Name';
$lang['station_location_name_hint'] = 'Shortname for the station location. For example: Home (HM54ip)';
$lang['station_location_callsign'] = 'Station Callsign';

View File

@@ -227,8 +227,8 @@ $lang['general_word_today'] = 'Today';
$lang['dashboard_php_version_warning'] = 'You need to upgrade your PHP version. Minimum version is 7.4. Your version is';
$lang['dashboard_country_files_warning'] = 'You need to update country files! Go <a href="'.site_url('update').'">here</a> to do it!';
$lang['dashboard_locations_warning'] = 'You have no station locations. Go <a href="'. site_url('station') . '">here</a> to create it!';
$lang['dashboard_logbooks_warning'] = 'You have no station logbook. Go <a href="'. site_url('logbooks') . '">here</a> to create it!';
$lang['dashboard_locations_warning'] = 'You have no station locations. Go <a href="'. site_url('stationsetup') . '">here</a> to create it!';
$lang['dashboard_logbooks_warning'] = 'You have no station logbook. Go <a href="'. site_url('stationsetup') . '">here</a> to create it!';
$lang['hams_at_no_activations_found'] = 'No upcoming activations found. Please check back later.';

View File

@@ -80,8 +80,7 @@ $lang['menu_account'] = 'Account';
$lang['menu_station_logbooks'] = 'Station Logbooks';
$lang['menu_station_locations'] = 'Station Locations';
$lang['menu_select_location'] = "Select a Location";
$lang['menu_select_location_show_all'] = "Show all";
$lang['menu_choose_another_logbook'] = "Choose another Logbook";
$lang['menu_station_setup'] = 'Station Setup';
$lang['menu_bands'] = 'Bands';
$lang['menu_adif_import_export'] = 'ADIF Import / Export';
$lang['menu_other_export'] = "Other Export Options";

View File

@@ -58,6 +58,7 @@ $lang['station_location_updated_suff'] = ' Updated.';
$lang['station_location_warning'] = 'Attention: You need to set an active station location. Go to Callsign->Station Location to select one.';
$lang['station_location_reassign_at'] = 'Please reassign them at ';
$lang['station_location_warning_reassign'] = 'Due to recent changes within Wavelog you need to reassign QSOs to your station profiles.';
$lang['station_location_id'] = 'ID';
$lang['station_location_name'] = 'Profile Name';
$lang['station_location_name_hint'] = 'Shortname for the station location. For example: Home (HM54ip)';
$lang['station_location_callsign'] = 'Station Callsign';

View File

@@ -227,8 +227,8 @@ $lang['general_word_today'] = 'Today';
$lang['dashboard_php_version_warning'] = 'You need to upgrade your PHP version. Minimum version is 7.4. Your version is';
$lang['dashboard_country_files_warning'] = 'You need to update country files! Go <a href="'.site_url('update').'">here</a> to do it!';
$lang['dashboard_locations_warning'] = 'You have no station locations. Go <a href="'. site_url('station') . '">here</a> to create it!';
$lang['dashboard_logbooks_warning'] = 'You have no station logbook. Go <a href="'. site_url('logbooks') . '">here</a> to create it!';
$lang['dashboard_locations_warning'] = 'You have no station locations. Go <a href="'. site_url('stationsetup') . '">here</a> to create it!';
$lang['dashboard_logbooks_warning'] = 'You have no station logbook. Go <a href="'. site_url('stationsetup') . '">here</a> to create it!';
$lang['hams_at_no_activations_found'] = 'No upcoming activations found. Please check back later.';

View File

@@ -80,8 +80,7 @@ $lang['menu_account'] = 'Account';
$lang['menu_station_logbooks'] = 'Station Logbooks';
$lang['menu_station_locations'] = 'Station Locations';
$lang['menu_select_location'] = "Select a Location";
$lang['menu_select_location_show_all'] = "Show all";
$lang['menu_choose_another_logbook'] = "Choose another Logbook";
$lang['menu_station_setup'] = 'Station Setup';
$lang['menu_bands'] = 'Bands';
$lang['menu_adif_import_export'] = 'ADIF Import / Export';
$lang['menu_other_export'] = "Other Export Options";

View File

@@ -58,6 +58,7 @@ $lang['station_location_updated_suff'] = ' Updated.';
$lang['station_location_warning'] = 'Attention: You need to set an active station location. Go to Callsign->Station Location to select one.';
$lang['station_location_reassign_at'] = 'Please reassign them at ';
$lang['station_location_warning_reassign'] = 'Due to recent changes within Wavelog you need to reassign QSOs to your station profiles.';
$lang['station_location_id'] = 'ID';
$lang['station_location_name'] = 'Profile Name';
$lang['station_location_name_hint'] = 'Shortname for the station location. For example: Home (HM54ip)';
$lang['station_location_callsign'] = 'Station Callsign';

View File

@@ -227,8 +227,8 @@ $lang['general_word_today'] = 'Today';
$lang['dashboard_php_version_warning'] = 'You need to upgrade your PHP version. Minimum version is 7.4. Your version is';
$lang['dashboard_country_files_warning'] = 'You need to update country files! Go <a href="'.site_url('update').'">here</a> to do it!';
$lang['dashboard_locations_warning'] = 'You have no station locations. Go <a href="'. site_url('station') . '">here</a> to create it!';
$lang['dashboard_logbooks_warning'] = 'You have no station logbook. Go <a href="'. site_url('logbooks') . '">here</a> to create it!';
$lang['dashboard_locations_warning'] = 'You have no station locations. Go <a href="'. site_url('stationsetup') . '">here</a> to create it!';
$lang['dashboard_logbooks_warning'] = 'You have no station logbook. Go <a href="'. site_url('stationsetup') . '">here</a> to create it!';
$lang['hams_at_no_activations_found'] = 'No upcoming activations found. Please check back later.';

View File

@@ -80,8 +80,7 @@ $lang['menu_account'] = 'Käyttäjätili';
$lang['menu_station_logbooks'] = 'Station Logbooks';
$lang['menu_station_locations'] = 'Station Locations';
$lang['menu_select_location'] = "Select a Location";
$lang['menu_select_location_show_all'] = "Show all";
$lang['menu_choose_another_logbook'] = "Choose another Logbook";
$lang['menu_station_setup'] = 'Station Setup';
$lang['menu_bands'] = 'Bandit';
$lang['menu_adif_import_export'] = 'ADIF Tuonti / Vienti';
$lang['menu_other_export'] = "Other Export Options";

View File

@@ -58,6 +58,7 @@ $lang['station_location_updated_suff'] = ' Updated.';
$lang['station_location_warning'] = 'Attention: You need to set an active station location. Go to Callsign->Station Location to select one.';
$lang['station_location_reassign_at'] = 'Please reassign them at ';
$lang['station_location_warning_reassign'] = 'Due to recent changes within Wavelog you need to reassign QSOs to your station profiles.';
$lang['station_location_id'] = 'ID';
$lang['station_location_name'] = 'Profile Name';
$lang['station_location_name_hint'] = 'Shortname for the station location. For example: Home (HM54ip)';
$lang['station_location_callsign'] = 'Station Callsign';

View File

@@ -227,8 +227,8 @@ $lang['general_word_today'] = "Aujourd'hui";
$lang['dashboard_php_version_warning'] = "Vous devez mettre à jour votre version PHP. La version minimale est 7.4. Votre version est";
$lang['dashboard_country_files_warning'] = "Vous devez mettre à jour les fichiers pays ! Cliquez <a href=\"".site_url('update')."\">ici</a> pour le faire !";
$lang['dashboard_locations_warning'] = "Vous n'avez pas de lieu de station. Cliquez <a href=\"". site_url('station') . "\">ici</a> pour en créer un !";
$lang['dashboard_logbooks_warning'] = "Vous n'avez pas de journal de travail pour la station. Aller sur cette <a href=\"". site_url('logbooks') . "\">page</a> pour en créer un !";
$lang['dashboard_locations_warning'] = "Vous n'avez pas de lieu de station. Cliquez <a href=\"". site_url('stationsetup') . "\">ici</a> pour en créer un !";
$lang['dashboard_logbooks_warning'] = "Vous n'avez pas de journal de travail pour la station. Aller sur cette <a href=\"". site_url('stationsetup') . "\">page</a> pour en créer un !";
$lang['hams_at_no_activations_found'] = "Aucune activation à venir trouvée. Veuillez revenir plus tard.";

View File

@@ -80,8 +80,7 @@ $lang['menu_account'] = 'Account';
$lang['menu_station_logbooks'] = 'Station Logbooks';
$lang['menu_station_locations'] = 'Station Locations';
$lang['menu_select_location'] = "Select a Location";
$lang['menu_select_location_show_all'] = "Show all";
$lang['menu_choose_another_logbook'] = "Choose another Logbook";
$lang['menu_station_setup'] = 'Station Setup';
$lang['menu_bands'] = 'Bands';
$lang['menu_adif_import_export'] = 'ADIF Import / Export';
$lang['menu_other_export'] = "Other Export Options";

View File

@@ -58,6 +58,7 @@ $lang['station_location_updated_suff'] = "mis à jour.";
$lang['station_location_warning'] = 'Attention: You need to set an active station location. Go to Callsign->Station Location to select one.';
$lang['station_location_reassign_at'] = 'Please reassign them at ';
$lang['station_location_warning_reassign'] = 'Due to recent changes within Wavelog you need to reassign QSOs to your station profiles.';
$lang['station_location_id'] = 'ID';
$lang['station_location_name'] = 'Profile Name';
$lang['station_location_name_hint'] = 'Shortname for the station location. For example: Home (HM54ip)';
$lang['station_location_callsign'] = 'Station Callsign';

View File

@@ -227,8 +227,8 @@ $lang['general_word_today'] = 'Heute';
$lang['dashboard_php_version_warning'] = 'Die PHP Version is zu alt. Benötigt wird mindestens die Version 7.4. Die installierte Version ist';
$lang['dashboard_country_files_warning'] = 'Die Länderlisten müssen aktualisiert werden! Klicke <a href="'.site_url('update').'">hier</a>, um das zu tun!';
$lang['dashboard_locations_warning'] = 'Es wurde kein Stationsstandort angelegt! Klicke <a href="'. site_url('station') . '">hier</a>, um das zu tun!';
$lang['dashboard_logbooks_warning'] = 'Es wurde kein Stationslogbuch angelegt. Klicke <a href="'. site_url('logbooks') . '">hier</a>, um das zu tun!';
$lang['dashboard_locations_warning'] = 'Es wurde kein Stationsstandort angelegt! Klicke <a href="'. site_url('stationsetup') . '">hier</a>, um das zu tun!';
$lang['dashboard_logbooks_warning'] = 'Es wurde kein Stationslogbuch angelegt. Klicke <a href="'. site_url('stationsetup') . '">hier</a>, um das zu tun!';
$lang['hams_at_no_activations_found'] = 'Keine bevorstehenden Aktivierungen gefunden. Bitte später noch einmal vorbeischauen.';

View File

@@ -80,8 +80,7 @@ $lang['menu_account'] = 'Konto';
$lang['menu_station_logbooks'] = 'Stationslogbücher';
$lang['menu_station_locations'] = 'Stationsstandorte';
$lang['menu_select_location'] = "Wähle einen Stationsstandort";
$lang['menu_select_location_show_all'] = "Zeige alle";
$lang['menu_choose_another_logbook'] = "Wähle ein anderes Logbuch";
$lang['menu_station_setup'] = 'Stations Setup';
$lang['menu_bands'] = 'Bänder';
$lang['menu_adif_import_export'] = 'ADIF Import / Export';
$lang['menu_other_export'] = "Andere Export Optionen";

View File

@@ -58,6 +58,7 @@ $lang['station_location_updated_suff'] = ' aktualisiert.'; // nur letztes Wort i
$lang['station_location_warning'] = 'Achtung: Du musst einen aktiven Stationsstandort auswählen. Gehe zu Rufzeichen -> Stationsstandorte um einen zu aktivieren.';
$lang['station_location_reassign_at'] = 'Bitte mache die Zuordnung in ';
$lang['station_location_warning_reassign'] = 'Aufgrund von Änderungen in Wavelog musst du QSOs wieder einem Stationsstandort zuordnen.';
$lang['station_location_id'] = 'ID';
$lang['station_location_name'] = 'Station Name';
$lang['station_location_name_hint'] = 'Kurzname für den Stationsstandort. Zum Beispiel: Home (HM54ip)';
$lang['station_location_callsign'] = 'Station Rufzeichen';

View File

@@ -227,8 +227,8 @@ $lang['general_word_today'] = 'Today';
$lang['dashboard_php_version_warning'] = 'You need to upgrade your PHP version. Minimum version is 7.4. Your version is';
$lang['dashboard_country_files_warning'] = 'You need to update country files! Go <a href="'.site_url('update').'">here</a> to do it!';
$lang['dashboard_locations_warning'] = 'You have no station locations. Go <a href="'. site_url('station') . '">here</a> to create it!';
$lang['dashboard_logbooks_warning'] = 'You have no station logbook. Go <a href="'. site_url('logbooks') . '">here</a> to create it!';
$lang['dashboard_locations_warning'] = 'You have no station locations. Go <a href="'. site_url('stationsetup') . '">here</a> to create it!';
$lang['dashboard_logbooks_warning'] = 'You have no station logbook. Go <a href="'. site_url('stationsetup') . '">here</a> to create it!';
$lang['hams_at_no_activations_found'] = 'No upcoming activations found. Please check back later.';

View File

@@ -80,8 +80,7 @@ $lang['menu_account'] = 'Account';
$lang['menu_station_logbooks'] = 'Station Logbooks';
$lang['menu_station_locations'] = 'Station Locations';
$lang['menu_select_location'] = "Select a Location";
$lang['menu_select_location_show_all'] = "Show all";
$lang['menu_choose_another_logbook'] = "Choose another Logbook";
$lang['menu_station_setup'] = 'Station Setup';
$lang['menu_bands'] = 'Bands';
$lang['menu_adif_import_export'] = 'ADIF Import / Export';
$lang['menu_other_export'] = "Other Export Options";

View File

@@ -58,6 +58,7 @@ $lang['station_location_updated_suff'] = ' Updated.';
$lang['station_location_warning'] = 'Attention: You need to set an active station location. Go to Callsign->Station Location to select one.';
$lang['station_location_reassign_at'] = 'Please reassign them at ';
$lang['station_location_warning_reassign'] = 'Due to recent changes within Wavelog you need to reassign QSOs to your station profiles.';
$lang['station_location_id'] = 'ID';
$lang['station_location_name'] = 'Profile Name';
$lang['station_location_name_hint'] = 'Shortname for the station location. For example: Home (HM54ip)';
$lang['station_location_callsign'] = 'Station Callsign';

View File

@@ -227,8 +227,8 @@ $lang['general_word_today'] = 'Today';
$lang['dashboard_php_version_warning'] = 'You need to upgrade your PHP version. Minimum version is 7.4. Your version is';
$lang['dashboard_country_files_warning'] = 'You need to update country files! Go <a href="'.site_url('update').'">here</a> to do it!';
$lang['dashboard_locations_warning'] = 'You have no station locations. Go <a href="'. site_url('station') . '">here</a> to create it!';
$lang['dashboard_logbooks_warning'] = 'You have no station logbook. Go <a href="'. site_url('logbooks') . '">here</a> to create it!';
$lang['dashboard_locations_warning'] = 'You have no station locations. Go <a href="'. site_url('stationsetup') . '">here</a> to create it!';
$lang['dashboard_logbooks_warning'] = 'You have no station logbook. Go <a href="'. site_url('stationsetup') . '">here</a> to create it!';
$lang['hams_at_no_activations_found'] = 'No upcoming activations found. Please check back later.';

View File

@@ -80,8 +80,7 @@ $lang['menu_account'] = 'Account';
$lang['menu_station_logbooks'] = 'Station Logbooks';
$lang['menu_station_locations'] = 'Station Locations';
$lang['menu_select_location'] = "Select a Location";
$lang['menu_select_location_show_all'] = "Show all";
$lang['menu_choose_another_logbook'] = "Choose another Logbook";
$lang['menu_station_setup'] = 'Station Setup';
$lang['menu_bands'] = 'Bands';
$lang['menu_adif_import_export'] = 'ADIF Import / Export';
$lang['menu_other_export'] = "Other Export Options";

View File

@@ -58,6 +58,7 @@ $lang['station_location_updated_suff'] = ' Updated.';
$lang['station_location_warning'] = 'Attention: You need to set an active station location. Go to Callsign->Station Location to select one.';
$lang['station_location_reassign_at'] = 'Please reassign them at ';
$lang['station_location_warning_reassign'] = 'Due to recent changes within Wavelog you need to reassign QSOs to your station profiles.';
$lang['station_location_id'] = 'ID';
$lang['station_location_name'] = 'Profile Name';
$lang['station_location_name_hint'] = 'Shortname for the station location. For example: Home (HM54ip)';
$lang['station_location_callsign'] = 'Station Callsign';

View File

@@ -225,6 +225,11 @@ $lang['southamerica'] = 'South America';
$lang['gen_band_selection'] = 'Band selection';
$lang['general_word_today'] = 'Today';
$lang['dashboard_php_version_warning'] = 'You need to upgrade your PHP version. Minimum version is 7.4. Your version is';
$lang['dashboard_country_files_warning'] = 'You need to update country files! Go <a href="'.site_url('update').'">here</a> to do it!';
$lang['dashboard_locations_warning'] = 'You have no station locations. Go <a href="'. site_url('stationsetup') . '">here</a> to create it!';
$lang['dashboard_logbooks_warning'] = 'You have no station logbook. Go <a href="'. site_url('stationsetup') . '">here</a> to create it!';
$lang['hams_at_no_activations_found'] = 'No upcoming activations found. Please check back later.';
$lang['datatables_language'] = "en-GB";

View File

@@ -80,8 +80,7 @@ $lang['menu_account'] = 'Account';
$lang['menu_station_logbooks'] = 'Station Logbooks';
$lang['menu_station_locations'] = 'Station Locations';
$lang['menu_select_location'] = "Select a Location";
$lang['menu_select_location_show_all'] = "Show all";
$lang['menu_choose_another_logbook'] = "Choose another Logbook";
$lang['menu_station_setup'] = 'Station Setup';
$lang['menu_bands'] = 'Bands';
$lang['menu_adif_import_export'] = 'ADIF Import / Export';
$lang['menu_other_export'] = "Other Export Options";

View File

@@ -58,6 +58,7 @@ $lang['station_location_updated_suff'] = ' Updated.';
$lang['station_location_warning'] = 'Attention: You need to set an active station location. Go to Callsign->Station Location to select one.';
$lang['station_location_reassign_at'] = 'Please reassign them at ';
$lang['station_location_warning_reassign'] = 'Due to recent changes within Wavelog you need to reassign QSOs to your station profiles.';
$lang['station_location_id'] = 'ID';
$lang['station_location_name'] = 'Profile Name';
$lang['station_location_name_hint'] = 'Shortname for the station location. For example: Home (HM54ip)';
$lang['station_location_callsign'] = 'Station Callsign';

View File

@@ -228,8 +228,8 @@ $lang['general_word_today'] = 'Сегодня';
$lang['dashboard_php_version_warning'] = 'Вам нужнго обновить версию PHP. Минимальная версия 7.4. Ваша версия';
$lang['dashboard_country_files_warning'] = 'Вам нужно обновить файлы стран! Пеерйдите <a href="'.site_url('update').'">сюда</a>, чтобы сделать это!';
$lang['dashboard_locations_warning'] = 'У вас нет расположений станций! Перейдите <a href="'. site_url('station') . '">сюда</a>, чтобы создать!';
$lang['dashboard_logbooks_warning'] = 'У вас нет аппаратного журнала! Перейдите <a href="'. site_url('logbooks') . '">сюда</a>, чтобы создать его!';
$lang['dashboard_locations_warning'] = 'У вас нет расположений станций! Перейдите <a href="'. site_url('stationsetup') . '">сюда</a>, чтобы создать!';
$lang['dashboard_logbooks_warning'] = 'У вас нет аппаратного журнала! Перейдите <a href="'. site_url('stationsetup') . '">сюда</a>, чтобы создать его!';
$lang['hams_at_no_activations_found'] = 'не найдены предстоящие активации. Проверьте позже.';

View File

@@ -80,8 +80,7 @@ $lang['menu_account'] = 'Аккаунт';
$lang['menu_station_logbooks'] = 'Аппаратные журналы';
$lang['menu_station_locations'] = 'Расположения станции';
$lang['menu_select_location'] = "Select a Location";
$lang['menu_select_location_show_all'] = "Show all";
$lang['menu_choose_another_logbook'] = "Choose another Logbook";
$lang['menu_station_setup'] = 'Station Setup';
$lang['menu_bands'] = 'Диапазоны';
$lang['menu_adif_import_export'] = 'Импорт / экспорт ADIF';
$lang['menu_other_export'] = "Other Export Options";

View File

@@ -58,6 +58,7 @@ $lang['station_location_updated_suff'] = ' Обновлено.';
$lang['station_location_warning'] = 'Внимание. Вам нужно установить активное расположение станции. Перейдите в меню Позывной->Расположение станции, чтобы выбрать.';
$lang['station_location_reassign_at'] = 'Пожалуйста, переназначьте их в ';
$lang['station_location_warning_reassign'] = 'Из-за недавних изменений в Wavelog вам нужно переназначить QSO вашим профилям станции.';
$lang['station_location_id'] = 'ID';
$lang['station_location_name'] = 'Название профиля';
$lang['station_location_name_hint'] = 'Короткое название профиля расположения станции, к примеру: Home (HM54ip)';
$lang['station_location_callsign'] = 'Позывной станции';

View File

@@ -228,8 +228,8 @@ $lang['general_word_today'] = 'Hoy';
$lang['dashboard_php_version_warning'] = 'Necesita actualizar su versión de PHP. La versión mínima es 7.4. Su versión es ';
$lang['dashboard_country_files_warning'] = 'Necesita actualizar su archivo de países. ¡Haga clic <a href="'.site_url('update').'">aquí</a> para hacerlo!';
$lang['dashboard_locations_warning'] = 'No tiene localizaciones de estaciones. ¡Haga clic <a href="'. site_url('station') . '">aquí</a> para crear una!';
$lang['dashboard_logbooks_warning'] = 'No tiene libro de guardias. ¡Haga clic <a href="'. site_url('logbooks') . '">aquí</a> para crear uno!';
$lang['dashboard_locations_warning'] = 'No tiene localizaciones de estaciones. ¡Haga clic <a href="'. site_url('stationsetup') . '">aquí</a> para crear una!';
$lang['dashboard_logbooks_warning'] = 'No tiene libro de guardias. ¡Haga clic <a href="'. site_url('stationsetup') . '">aquí</a> para crear uno!';
$lang['hams_at_no_activations_found'] = 'No hay activaciones próximas. Por favor vuelve a revisar más tarde.';

View File

@@ -80,8 +80,7 @@ $lang['menu_account'] = 'Account';
$lang['menu_station_logbooks'] = 'Station Logbooks';
$lang['menu_station_locations'] = 'Station Locations';
$lang['menu_select_location'] = "Select a Location";
$lang['menu_select_location_show_all'] = "Show all";
$lang['menu_choose_another_logbook'] = "Choose another Logbook";
$lang['menu_station_setup'] = 'Station Setup';
$lang['menu_bands'] = 'Bands';
$lang['menu_adif_import_export'] = 'ADIF Import / Export';
$lang['menu_other_export'] = "Other Export Options";

View File

@@ -58,6 +58,7 @@ $lang['station_location_updated_suff'] = ' Actualizada.';
$lang['station_location_warning'] = 'Atención: Debe configurar una Localización de Estación como activa. vaya a Indicativo->Localización de Estación para seleccionar una.';
$lang['station_location_reassign_at'] = 'Por favor, reasignelas en ';
$lang['station_location_warning_reassign'] = 'Debido a cambios recientes en Wavelog, debe reasignar sus QSO a sus perfiles de estación.';
$lang['station_location_id'] = 'ID';
$lang['station_location_name'] = 'Nombre de Perfil';
$lang['station_location_name_hint'] = 'Nombre corto para la Localización de Estación. Ejemplo: Casa (HM54ip)';
$lang['station_location_callsign'] = 'Indicativo de la Estación';

View File

@@ -1,236 +1,237 @@
<<<<<<< HEAD
<?php
defined('BASEPATH') OR exit('No direct script access allowed');
$lang['error_no_active_station_profile'] = 'OBS! Du behöver ange en aktiv station location.';
$lang['notice_turn_the_radio_on'] = 'Inga QSOn idag - dags att slå på radion!';
$lang['general_word_important'] = 'Viktigt';
$lang['general_word_warning'] = 'Warning';
$lang['general_word_danger'] = 'DANGER';
$lang['general_word_maintenance'] = 'Maintenance';
$lang['general_word_info'] = 'Info';
$lang['general_word_please_wait'] = "Please Wait ...";
$lang['general_word_choose_file'] = 'Välj fil';
$lang['general_word_next'] = 'Next';
$lang['general_word_previous'] = 'Previous';
$lang['general_word_not_display'] = "Not display";
$lang['general_word_show'] = "Show";
$lang['general_word_icon'] = "Icon";
$lang['general_word_cancel'] = "Cancel";
$lang['general_word_ok'] = "OK";
$lang['general_word_attention'] = "Attention";
$lang['general_word_enabled'] = "Enabled";
$lang['general_word_disabled'] = "Disabled";
$lang['general_word_count'] = "Count";
$lang['general_word_filtering_on'] = "Filtering on";
$lang['general_word_never'] = "Never";
<?php
defined('BASEPATH') OR exit('No direct script access allowed');
$lang['error_no_active_station_profile'] = 'OBS! Du behöver ange en aktiv station location.';
$lang['notice_turn_the_radio_on'] = 'Inga QSOn idag - dags att slå på radion!';
$lang['general_word_important'] = 'Viktigt';
$lang['general_word_warning'] = 'Warning';
$lang['general_word_danger'] = 'DANGER';
$lang['general_word_maintenance'] = 'Maintenance';
$lang['general_word_info'] = 'Info';
$lang['general_word_please_wait'] = "Please Wait ...";
$lang['general_word_choose_file'] = 'Välj fil';
$lang['general_word_next'] = 'Next';
$lang['general_word_previous'] = 'Previous';
$lang['general_word_not_display'] = "Not display";
$lang['general_word_show'] = "Show";
$lang['general_word_icon'] = "Icon";
$lang['general_word_cancel'] = "Cancel";
$lang['general_word_ok'] = "OK";
$lang['general_word_attention'] = "Attention";
$lang['general_word_enabled'] = "Enabled";
$lang['general_word_disabled'] = "Disabled";
$lang['general_word_count'] = "Count";
$lang['general_word_filtering_on'] = "Filtering on";
$lang['general_word_never'] = "Never";
$lang['general_word_active'] = "Active";
$lang['general_word_inactive'] = "Inactive";
$lang['general_word_export'] = "Export";
$lang['general_word_import'] = "Import";
$lang['general_word_startdate'] = "Start Date";
$lang['general_word_enddate'] = "End Date";
$lang['general_word_date'] = 'Datum';
$lang['general_word_time'] = 'Tid';
$lang['general_word_time_on'] = 'Time on';
$lang['general_word_time_off'] = 'Time off';
$lang['general_word_datetime'] = 'Datum/Tid';
$lang['general_word_none'] = 'Ingen';
$lang['general_word_name'] = 'Namn';
$lang['general_word_location'] = 'QTH';
$lang['general_word_comment'] = 'Notering';
$lang['general_word_general'] = 'Allmänt';
$lang['general_word_satellite'] = 'Satellit';
$lang['general_word_satellite_short'] = 'Sat';
$lang['general_word_notes'] = 'Anteckningar';
$lang['general_word_country'] = 'Land';
$lang['general_word_city'] = 'City';
$lang['general_word_total'] = 'Totalt';
$lang['general_word_day'] = "Day";
$lang['general_word_days'] = "Days";
$lang['general_word_period'] = "Period";
$lang['general_word_yearly'] = "Yearly";
$lang['general_word_monthly'] = "Monthly";
$lang['general_word_year'] = 'I år';
$lang['general_word_month'] = 'Denna månad';
$lang['general_word_colors'] = "Colors";
$lang['general_word_light'] = "Light/Laser";
$lang['general_word_worked'] = 'Körda';
$lang['general_word_worked_not_confirmed'] = "Worked not confirmed";
$lang['general_word_confirmation'] = "Confirmation";
$lang['general_word_not_worked'] = "Not worked";
$lang['general_word_confirmed'] = 'Bekräftade';
$lang['general_word_needed'] = 'Behövs';
$lang['general_word_all'] = 'All';
$lang['general_word_no'] = 'Nej';
$lang['general_word_yes'] = 'Ja';
$lang['general_word_method'] = 'Metod';
$lang['general_word_sent'] = 'Skickad';
$lang['general_word_received'] = 'Mottagen';
$lang['general_word_requested'] = 'Begärd';
$lang['general_word_queued'] = 'Köad';
$lang['general_word_table'] = "Table";
$lang['general_word_invalid_ignore'] = 'Invalid (Ignore)';
$lang['general_word_qslcard'] = 'QSL-kort';
$lang['general_word_qslcard_management'] = 'QSL Management';
$lang['general_word_qslcards'] = 'QSL-kort';
$lang['general_word_qslcard_direct'] = 'Direkt';
$lang['general_word_qslcard_bureau'] = 'Byrå';
$lang['general_word_qslcard_electronic'] = 'Elektronisk';
$lang['general_word_qslcard_manager'] = 'Manager';
$lang['general_word_qslcard_via'] = 'Via';
$lang['general_word_eqslcard'] = 'eQSL Card';
$lang['general_word_eqslcards'] = 'eQSL Cards';
$lang['general_word_lotw'] = 'Logbook of the World';
$lang['general_word_lotw_short'] = 'LoTW';
$lang['general_word_details'] = 'Details';
$lang['general_word_qso_data'] = 'QSO Data';
$lang['general_edit_qso'] = 'Redigera QSO';
$lang['general_mark_qsl_rx_bureau'] = 'Ange QSL mottagen (Byrå)';
$lang['general_mark_qsl_rx_direct'] = 'Ange QSL mottagen (Direkt)';
$lang['general_mark_qsl_rx_electronic'] = 'Ange QSL mottagen (Elektronisk)';
$lang['general_mark_qsl_tx_bureau'] = 'Ange QSL skickad (Byrå)';
$lang['general_mark_qsl_tx_direct'] = 'Ange QSL skickad (Direkt)';
$lang['general_mark_qsl_requested'] = 'Ange QSL Karta Begärda';
$lang['general_mark_qsl_requested_bureau'] = 'Ange QSL Karta Begärda (Byrå)';
$lang['general_mark_qsl_requested_direct'] = 'Ange QSL Karta Begärda (Direkt)';
$lang['general_mark_qsl_not_required'] = 'Ange QSL Karta Inte Nödvändig';
$lang['general_delete_qso'] = 'Radera QSO';
$lang['general_more_qso'] = 'More QSOs';
$lang['general_lookup_qrz'] = 'Lookup on QRZ.com';
$lang['general_lookup_hamqth'] = 'Lookup on HamQTH';
$lang['general_total_distance'] = 'Totalt avstånd';
// PHP Upload Warning
$lang['gen_max_file_upload_size'] = 'Maximum file upload size is ';
// Wavelog Terms
$lang['wavelog_station_profile'] = 'Stationsplats';
// ham radio terms
$lang['gen_hamradio_cq'] = "CQ";
$lang['gen_hamradio_qso'] = 'QSO';
$lang['gen_hamradio_station'] = 'Station';
$lang['gen_hamradio_call'] = 'Signal';
$lang['gen_hamradio_prefix'] = "Prefix";
$lang['gen_hamradio_suffix'] = "Suffix";
$lang['gen_hamradio_callsign'] = 'Signal';
$lang['gen_hamradio_de'] = 'De';
$lang['gen_hamradio_dx'] = 'Dx';
$lang['gen_hamradio_mode'] = 'Mode';
$lang['general_word_export'] = "Export";
$lang['general_word_import'] = "Import";
$lang['general_word_startdate'] = "Start Date";
$lang['general_word_enddate'] = "End Date";
$lang['general_word_date'] = 'Datum';
$lang['general_word_time'] = 'Tid';
$lang['general_word_time_on'] = 'Time on';
$lang['general_word_time_off'] = 'Time off';
$lang['general_word_datetime'] = 'Datum/Tid';
$lang['general_word_none'] = 'Ingen';
$lang['general_word_name'] = 'Namn';
$lang['general_word_location'] = 'QTH';
$lang['general_word_comment'] = 'Notering';
$lang['general_word_general'] = 'Allmänt';
$lang['general_word_satellite'] = 'Satellit';
$lang['general_word_satellite_short'] = 'Sat';
$lang['general_word_notes'] = 'Anteckningar';
$lang['general_word_country'] = 'Land';
$lang['general_word_city'] = 'City';
$lang['general_word_total'] = 'Totalt';
$lang['general_word_day'] = "Day";
$lang['general_word_days'] = "Days";
$lang['general_word_period'] = "Period";
$lang['general_word_yearly'] = "Yearly";
$lang['general_word_monthly'] = "Monthly";
$lang['general_word_year'] = 'I år';
$lang['general_word_month'] = 'Denna månad';
$lang['general_word_colors'] = "Colors";
$lang['general_word_light'] = "Light/Laser";
$lang['general_word_worked'] = 'Körda';
$lang['general_word_worked_not_confirmed'] = "Worked not confirmed";
$lang['general_word_confirmation'] = "Confirmation";
$lang['general_word_not_worked'] = "Not worked";
$lang['general_word_confirmed'] = 'Bekräftade';
$lang['general_word_needed'] = 'Behövs';
$lang['general_word_all'] = 'All';
$lang['general_word_no'] = 'Nej';
$lang['general_word_yes'] = 'Ja';
$lang['general_word_method'] = 'Metod';
$lang['general_word_sent'] = 'Skickad';
$lang['general_word_received'] = 'Mottagen';
$lang['general_word_requested'] = 'Begärd';
$lang['general_word_queued'] = 'Köad';
$lang['general_word_table'] = "Table";
$lang['general_word_invalid_ignore'] = 'Invalid (Ignore)';
$lang['general_word_qslcard'] = 'QSL-kort';
$lang['general_word_qslcard_management'] = 'QSL Management';
$lang['general_word_qslcards'] = 'QSL-kort';
$lang['general_word_qslcard_direct'] = 'Direkt';
$lang['general_word_qslcard_bureau'] = 'Byrå';
$lang['general_word_qslcard_electronic'] = 'Elektronisk';
$lang['general_word_qslcard_manager'] = 'Manager';
$lang['general_word_qslcard_via'] = 'Via';
$lang['general_word_eqslcard'] = 'eQSL Card';
$lang['general_word_eqslcards'] = 'eQSL Cards';
$lang['general_word_lotw'] = 'Logbook of the World';
$lang['general_word_lotw_short'] = 'LoTW';
$lang['general_word_details'] = 'Details';
$lang['general_word_qso_data'] = 'QSO Data';
$lang['general_edit_qso'] = 'Redigera QSO';
$lang['general_mark_qsl_rx_bureau'] = 'Ange QSL mottagen (Byrå)';
$lang['general_mark_qsl_rx_direct'] = 'Ange QSL mottagen (Direkt)';
$lang['general_mark_qsl_rx_electronic'] = 'Ange QSL mottagen (Elektronisk)';
$lang['general_mark_qsl_tx_bureau'] = 'Ange QSL skickad (Byrå)';
$lang['general_mark_qsl_tx_direct'] = 'Ange QSL skickad (Direkt)';
$lang['general_mark_qsl_requested'] = 'Ange QSL Karta Begärda';
$lang['general_mark_qsl_requested_bureau'] = 'Ange QSL Karta Begärda (Byrå)';
$lang['general_mark_qsl_requested_direct'] = 'Ange QSL Karta Begärda (Direkt)';
$lang['general_mark_qsl_not_required'] = 'Ange QSL Karta Inte Nödvändig';
$lang['general_delete_qso'] = 'Radera QSO';
$lang['general_more_qso'] = 'More QSOs';
$lang['general_lookup_qrz'] = 'Lookup on QRZ.com';
$lang['general_lookup_hamqth'] = 'Lookup on HamQTH';
$lang['general_total_distance'] = 'Totalt avstånd';
// PHP Upload Warning
$lang['gen_max_file_upload_size'] = 'Maximum file upload size is ';
// Wavelog Terms
$lang['wavelog_station_profile'] = 'Stationsplats';
// ham radio terms
$lang['gen_hamradio_cq'] = "CQ";
$lang['gen_hamradio_qso'] = 'QSO';
$lang['gen_hamradio_station'] = 'Station';
$lang['gen_hamradio_call'] = 'Signal';
$lang['gen_hamradio_prefix'] = "Prefix";
$lang['gen_hamradio_suffix'] = "Suffix";
$lang['gen_hamradio_callsign'] = 'Signal';
$lang['gen_hamradio_de'] = 'De';
$lang['gen_hamradio_dx'] = 'Dx';
$lang['gen_hamradio_mode'] = 'Mode';
$lang['gen_hamradio_ant_az'] = 'Antenna Azimuth';
$lang['gen_hamradio_ant_el'] = 'Antenna Elevation';
$lang['gen_hamradio_rst_sent'] = 'Skickat';
$lang['gen_hamradio_rst_rcvd'] = 'Mottagen\'d';
$lang['gen_hamradio_band'] = 'Band';
$lang['gen_hamradio_bandgroup'] = "Bandgroup";
$lang['gen_hamradio_band_rx'] = 'Band (RX)';
$lang['gen_hamradio_frequency'] = 'Frekvens';
$lang['gen_hamradio_frequency_rx'] = 'Frekvens (RX)';
$lang['gen_hamradio_radio'] = 'Radio';
$lang['gen_hamradio_rsts'] = 'RST (S)';
$lang['gen_hamradio_rstr'] = 'RST (R)';
$lang['gen_hamradio_refs'] = 'Refs';
$lang['gen_hamradio_myrefs'] = 'My Refs';
$lang['gen_hamradio_exchange_sent_short'] = 'Exch (S)';
$lang['gen_hamradio_exchange_rcvd_short'] = 'Exch (R)';
$lang['gen_hamradio_qsl'] = 'QSL';
$lang['gen_hamradio_qsltype'] = "QSL Type";
$lang['gen_hamradio_qslvia'] = 'QSL via';
$lang['gen_hamradio_qslmsg'] = 'QSL Msg';
$lang['gen_hamradio_locator'] = 'Lokator';
$lang['gen_hamradio_transmit_power'] = 'Effekt (W)';
$lang['gen_hamradio_propagation_mode'] = 'Propagation Mode';
$lang['gen_hamradio_satellite_name'] = 'Satellitnamn';
$lang['gen_hamradio_satellite_mode'] = 'Satellite-mode';
$lang['gen_hamradio_award'] = "Award";
$lang['gen_hamradio_rst_sent'] = 'Skickat';
$lang['gen_hamradio_rst_rcvd'] = 'Mottagen\'d';
$lang['gen_hamradio_band'] = 'Band';
$lang['gen_hamradio_bandgroup'] = "Bandgroup";
$lang['gen_hamradio_band_rx'] = 'Band (RX)';
$lang['gen_hamradio_frequency'] = 'Frekvens';
$lang['gen_hamradio_frequency_rx'] = 'Frekvens (RX)';
$lang['gen_hamradio_radio'] = 'Radio';
$lang['gen_hamradio_rsts'] = 'RST (S)';
$lang['gen_hamradio_rstr'] = 'RST (R)';
$lang['gen_hamradio_refs'] = 'Refs';
$lang['gen_hamradio_myrefs'] = 'My Refs';
$lang['gen_hamradio_exchange_sent_short'] = 'Exch (S)';
$lang['gen_hamradio_exchange_rcvd_short'] = 'Exch (R)';
$lang['gen_hamradio_qsl'] = 'QSL';
$lang['gen_hamradio_qsltype'] = "QSL Type";
$lang['gen_hamradio_qslvia'] = 'QSL via';
$lang['gen_hamradio_qslmsg'] = 'QSL Msg';
$lang['gen_hamradio_locator'] = 'Lokator';
$lang['gen_hamradio_transmit_power'] = 'Effekt (W)';
$lang['gen_hamradio_propagation_mode'] = 'Propagation Mode';
$lang['gen_hamradio_satellite_name'] = 'Satellitnamn';
$lang['gen_hamradio_satellite_mode'] = 'Satellite-mode';
$lang['gen_hamradio_award'] = "Award";
$lang['gen_hamradio_active_logbook_hint'] = "Displaying all QSOs of station locations which are linked to this logbook";
$lang['gen_hamradio_logbook'] = 'Loggbok';
$lang['gen_hamradio_active_logbook'] = 'Active Logbook';
$lang['gen_hamradio_zones'] = 'Zones';
$lang['gen_hamradio_cq_zone'] = 'CQ Zone';
$lang['gen_hamradio_itu_zone'] = 'ITU Zone';
$lang['gen_hamradio_dxcc'] = 'DXCC';
$lang['gen_hamradio_deleted_dxcc'] = 'Struket DXCC';
$lang['gen_hamradio_continent'] = 'Kontinent';
$lang['gen_hamradio_usa_state'] = 'USA State';
$lang['gen_hamradio_county_reference'] = 'USA County';
$lang['gen_hamradio_iota_reference'] = 'IOTA Reference';
$lang['gen_hamradio_sota_reference'] = 'SOTA Reference';
$lang['gen_hamradio_wwff_reference'] = 'WWFF Reference';
$lang['gen_hamradio_pota_reference'] = 'POTA Reference';
$lang['gen_hamradio_dok'] = 'DOK';
$lang['gen_hamradio_state'] = 'State';
$lang['gen_hamradio_iota'] = 'IOTA';
$lang['gen_hamradio_sota'] = 'SOTA';
$lang['gen_hamradio_wwff'] = 'WWFF';
$lang['gen_hamradio_pota'] = 'POTA';
$lang['gen_hamradio_gridsquare'] = 'Lokator/Gridsquare';
$lang['gen_hamradio_latitude'] = "Latitude";
$lang['gen_hamradio_longitude'] = "Longitude";
$lang['gen_hamradio_bearing'] = "Bearing";
$lang['gen_hamradio_get_gridsquare'] = 'Get Gridsquare';
$lang['gen_hamradio_gridsquare_show'] = "Show Locator";
$lang['gen_hamradio_distance'] = 'Distance';
$lang['gen_hamradio_operator'] = 'Operatör';
$lang['gen_hamradio_sig'] = 'Sig';
$lang['gen_hamradio_sig_info'] = 'Sig Info';
// Find your CQ/ITU Zone
$lang['gen_find_zone_cq_part1'] = "If you don't know your CQ Zone then";
$lang['gen_find_zone_itu_part1'] = "If you don't know your ITU Zone then";
$lang['gen_find_zone_part2'] = "click here";
$lang['gen_find_zone_part3'] = "to find it!";
// Dashboard Words
$lang['dashboard_you_have_had'] = 'Du har kört';
$lang['dashboard_qsos_today'] = 'QSOs idag!';
$lang['dashboard_qso_breakdown'] = 'QSOs Breakdown';
$lang['dashboard_countries_breakdown'] = 'Länder Breakdown';
$lang['gen_to_date'] = 'To date';
$lang['gen_from_date'] = 'Från datum';
$lang['gen_this_qso_was_confirmed_on'] = 'Detta QSO blev konfirmerat';
$lang['error_no_logbook_found'] = 'Ingen loggbok hittades. Du måste konfigurera en loggbok under Station Logbooks. Gör det här:';
$lang['copy_to_clipboard'] = 'Kopiera till clipboard';
$lang['africa'] = 'Afrika';
$lang['antarctica'] = 'Antarktis';
$lang['asia'] = 'Asien';
$lang['europe'] = 'Europa';
$lang['northamerica'] = 'Nordamerika';
$lang['oceania'] = 'Oceanien';
$lang['southamerica'] = 'Sydamerika';
$lang['gen_band_selection'] = 'Band val';
$lang['general_word_today'] = 'Today';
$lang['dashboard_php_version_warning'] = 'You need to upgrade your PHP version. Minimum version is 7.4. Your version is';
$lang['dashboard_country_files_warning'] = 'You need to update country files! Go <a href="'.site_url('update').'">here</a> to do it!';
$lang['dashboard_locations_warning'] = 'You have no station locations. Go <a href="'. site_url('station') . '">here</a> to create it!';
$lang['dashboard_logbooks_warning'] = 'You have no station logbook. Go <a href="'. site_url('logbooks') . '">here</a> to create it!';
$lang['hams_at_no_activations_found'] = 'No upcoming activations found. Please check back later.';
$lang['datatables_language'] = "en-GB";
$lang['gen_hamradio_logbook'] = 'Loggbok';
$lang['gen_hamradio_active_logbook'] = 'Active Logbook';
$lang['gen_hamradio_zones'] = 'Zones';
$lang['gen_hamradio_cq_zone'] = 'CQ Zone';
$lang['gen_hamradio_itu_zone'] = 'ITU Zone';
$lang['gen_hamradio_dxcc'] = 'DXCC';
$lang['gen_hamradio_deleted_dxcc'] = 'Struket DXCC';
$lang['gen_hamradio_continent'] = 'Kontinent';
$lang['gen_hamradio_usa_state'] = 'USA State';
$lang['gen_hamradio_county_reference'] = 'USA County';
$lang['gen_hamradio_iota_reference'] = 'IOTA Reference';
$lang['gen_hamradio_sota_reference'] = 'SOTA Reference';
$lang['gen_hamradio_wwff_reference'] = 'WWFF Reference';
$lang['gen_hamradio_pota_reference'] = 'POTA Reference';
$lang['gen_hamradio_dok'] = 'DOK';
$lang['gen_hamradio_state'] = 'State';
$lang['gen_hamradio_iota'] = 'IOTA';
$lang['gen_hamradio_sota'] = 'SOTA';
$lang['gen_hamradio_wwff'] = 'WWFF';
$lang['gen_hamradio_pota'] = 'POTA';
$lang['gen_hamradio_gridsquare'] = 'Lokator/Gridsquare';
$lang['gen_hamradio_latitude'] = "Latitude";
$lang['gen_hamradio_longitude'] = "Longitude";
$lang['gen_hamradio_bearing'] = "Bearing";
$lang['gen_hamradio_get_gridsquare'] = 'Get Gridsquare';
$lang['gen_hamradio_gridsquare_show'] = "Show Locator";
$lang['gen_hamradio_distance'] = 'Distance';
$lang['gen_hamradio_operator'] = 'Operatör';
$lang['gen_hamradio_sig'] = 'Sig';
$lang['gen_hamradio_sig_info'] = 'Sig Info';
// Find your CQ/ITU Zone
$lang['gen_find_zone_cq_part1'] = "If you don't know your CQ Zone then";
$lang['gen_find_zone_itu_part1'] = "If you don't know your ITU Zone then";
$lang['gen_find_zone_part2'] = "click here";
$lang['gen_find_zone_part3'] = "to find it!";
// Dashboard Words
$lang['dashboard_you_have_had'] = 'Du har kört';
$lang['dashboard_qsos_today'] = 'QSOs idag!';
$lang['dashboard_qso_breakdown'] = 'QSOs Breakdown';
$lang['dashboard_countries_breakdown'] = 'Länder Breakdown';
$lang['gen_to_date'] = 'To date';
$lang['gen_from_date'] = 'Från datum';
$lang['gen_this_qso_was_confirmed_on'] = 'Detta QSO blev konfirmerat';
$lang['error_no_logbook_found'] = 'Ingen loggbok hittades. Du måste konfigurera en loggbok under Station Logbooks. Gör det här:';
$lang['copy_to_clipboard'] = 'Kopiera till clipboard';
$lang['africa'] = 'Afrika';
$lang['antarctica'] = 'Antarktis';
$lang['asia'] = 'Asien';
$lang['europe'] = 'Europa';
$lang['northamerica'] = 'Nordamerika';
$lang['oceania'] = 'Oceanien';
$lang['southamerica'] = 'Sydamerika';
$lang['gen_band_selection'] = 'Band val';
$lang['general_word_today'] = 'Today';
$lang['dashboard_php_version_warning'] = 'You need to upgrade your PHP version. Minimum version is 7.4. Your version is';
$lang['dashboard_country_files_warning'] = 'You need to update country files! Go <a href="'.site_url('update').'">here</a> to do it!';
$lang['dashboard_locations_warning'] = 'You have no station locations. Go <a href="'. site_url('stationsetup') . '">here</a> to create it!';
$lang['dashboard_logbooks_warning'] = 'You have no station logbook. Go <a href="'. site_url('stationsetup') . '">here</a> to create it!';
$lang['hams_at_no_activations_found'] = 'No upcoming activations found. Please check back later.';
$lang['datatables_language'] = "en-GB";

View File

@@ -80,8 +80,7 @@ $lang['menu_account'] = 'Konto';
$lang['menu_station_logbooks'] = 'Stationsloggböcker';
$lang['menu_station_locations'] = 'Stationsplatser';
$lang['menu_select_location'] = "Select a Location";
$lang['menu_select_location_show_all'] = "Show all";
$lang['menu_choose_another_logbook'] = "Choose another Logbook";
$lang['menu_station_setup'] = 'Station Setup';
$lang['menu_bands'] = 'Bands';
$lang['menu_adif_import_export'] = 'ADIF Import / Export';
$lang['menu_other_export'] = "Other Export Options";

View File

@@ -58,6 +58,7 @@ $lang['station_location_updated_suff'] = ' Updated.';
$lang['station_location_warning'] = 'Attention: You need to set an active station location. Go to Callsign->Station Location to select one.';
$lang['station_location_reassign_at'] = 'Please reassign them at ';
$lang['station_location_warning_reassign'] = 'Due to recent changes within Wavelog you need to reassign QSOs to your station profiles.';
$lang['station_location_id'] = 'ID';
$lang['station_location_name'] = 'Profile Name';
$lang['station_location_name_hint'] = 'Shortname for the station location. For example: Home (HM54ip)';
$lang['station_location_callsign'] = 'Station Callsign';

View File

@@ -227,8 +227,8 @@ $lang['general_word_today'] = 'Today';
$lang['dashboard_php_version_warning'] = 'You need to upgrade your PHP version. Minimum version is 7.4. Your version is';
$lang['dashboard_country_files_warning'] = 'You need to update country files! Go <a href="'.site_url('update').'">here</a> to do it!';
$lang['dashboard_locations_warning'] = 'You have no station locations. Go <a href="'. site_url('station') . '">here</a> to create it!';
$lang['dashboard_logbooks_warning'] = 'You have no station logbook. Go <a href="'. site_url('logbooks') . '">here</a> to create it!';
$lang['dashboard_locations_warning'] = 'You have no station locations. Go <a href="'. site_url('stationsetup') . '">here</a> to create it!';
$lang['dashboard_logbooks_warning'] = 'You have no station logbook. Go <a href="'. site_url('stationsetup') . '">here</a> to create it!';
$lang['hams_at_no_activations_found'] = 'No upcoming activations found. Please check back later.';

View File

@@ -80,8 +80,7 @@ $lang['menu_account'] = 'Account';
$lang['menu_station_logbooks'] = 'Station Logbooks';
$lang['menu_station_locations'] = 'Station Locations';
$lang['menu_select_location'] = "Select a Location";
$lang['menu_select_location_show_all'] = "Show all";
$lang['menu_choose_another_logbook'] = "Choose another Logbook";
$lang['menu_station_setup'] = 'Station Setup';
$lang['menu_bands'] = 'Bands';
$lang['menu_adif_import_export'] = 'ADIF Import / Export';
$lang['menu_other_export'] = "Other Export Options";

View File

@@ -58,6 +58,7 @@ $lang['station_location_updated_suff'] = ' Updated.';
$lang['station_location_warning'] = 'Attention: You need to set an active station location. Go to Callsign->Station Location to select one.';
$lang['station_location_reassign_at'] = 'Please reassign them at ';
$lang['station_location_warning_reassign'] = 'Due to recent changes within Wavelog you need to reassign QSOs to your station profiles.';
$lang['station_location_id'] = 'ID';
$lang['station_location_name'] = 'Profile Name';
$lang['station_location_name_hint'] = 'Shortname for the station location. For example: Home (HM54ip)';
$lang['station_location_callsign'] = 'Station Callsign';

View File

@@ -14,25 +14,30 @@ class Logbooks_model extends CI_Model {
return $query->num_rows();
}
function add() {
function add($logbook_name = '') {
// Create data array with field values
$data = array(
'user_id' => $this->session->userdata('user_id'),
'logbook_name' => xss_clean($this->input->post('stationLogbook_Name', true)),
);
if ($logbook_name ?? '' != '') {
$data = array(
'user_id' => $this->session->userdata('user_id'),
'logbook_name' => $logbook_name,
);
// Insert Records
$this->db->insert('station_logbooks', $data);
$logbook_id = $this->db->insert_id();
// Insert Records
$this->db->insert('station_logbooks', $data);
$logbook_id = $this->db->insert_id();
// check if user has no active logbook yet
if ($this->session->userdata('active_station_logbook') === null) {
// set logbook active
$this->set_logbook_active($logbook_id);
// check if user has no active logbook yet
if ($this->session->userdata('active_station_logbook') === null) {
// set logbook active
$this->set_logbook_active($logbook_id);
// update user session data
$this->load->model('user_model');
$this->user_model->update_session($this->session->userdata('user_id'));
// update user session data
$this->load->model('user_model');
$this->user_model->update_session($this->session->userdata('user_id'));
}
return $logbook_id;
} else {
return -1;
}
}
@@ -51,9 +56,8 @@ class Logbooks_model extends CI_Model {
$this->set_logbook_active($logbook_id, $id);
}
function delete($id) {
function delete($clean_id) {
// Clean ID
$clean_id = $this->security->xss_clean($id);
// do not delete active logbook
if ($this->session->userdata('active_station_logbook') === $clean_id) {
@@ -62,7 +66,7 @@ class Logbooks_model extends CI_Model {
// Delete logbook
$this->db->where('user_id', $this->session->userdata('user_id'));
$this->db->where('logbook_id', $id);
$this->db->where('logbook_id', $clean_id);
$this->db->delete('station_logbooks');
}

View File

@@ -49,6 +49,17 @@ class Stations extends CI_Model {
return $this->db->get('station_profile');
}
function profile_full($id) {
// Should refactor all calls for profile to profile_full, since it contains also those eqsl-default-msg
$clean_id = $this->security->xss_clean($id);
$this->db->where('station_id', $clean_id);
$row=$this->db->get('station_profile')->row();
$options_object = $this->user_options_model->get_options('eqsl_default_qslmsg', array('option_name' => 'key_station_id', 'option_key' => $id))->result();
$row->eqsl_default_qslmsg = $options_object[0]->option_value ?? '';
return $row;
}
function profile_clean($id) {
// Clean ID
$clean_id = $this->security->xss_clean($id);
@@ -123,11 +134,15 @@ class Stations extends CI_Model {
);
// Insert Records & return insert id //
if ($this->db->insert('station_profile', $data)===true) {
$station_user_list = $this->all_of_user()->result();
if ((count($station_user_list)>0) && (isset($station_user_list[intval(count($station_user_list)-1)]->station_id))) {
return $station_user_list[intval(count($station_user_list)-1)]->station_id;
if ($this->db->insert('station_profile', $data)) {
$new_station_id = $this->db->insert_id();
$eqsl_default_qslmsg = xss_clean($this->input->post('eqsl_default_qslmsg', true));
if (!empty(trim($eqsl_default_qslmsg))) {
$this->user_options_model->set_option('eqsl_default_qslmsg', 'key_station_id', array($new_station_id => $eqsl_default_qslmsg));
}
return $new_station_id;
} else {
return 0;
}
}
@@ -182,6 +197,9 @@ class Stations extends CI_Model {
$this->db->where('user_id', $this->session->userdata('user_id'));
$this->db->where('station_id', xss_clean($this->input->post('station_id', true)));
$this->db->update('station_profile', $data);
$eqsl_default_qslmsg = xss_clean($this->input->post('eqsl_default_qslmsg', true) ?? '');
$this->user_options_model->set_option('eqsl_default_qslmsg', 'key_station_id', array(xss_clean($this->input->post('station_id', true)) => $eqsl_default_qslmsg));
}
function delete($id) {
@@ -192,6 +210,7 @@ class Stations extends CI_Model {
if ($clean_id === $this->find_active()) {
return;
}
$this->user_options_model->del_option('eqsl_default_qslmsg', 'key_station_id', array('option_key' => $id));
// Delete QSOs
$this->db->where('station_id', $id);
@@ -238,6 +257,17 @@ class Stations extends CI_Model {
$this->db->update('station_profile', $newdefault);
}
function edit_favourite($id) {
$cleanid = $this->security->xss_clean($id);
$is_favorite = $this->user_options_model->get_options('station_location', array('option_name'=>'is_favorite', 'option_key'=>$cleanid))->row()->option_value ?? 'false';
if ($is_favorite == 'true') {
$this->user_options_model->del_option('station_location', 'is_favorite', array('option_key'=>$cleanid));
} else if ($is_favorite == 'false') {
$this->user_options_model->set_option('station_location', 'is_favorite', array($cleanid=>'true'));
}
}
public function find_active() {
$this->db->where('user_id', $this->session->userdata('user_id'));
$this->db->where('station_active', 1);

View File

@@ -91,17 +91,9 @@ if($this->session->userdata('user_id') != null) {
?>
<!-- Version Dialog END -->
<script>
function set_active_location(current_active, new_active) {
$.ajax({
url: base_url + 'index.php/station/set_active/' + current_active + '/' + new_active + '/1',
type: 'GET',
success: function(response) {
location.reload();
}
});
}
var current_active_location = "<?php echo $this->stations->find_active(); ?>";
quickswitcher_show_activebadge(current_active_location);
</script>
<?php if ($this->uri->segment(1) == "oqrs") { ?>

View File

@@ -69,7 +69,7 @@
<body>
<nav class="navbar navbar-expand-lg navbar-light bg-light main-nav" id="header-menu">
<div class="container">
<a class="navbar-brand" href="<?php echo site_url(); ?>"><img class="headerLogo" src="<?php echo base_url(); ?>assets/logo/<?php echo $this->optionslib->get_logo('header_logo'); ?>.png" alt="Logo" /></a>
<a class="navbar-brand" href="<?php echo site_url(); ?>"><img class="headerLogo" src="<?php echo base_url(); ?>assets/logo/<?php echo $this->optionslib->get_logo('header_logo'); ?>.png" alt="Logo" /></a>
<?php if (ENVIRONMENT == "development") { ?>
<span class="badge text-bg-danger"><?php echo lang('menu_badge_developer_mode'); ?></span>
<?php } ?>
@@ -309,8 +309,7 @@
$quickswitch_enabled = ($this->user_options_model->get_options('header_menu', array('option_name' => 'locations_quickswitch'))->row()->option_value ?? 'false');
if ($quickswitch_enabled != 'true') {
?>
<li><a class="dropdown-item" href="<?php echo site_url('logbooks'); ?>" title="Manage station logbooks"><i class="fas fa-home"></i> <?php echo lang('menu_station_logbooks'); ?></a></li>
<li><a class="dropdown-item" href="<?php echo site_url('station'); ?>" title="Manage station locations"><i class="fas fa-home"></i> <?php echo lang('menu_station_locations'); ?></a></li>
<li><a class="dropdown-item" href="<?php echo site_url('stationsetup'); ?>" title="Manage station setup"><i class="fas fa-home"></i> <?php echo lang('menu_station_setup'); ?></a></li>
<?php } ?>
<li><a class="dropdown-item" href="<?php echo site_url('band'); ?>" title="Manage Bands"><i class="fas fa-cog"></i> <?php echo lang('menu_bands'); ?></a></li>
@@ -372,32 +371,56 @@
</li>
<?php
if ($quickswitch_enabled == 'true') { ?>
<li class="nav-item dropdown">
<a class="nav-link dropdown-toggle" data-bs-toggle="dropdown" href="#"><i class="fas fa-map-marker-alt"></i> | <i class="fas fa-book"></i></a>
<ul class="dropdown-menu dropdown-menu-right header-dropdown">
<li><a class="dropdown-item disabled"><?php echo lang('menu_select_location'); ?>:</a></li>
<?php
$location_favorites = $this->user_options_model->get_options('station_location', array('option_name' => 'is_favorite', 'option_value' => 'true'));
$current_active_location = $this->stations->find_active();
$active_badge = '<span class="badge bg-success ms-2">'.lang('general_word_active').'</span>';
foreach ($location_favorites->result() as $row) {
$profile_info = $this->stations->profile($row->option_key)->row();
$station_profile_name = ($profile_info) ? $profile_info->station_profile_name : 'Unknown Location';
$new_active = $row->option_key;
if ($new_active != $current_active_location) { ?>
<li><a type="button" onclick="set_active_location('<?php echo $current_active_location; ?>', '<?php echo $new_active; ?>')" class="dropdown-item"><i class="fas fa-map-marker-alt me-2"></i><?php echo $station_profile_name; ?></a></li>
<?php } else { ?>
<li><a class="dropdown-item"><i class="fas fa-map-marker-alt me-2"></i><?php echo $station_profile_name;
echo $active_badge; ?></a></li>
<?php } ?>
<?php } ?>
<li><a class="dropdown-item" href="<?php echo site_url('station'); ?>" title="Manage station logbooks"><?php echo lang('menu_select_location_show_all'); ?>...</a></li>
<div class="dropdown-divider"></div>
<li><a class="dropdown-item disabled"><?php echo lang('gen_hamradio_active_logbook'); ?>:<span class="badge text-bg-info ms-1"><?php echo $this->logbooks_model->find_name($this->session->userdata('active_station_logbook')); ?></span></a></li>
<li><a class="dropdown-item" href="<?php echo site_url('logbooks'); ?>" title="Manage station locations"><?php echo lang('menu_choose_another_logbook'); ?>...</a></li>
</ul>
</li>
<li class="nav-item dropdown">
<a class="nav-link dropdown-toggle" data-bs-toggle="dropdown" href="#"><i class="fas fa-map-marker-alt"></i> | <i class="fas fa-book"></i></a>
<ul class="dropdown-menu dropdown-menu-right header-dropdown">
<li><a class="dropdown-item disabled"><?php echo lang('menu_select_location'); ?>:</a></li>
<?php
// let's get all stations for the logged in user
$all_user_locations = $this->stations->all_of_user($this->session->userdata('user_id'));
// and the set favourites as array
$location_favorites_result = $this->user_options_model->get_options('station_location', array('option_name' => 'is_favorite', 'option_value' => 'true'));
$location_favorites = $location_favorites_result->result_array();
// also we need the current active station
$current_active_location = $this->stations->find_active();
// iterate through all available stations
foreach ($all_user_locations->result() as $row) {
// get information about this station like the name and the station id
$profile_info = $this->stations->profile($row->station_id)->row();
$station_profile_name = ($profile_info) ? $profile_info->station_profile_name : 'Unknown Location';
$station_id = $row->station_id;
// the active badge, not shown by default
$active_badge = '<span id="quickswitcher_active_badge_' . $station_id . '" class="badge bg-success ms-2 d-none">' . lang('general_word_active') . '</span>';
// only continue if the station id is a favourite and show the station in the list
$is_favorite = false;
foreach ($location_favorites as $favorite) {
if ($favorite['option_value'] == true && $favorite['option_key'] == $station_id) {
$is_favorite = true;
break;
}
}
if ($is_favorite) { ?>
<li id="quickswitcher_list_item_<?php echo $station_id; ?>">
<a id="quickswitcher_list_button_<?php echo $station_id; ?>" type="button" onclick="set_active_loc_quickswitcher('<?php echo $station_id; ?>')" class="dropdown-item quickswitcher">
<i class="fas fa-map-marker-alt me-2"></i><?php echo $station_profile_name; echo $active_badge; ?>
</a>
</li>
<?php }
} ?>
<div class="dropdown-divider"></div>
<li><a class="dropdown-item quickswitcher disabled"><?php echo lang('gen_hamradio_active_logbook'); ?>:<span class="badge text-bg-info ms-1"><?php echo $this->logbooks_model->find_name($this->session->userdata('active_station_logbook')); ?></span></a></li>
<div class="dropdown-divider"></div>
<li><a class="dropdown-item" href="<?php echo site_url('stationsetup'); ?>" title="Manage station locations"><?php echo lang('menu_station_setup'); ?>...</a></li>
</ul>
</li>
<?php }
// Can add extra menu items by defining them in options. The format is json.
// Useful to add extra things in Wavelog without the need for modifying files. If you add extras, these files will not be overwritten when updating.
//
@@ -448,4 +471,4 @@
}
});
});
</script>
</script>

View File

@@ -285,8 +285,7 @@
<div class="mb-3">
<label for="eqslDefaultQSLMsg"><?php echo lang("station_location_eqsl_defaultqslmsg"); ?></label>
<label class="position-absolute end-0 mb-2 me-3" for="eqslDefaultQSLMsg" id="charsLeft"> </label>
<?php $eqsl_default_qslmsg = (set_value('eqsl_default_qslmsg') != "")?set_value('eqsl_default_qslmsg'):$eqsl_default_qslmsg; ?>
<textarea class="form-control" name="eqsl_default_qslmsg" id="eqslDefaultQSLMsg" aria-describedby="eqsldefaultqslmsghelp" maxlength="240" rows="2" style="width:100%;" value="<?php echo $eqsl_default_qslmsg; ?>"><?php echo $eqsl_default_qslmsg; ?></textarea>
<textarea class="form-control" name="eqsl_default_qslmsg" id="eqslDefaultQSLMsg" aria-describedby="eqsldefaultqslmsghelp" maxlength="240" rows="2" style="width:100%;" value="<?php echo $my_station_profile->eqsl_default_qslmsg; ?>"><?php echo $my_station_profile->eqsl_default_qslmsg; ?></textarea>
<small id="eqsldefaultqslmsghelp" class="form-text text-muted"><?php echo lang("station_location_eqsl_defaultqslmsg_hint"); ?></small>
</div>
</div>

View File

@@ -0,0 +1,23 @@
<div class="container" id="create_station_logbook">
<br>
<!-- Display Message -->
<div id="flashdata" class="alert-message error">
</div>
<?php if($this->session->flashdata('notice')) { ?>
<div id="message" >
<?php echo $this->session->flashdata('notice'); ?>
</div>
<?php } ?>
<?php $this->load->helper('form'); ?>
<div class="mb-3">
<label for="stationLogbookNameInput"><?php echo lang('station_logbooks_create_name');?></label>
<input type="text" class="form-control" name="logbook_name" id="logbook_name" aria-describedby="stationLogbookNameHelp" placeholder="Home QTH" required>
<small id="stationLogbookNameHelp" class="form-text text-muted"><?php echo lang('station_logbooks_create_name_hint');?></small>
</div>
</div>

View File

@@ -0,0 +1,194 @@
<div class="container">
<br>
<?php if($this->session->flashdata('message')) { ?>
<!-- Display Message -->
<div class="alert-message error">
<p><?php echo $this->session->flashdata('message'); ?></p>
</div>
<?php } ?>
<h2><?php echo $page_title; ?></h2>
<div class="row">
<div>
<div class="card">
<div class="card-header">
<?php echo lang('station_logbooks')?>
</div>
<div class="card-body">
<p class="card-text"><?php echo lang('station_logbooks_description_text')?></p>
<a class="btn btn-primary btn-sm" href="javascript:createStationLogbook();"><i class="fas fa-plus"></i> <?php echo lang('station_logbooks_create')?></a>
<?php if ($my_logbooks->num_rows() > 0) { ?>
<div class="table-responsive">
<table id="station_logbooks_table" class="table-sm table table-hover table-striped table-condensed">
<thead>
<tr>
<th scope="col"><?php echo lang('general_word_name')?></th>
<th scope="col"><?php echo lang('station_logbooks_status')?></th>
<th scope="col"><?php echo lang('admin_edit')?></th>
<th scope="col"><?php echo lang('admin_delete')?></th>
<th scope="col"><?php echo lang('station_logbooks_link')?></th>
<th scope="col"><?php echo lang('station_logbooks_public_search')?></th>
</tr>
</thead>
<tbody>
<?php foreach ($my_logbooks->result() as $row) { ?>
<tr>
<td><?php echo $row->logbook_name;?></td>
<td>
<?php if($this->session->userdata('active_station_logbook') != $row->logbook_id) { ?>
<button id="<?php echo $row->logbook_id; ?>" class="setActiveLogbook btn btn-outline-primary btn-sm"><?php echo lang('station_logbooks_set_active')?></button>
<?php } else {
echo "<span class='badge bg-success'>" . lang('station_logbooks_active_logbook') . "</span>";
}?>
</td>
<td>
<a href="<?php echo site_url('logbooks/edit')."/".$row->logbook_id; ?>"
class="btn btn-outline-primary btn-sm"><i class="fas fa-edit"
title="<?php echo lang('station_logbooks_edit_logbook') . ': ' . $row->logbook_name;?>"></i>
</a>
</td>
<td>
<?php if($this->session->userdata('active_station_logbook') != $row->logbook_id) { ?>
<button id="<?php echo $row->logbook_id; ?>" class="deleteLogbook btn btn-danger btn-sm"
cnftext="'<?php echo lang('station_logbooks_confirm_delete') . $row->logbook_name; ?>'"><i
class="fas fa-trash-alt"></i></a>
<?php } ?>
</td>
<td>
<?php if($row->public_slug != '') { ?>
<a target="_blank"
href="<?php echo site_url('visitor')."/".$row->public_slug; ?>"
class="btn btn-outline-primary btn-sm"><i class="fas fa-globe"
title="<?php echo lang('station_logbooks_view_public') . $row->logbook_name;?>"></i>
</a>
<?php } ?>
</td>
<td>
<?php if ($row->public_search == 1) {
echo "<span class='badge bg-success'>" . lang('general_word_enabled') . "</span>";
} else {
echo "<span class='badge bg-dark'>" . lang('general_word_disabled') . "</span>";
} ?>
</td>
</tr>
<?php } ?>
</tbody>
</table>
</div>
<?php } ?>
</div>
</div>
<div class="card">
<div class="card-header">
Station Locations
</div>
<div class="card-body">
<p class="card-text"><?php echo lang('station_location_header_ln1'); ?></p>
<p class="card-text"><?php echo lang('station_location_header_ln2'); ?></p>
<p class="card-text"><?php echo lang('station_location_header_ln3'); ?></p>
<p><a href="<?php echo site_url('station/create'); ?>" class="btn btn-sm btn-primary"><i class="fas fa-plus"></i> <?php echo lang('station_location_create'); ?></a></p>
<?php if ($stations->num_rows() > 0) { ?>
<?php if($current_active == 0) { ?>
<div class="alert alert-danger" role="alert">
<?php echo lang('station_location_warning'); ?>
</div>
<?php } ?>
<?php if (($is_there_qsos_with_no_station_id >= 1) && ($is_admin)) { ?>
<div class="alert alert-danger" role="alert">
<span class="badge badge-pill badge-warning"><?php echo lang('general_word_warning'); ?></span> <?php echo lang('station_location_warning_reassign'); ?>
</br>
<?php echo lang('station_location_reassign_at'); ?> <a href="<?php echo site_url('maintenance/'); ?>" class="btn btn-warning"><i class="fas fa-sync"></i><?php echo lang('account_word_admin') . "/" . lang('general_word_maintenance'); ?></a>
</div>
<?php } ?>
<div class="table-responsive">
<table id="station_locations_table" class="table-sm table table-hover table-striped table-condensed">
<thead>
<tr>
<th scope="col"><?php echo lang('station_location_id'); ?></th>
<th scope="col"><?php echo lang('station_location_name'); ?></th>
<th scope="col"><?php echo lang('station_location_callsign'); ?></th>
<th scope="col"><?php echo lang('general_word_country'); ?></th>
<th scope="col"><?php echo lang('gen_hamradio_gridsquare'); ?></th>
<th></th>
<th scope="col"><?php echo lang('admin_edit'); ?></th>
<th scope="col"><?php echo lang('admin_copy'); ?></th>
<?php
$quickswitch_enabled = ($this->user_options_model->get_options('header_menu', array('option_name'=>'locations_quickswitch'))->row()->option_value ?? 'false');
if ($quickswitch_enabled == 'true') {
?>
<th scope="col">Favorite</th>
<?php } ?>
<th scope="col"><?php echo lang('station_location_emptylog'); ?></th>
<th scope="col"><?php echo lang('admin_delete'); ?></th>
</tr>
</thead>
<tbody>
<?php foreach ($stations->result() as $row) { ?>
<tr>
<td>
<?php echo $row->station_id;?><br>
</td>
<td>
<?php echo $row->station_profile_name;?><br>
</td>
<td><?php echo $row->station_callsign;?></td>
<td><?php echo $row->station_country == '' ? '- NONE -' : $row->station_country; if ($row->dxcc_end != NULL) { echo ' <span class="badge badge-danger">'.lang('gen_hamradio_deleted_dxcc').'</span>'; } ?></td>
<td><?php echo $row->station_gridsquare;?></td>
<td>
<?php if($row->station_active != 1) { ?>
<a href="<?php echo site_url('station/set_active/').$current_active."/".$row->station_id; ?>" class="btn btn-outline-secondary btn-sm" onclick="return confirm('<?php echo lang('station_location_confirm_active'); ?> <?php echo $row->station_profile_name; ?>');"><?php echo lang('station_location_set_active'); ?></a>
<?php } else { ?>
<span class="badge bg-success"><?php echo lang('station_location_active'); ?></span>
<?php } ?>
<br>
<span class="badge bg-info">ID: <?php echo $row->station_id;?></span>
<span class="badge bg-light"><?php echo $row->qso_total;?> <?php echo lang('gen_hamradio_qso'); ?></span>
</td>
<td>
<a href="<?php echo site_url('station/edit')."/".$row->station_id; ?>" title=<?php echo lang('admin_edit'); ?> class="btn btn-outline-primary btn-sm"><i class="fas fa-edit"></i></a>
</td>
<td>
<a href="<?php echo site_url('station/copy')."/".$row->station_id; ?>" title=<?php echo lang('admin_copy'); ?> class="btn btn-outline-primary btn-sm"><i class="fas fa-copy"></i></a>
</td>
<?php
if ($quickswitch_enabled == 'true') {
?>
<td style="text-align: center; vertical-align: middle;">
<?php $locationFavorite = ($this->user_options_model->get_options('station_location', array('option_name'=>'is_favorite', 'option_key'=>$row->station_id))->row()->option_value ?? 'false');
if ($locationFavorite == 'true') {
$favStarClasses = 'class="fas fa-star" style="color: #ffc82b;"';
} else {
$favStarClasses = 'class="far fa-star" style="color: #a58118;"';
} ?>
<a href="<?php echo site_url('station/edit_favorite')."/".$row->station_id; ?>" title="mark/unmark as favorite" <?php echo $favStarClasses; ?>></a>
</td>
<?php } ?>
<td>
<a href="<?php echo site_url('station/deletelog')."/".$row->station_id; ?>" class="btn btn-danger btn-sm" title=<?php echo lang('station_location_emptylog'); ?> onclick="return confirm('<?php echo lang('station_location_confirm_del_qso'); ?>');"><i class="fas fa-trash-alt"></i></a></td>
</td>
<td>
<?php if($row->station_active != 1) { ?>
<a href="<?php echo site_url('station/delete')."/".$row->station_id; ?>" class="btn btn-danger btn-sm" title=<?php echo lang('admin_delete'); ?> onclick="return confirm('<?php echo lang('station_location_confirm_del_stationlocation'); ?> <?php echo $row->station_profile_name; ?> <?php echo lang('station_location_confirm_del_stationlocation_qso'); ?>');"><i class="fas fa-trash-alt"></i></a>
<?php } ?>
</td>
</tr>
<?php } ?>
</tbody>
</table>
</div>
<?php } ?>
</div>
</div>
</div>
</div>

View File

@@ -856,3 +856,8 @@ label {
background-color: rgb(254 243 199) !important;
--bs-badge-color: rgb(217 119 6) !important;
}
.quickswitcher.disabled {
--bs-dropdown-link-disabled-color: initial !important;
}

View File

@@ -601,8 +601,8 @@ function displayQsl(id) {
// [eQSL default msg] function to load default qslmsg to qslmsg field on qso add/edit //
function qso_set_eqsl_qslmsg(station_id, force_diff_to_origin=false, object='') {
$.ajax({
url: base_url+'index.php/station/get_options',
type: 'post', data: {'option_type':'eqsl_default_qslmsg','option_name':'key_station_id','option_key':station_id },
url: base_url+'index.php/qso/get_eqsl_default_qslmsg',
type: 'post', data: {'option_key':station_id },
success: function(res) {
if (typeof res.eqsl_default_qslmsg !== "undefined") {
object = (object!='')?(object+' '):'';
@@ -702,6 +702,55 @@ function statesDropdown(states, set_state = null) {
}
}
// Location Quickswitcher
function quickswitcher_show_activebadge(current_active) {
$('#quickswitcher_active_badge_' + current_active).removeClass('d-none');
$('#quickswitcher_list_button_' + current_active).addClass('disabled');
}
function current_active_ajax(callback) {
$.ajax({
url: base_url + 'index.php/stationsetup/getActiveStation',
type: 'GET',
dataType: 'json',
success: function(response) {
var current_active = response;
callback(current_active);
}
});
}
function set_active_loc_quickswitcher(new_active) {
current_active_ajax(function(current_active) {
$.ajax({
url: base_url + 'index.php/stationsetup/setActiveStation_json',
type: 'POST',
dataType: 'json',
data: {
id2setActive: new_active
},
success: function(response) {
$('[id^="quickswitcher_list_button_"]').not('#quickswitcher_list_button_' + new_active).removeClass('disabled');
$('[id^="quickswitcher_active_badge_"]').not('#quickswitcher_active_badge_' + new_active).addClass('d-none');
$('#quickswitcher_list_button_' + new_active).addClass('disabled');
$('#quickswitcher_active_badge_' + new_active).removeClass('d-none');
// if we are on the stationsetup page the function reloadStations exists and we can run it
if (typeof reloadStations === 'function') {
reloadStations();
}
},
error: function(xhr, status, error) {
console.error('Error while setting the new active location: ' + error);
}
});
});
}
console.log("Ready to unleash your coding prowess and join the fun?\n\n" +
"Check out our GitHub Repository and dive into the coding adventure:\n\n" +
"🚀 https://www.github.com/wavelog/wavelog");

View File

@@ -0,0 +1,309 @@
$(document).ready(function () {
reloadStations();
$("#station_locations_table").DataTable({
stateSave: true,
language: {
url: getDataTablesLanguageUrl(),
},
});
$(document).on('click','.newLogbook', function (e) { // Dynamic binding, since element doesn't exists when loading this JS
$.ajax({
url: base_url + 'index.php/stationsetup/newLogbook_json',
type: 'post',
data: {
'stationLogbook_Name': $("#logbook_name").val(),
},
success: function(data) {
jdata=JSON.parse(data);
if (jdata.success == 1) {
$("#NewStationLogbookModal").modal('hide');
reloadLogbooks();
} else {
$("#flashdata").html(jdata.flashdata);
}
},
error: function(e) {
$("#flashdata").html("An unknown Error occured");
}
});
});
$(document).on('click', '.deleteLogbook', async function (e) { // Dynamic binding, since element doesn't exists when loading this JS
await do_ajax('deleteLogbook_json', 'id2delete', reloadLogbooks,e);
});
$(document).on('click', '.setActiveLogbook', async function (e) { // Dynamic binding, since element doesn't exists when loading this JS
await do_ajax('setActiveLogbook_json', 'id2setActive', reloadLogbooks,e);
});
$(document).on('click', '.setActiveStation', async function (e) { // Dynamic binding, since element doesn't exists when loading this JS
await do_ajax('setActiveStation_json', 'id2setActive', reloadStations,e);
});
$(document).on('click', '.DeleteStation', async function (e) { // Dynamic binding, since element doesn't exists when loading this JS
await do_ajax('DeleteStation_json', 'id2del', reloadStations,e);
});
$(document).on('click', '.EmptyStation', async function (e) { // Dynamic binding, since element doesn't exists when loading this JS
await do_ajax('EmptyStation_json', 'id2Empty', reloadStations,e);
});
$(document).on('click', '.setFavorite', async function (e) { // Dynamic binding, since element doesn't exists when loading this JS
await do_ajax('setFavorite_json', 'id2Favorite', reloadStations,e);
});
$("#station_logbooks_table").DataTable({
stateSave: true,
language: {
url: getDataTablesLanguageUrl(),
},
});
});
async function do_ajax(ajax_uri, ajax_field, succ_callback, event_target) {
if (event_target.currentTarget.attributes.cnftext) {
if (!(confirm(event_target.currentTarget.attributes.cnftext.value))) {
return false;
}
}
$.ajax({
url: base_url + 'index.php/stationsetup/' + ajax_uri,
type: 'post',
data: {
[ajax_field]: event_target.currentTarget.id,
},
success: function(data) {
jdata=JSON.parse(data);
if (jdata.success == 1) {
succ_callback();
// we also want to switch the active badge in the quickswitcher
set_active_loc_quickswitcher(event_target.currentTarget.id);
} else {
$("#flashdata").html(jdata.flashdata);
}
},
error: function(e) {
$("#flashdata").html("An unknown Error occured");
}
});
}
function reloadLogbooks() {
$.ajax({
url: base_url + 'index.php/stationsetup/fetchLogbooks',
type: 'post',
dataType: 'json',
success: function (data) {
loadLogbookTable(data);
},
error: function (data) {
BootstrapDialog.alert({
title: 'ERROR',
message: 'An error ocurred while making the request',
type: BootstrapDialog.TYPE_DANGER,
closable: false,
draggable: false,
callback: function (result) {
}
});
},
});
return false;
}
function reloadStations() {
$.ajax({
url: base_url + 'index.php/stationsetup/fetchLocations',
type: 'post',
dataType: 'json',
success: function (data) {
loadLocationTable(data);
},
error: function (data) {
BootstrapDialog.alert({
title: 'ERROR',
message: 'An error ocurred while making the request',
type: BootstrapDialog.TYPE_DANGER,
closable: false,
draggable: false,
callback: function (result) {
}
});
},
});
return false;
}
function createStationLogbook() {
$.ajax({
url: base_url + 'index.php/stationsetup/newLogbook',
type: 'post',
success: function (html) {
BootstrapDialog.show({
title: 'Create a new station logbook',
size: BootstrapDialog.SIZE_NORMAL,
cssClass: 'options',
id: "NewStationLogbookModal",
nl2br: false,
message: html,
onshown: function(dialog) {
},
buttons: [{
label: 'Save',
cssClass: 'btn-primary btn-sm newLogbook',
id: 'saveButtonNewLogbook',
},
{
label: lang_admin_close,
cssClass: 'btn-sm',
id: 'closeButton',
action: function (dialogItself) {
dialogItself.close();
}
}],
onhide: function(dialogRef){
$('#optionButton').prop("disabled", false);
},
});
}
});
}
function createStationLocation() {
$.ajax({
url: base_url + 'index.php/stationsetup/newLocation',
type: 'post',
success: function (html) {
BootstrapDialog.show({
title: 'Create a new station location',
size: BootstrapDialog.SIZE_EXTRAWIDE,
cssClass: 'options',
nl2br: false,
message: html,
onshown: function(dialog) {
},
buttons: [{
label: 'Save',
cssClass: 'btn-primary btn-sm',
id: 'saveButton',
action: function (dialogItself) {
dialogItself.close();
}
},
{
label: lang_admin_close,
cssClass: 'btn-sm',
id: 'closeButton',
action: function (dialogItself) {
dialogItself.close();
}
}],
onhide: function(dialogRef){
$('#optionButton').prop("disabled", false);
},
});
}
});
}
function loadLogbookTable(rows) {
var uninitialized = $('#station_logbooks_table').filter(function() {
return !$.fn.DataTable.fnIsDataTable(this);
});
uninitialized.each(function() {
$(this).DataTable({
searching: false,
responsive: false,
ordering: true,
"scrollY": window.innerHeight - $('#searchForm').innerHeight() - 250,
"scrollCollapse": true,
"paging": false,
"scrollX": true,
"language": {
url: getDataTablesLanguageUrl(),
},
});
});
var table = $('#station_logbooks_table').DataTable();
table.clear();
for (i = 0; i < rows.length; i++) {
let logbook = rows[i];
var data = [];
data.push(logbook.logbook_name);
data.push(logbook.logbook_state);
data.push(logbook.logbook_edit);
data.push(logbook.logbook_delete);
data.push(logbook.logbook_link);
data.push(logbook.logbook_publicsearch);
let createdRow = table.row.add(data).index();
}
table.draw();
$('[data-bs-toggle="tooltip"]').tooltip();
}
function loadLocationTable(rows) {
var uninitialized = $('#station_locations_table').filter(function() {
return !$.fn.DataTable.fnIsDataTable(this);
});
uninitialized.each(function() {
$(this).DataTable({
searching: false,
responsive: false,
ordering: true,
"scrollY": window.innerHeight - $('#searchForm').innerHeight() - 250,
"scrollCollapse": true,
"paging": false,
"scrollX": true,
"language": {
url: getDataTablesLanguageUrl(),
},
'columnDefs': [
{ 'targets':0,
'createdCell': function (td, cellData, rowData, row, col) {
(td).attr('data-order', 1); // not sure how to add ID dynamic here
}
}
]
});
});
var table = $('#station_locations_table').DataTable();
table.clear();
for (i = 0; i < rows.length; i++) {
let locations = rows[i];
var data = [];
data.push(locations.station_id);
data.push(locations.station_name);
data.push(locations.station_callsign);
data.push(locations.station_country);
data.push(locations.station_gridsquare);
data.push(locations.station_badge);
data.push(locations.station_edit);
data.push(locations.station_copylog);
if (locations.station_favorite != ''){
data.push(locations.station_favorite);
}
data.push(locations.station_emptylog);
data.push(locations.station_delete);
let createdRow = table.row.add(data).index();
}
table.draw();
$('[data-bs-toggle="tooltip"]').tooltip();
}