Added full Worked All Britain Award Support

Added full Worked All Britain Award Support using the SIG system in Cloudlog #3079
pull/3085/head
Peter Goodhall 2024-04-20 16:01:50 +01:00
rodzic dc294ef54f
commit 2d72981787
22 zmienionych plików z 961 dodań i 639 usunięć

Wyświetl plik

@ -1,4 +1,4 @@
<?php if ( ! defined('BASEPATH')) exit('No direct script access allowed'); <?php if (!defined('BASEPATH')) exit('No direct script access allowed');
/* /*
Handles Displaying of information for awards. Handles Displaying of information for awards.
@ -6,14 +6,18 @@
These are taken from comments fields or ADIF fields These are taken from comments fields or ADIF fields
*/ */
class Awards extends CI_Controller { class Awards extends CI_Controller
{
function __construct() function __construct()
{ {
parent::__construct(); parent::__construct();
$this->load->model('user_model'); $this->load->model('user_model');
if(!$this->user_model->authorize(2)) { $this->session->set_flashdata('notice', 'You\'re not allowed to do that!'); redirect('dashboard'); } if (!$this->user_model->authorize(2)) {
$this->session->set_flashdata('notice', 'You\'re not allowed to do that!');
redirect('dashboard');
}
$this->lang->load(array( $this->lang->load(array(
'lotw', 'lotw',
'eqsl' 'eqsl'
@ -29,10 +33,10 @@ class Awards extends CI_Controller {
$this->load->view('interface_assets/footer'); $this->load->view('interface_assets/footer');
} }
public function dok () public function dok()
{ {
$CI =& get_instance(); $CI = &get_instance();
$CI->load->model('logbooks_model'); $CI->load->model('logbooks_model');
$logbooks_locations_array = $CI->logbooks_model->list_logbook_relationships($this->session->userdata('active_station_logbook')); $logbooks_locations_array = $CI->logbooks_model->list_logbook_relationships($this->session->userdata('active_station_logbook'));
@ -40,7 +44,7 @@ class Awards extends CI_Controller {
$this->load->model('bands'); $this->load->model('bands');
$this->load->model('modes'); $this->load->model('modes');
if($this->input->method() === 'post') { if ($this->input->method() === 'post') {
$postdata['doks'] = $this->security->xss_clean($this->input->post('doks')); $postdata['doks'] = $this->security->xss_clean($this->input->post('doks'));
} else { } else {
$postdata['doks'] = 'both'; $postdata['doks'] = 'both';
@ -61,7 +65,7 @@ class Awards extends CI_Controller {
$data['bands'] = $bands; $data['bands'] = $bands;
if($this->input->method() === 'post') { if ($this->input->method() === 'post') {
$postdata['qsl'] = $this->security->xss_clean($this->input->post('qsl')); $postdata['qsl'] = $this->security->xss_clean($this->input->post('qsl'));
$postdata['lotw'] = $this->security->xss_clean($this->input->post('lotw')); $postdata['lotw'] = $this->security->xss_clean($this->input->post('lotw'));
$postdata['eqsl'] = $this->security->xss_clean($this->input->post('eqsl')); $postdata['eqsl'] = $this->security->xss_clean($this->input->post('eqsl'));
@ -80,7 +84,7 @@ class Awards extends CI_Controller {
} }
if ($logbooks_locations_array) { if ($logbooks_locations_array) {
$location_list = "'".implode("','",$logbooks_locations_array)."'"; $location_list = "'" . implode("','", $logbooks_locations_array) . "'";
$data['dok_array'] = $this->dok->get_dok_array($bands, $postdata, $location_list); $data['dok_array'] = $this->dok->get_dok_array($bands, $postdata, $location_list);
$data['dok_summary'] = $this->dok->get_dok_summary($bands, $postdata, $location_list); $data['dok_summary'] = $this->dok->get_dok_summary($bands, $postdata, $location_list);
} else { } else {
@ -94,10 +98,10 @@ class Awards extends CI_Controller {
$this->load->view('interface_assets/header', $data); $this->load->view('interface_assets/header', $data);
$this->load->view('awards/dok/index'); $this->load->view('awards/dok/index');
$this->load->view('interface_assets/footer'); $this->load->view('interface_assets/footer');
} }
public function dxcc () { public function dxcc()
{
$this->load->model('dxcc'); $this->load->model('dxcc');
$this->load->model('modes'); $this->load->model('modes');
$this->load->model('bands'); $this->load->model('bands');
@ -108,18 +112,16 @@ class Awards extends CI_Controller {
if ($this->input->post('band') != NULL) { // Band is not set when page first loads. if ($this->input->post('band') != NULL) { // Band is not set when page first loads.
if ($this->input->post('band') == 'All') { // Did the user specify a band? If not, use all bands if ($this->input->post('band') == 'All') { // Did the user specify a band? If not, use all bands
$bands = $data['worked_bands']; $bands = $data['worked_bands'];
} } else {
else {
$bands[] = $this->security->xss_clean($this->input->post('band')); $bands[] = $this->security->xss_clean($this->input->post('band'));
} }
} } else {
else {
$bands = $data['worked_bands']; $bands = $data['worked_bands'];
} }
$data['bands'] = $bands; // Used for displaying selected band(s) in the table in the view $data['bands'] = $bands; // Used for displaying selected band(s) in the table in the view
if($this->input->method() === 'post') { if ($this->input->method() === 'post') {
$postdata['qsl'] = $this->security->xss_clean($this->input->post('qsl')); $postdata['qsl'] = $this->security->xss_clean($this->input->post('qsl'));
$postdata['lotw'] = $this->security->xss_clean($this->input->post('lotw')); $postdata['lotw'] = $this->security->xss_clean($this->input->post('lotw'));
$postdata['eqsl'] = $this->security->xss_clean($this->input->post('eqsl')); $postdata['eqsl'] = $this->security->xss_clean($this->input->post('eqsl'));
@ -136,8 +138,7 @@ class Awards extends CI_Controller {
$postdata['Antarctica'] = $this->security->xss_clean($this->input->post('Antarctica')); $postdata['Antarctica'] = $this->security->xss_clean($this->input->post('Antarctica'));
$postdata['band'] = $this->security->xss_clean($this->input->post('band')); $postdata['band'] = $this->security->xss_clean($this->input->post('band'));
$postdata['mode'] = $this->security->xss_clean($this->input->post('mode')); $postdata['mode'] = $this->security->xss_clean($this->input->post('mode'));
} } else { // Setting default values at first load of page
else { // Setting default values at first load of page
$postdata['qsl'] = 1; $postdata['qsl'] = 1;
$postdata['lotw'] = 1; $postdata['lotw'] = 1;
$postdata['eqsl'] = 0; $postdata['eqsl'] = 0;
@ -167,7 +168,8 @@ class Awards extends CI_Controller {
$this->load->view('interface_assets/footer'); $this->load->view('interface_assets/footer');
} }
public function waja () { public function waja()
{
$footerData = []; $footerData = [];
$footerData['scripts'] = [ $footerData['scripts'] = [
'assets/js/sections/wajamap.js?' . filemtime(realpath(__DIR__ . "/../../assets/js/sections/wajamap.js")) 'assets/js/sections/wajamap.js?' . filemtime(realpath(__DIR__ . "/../../assets/js/sections/wajamap.js"))
@ -183,18 +185,16 @@ class Awards extends CI_Controller {
if ($this->input->post('band') != NULL) { // Band is not set when page first loads. if ($this->input->post('band') != NULL) { // Band is not set when page first loads.
if ($this->input->post('band') == 'All') { // Did the user specify a band? If not, use all bands if ($this->input->post('band') == 'All') { // Did the user specify a band? If not, use all bands
$bands = $data['worked_bands']; $bands = $data['worked_bands'];
} } else {
else {
$bands[] = $this->security->xss_clean($this->input->post('band')); $bands[] = $this->security->xss_clean($this->input->post('band'));
} }
} } else {
else {
$bands = $data['worked_bands']; $bands = $data['worked_bands'];
} }
$data['bands'] = $bands; // Used for displaying selected band(s) in the table in the view $data['bands'] = $bands; // Used for displaying selected band(s) in the table in the view
if($this->input->method() === 'post') { if ($this->input->method() === 'post') {
$postdata['qsl'] = $this->security->xss_clean($this->input->post('qsl')); $postdata['qsl'] = $this->security->xss_clean($this->input->post('qsl'));
$postdata['lotw'] = $this->security->xss_clean($this->input->post('lotw')); $postdata['lotw'] = $this->security->xss_clean($this->input->post('lotw'));
$postdata['eqsl'] = $this->security->xss_clean($this->input->post('eqsl')); $postdata['eqsl'] = $this->security->xss_clean($this->input->post('eqsl'));
@ -211,8 +211,7 @@ class Awards extends CI_Controller {
$postdata['Antarctica'] = $this->security->xss_clean($this->input->post('Antarctica')); $postdata['Antarctica'] = $this->security->xss_clean($this->input->post('Antarctica'));
$postdata['band'] = $this->security->xss_clean($this->input->post('band')); $postdata['band'] = $this->security->xss_clean($this->input->post('band'));
$postdata['mode'] = $this->security->xss_clean($this->input->post('mode')); $postdata['mode'] = $this->security->xss_clean($this->input->post('mode'));
} } else { // Setting default values at first load of page
else { // Setting default values at first load of page
$postdata['qsl'] = 1; $postdata['qsl'] = 1;
$postdata['lotw'] = 1; $postdata['lotw'] = 1;
$postdata['eqsl'] = 0; $postdata['eqsl'] = 0;
@ -241,7 +240,8 @@ class Awards extends CI_Controller {
$this->load->view('interface_assets/footer', $footerData); $this->load->view('interface_assets/footer', $footerData);
} }
public function vucc() { public function vucc()
{
$this->load->model('vucc'); $this->load->model('vucc');
$this->load->model('bands'); $this->load->model('bands');
$data['worked_bands'] = $this->bands->get_worked_bands('vucc'); $data['worked_bands'] = $this->bands->get_worked_bands('vucc');
@ -255,7 +255,8 @@ class Awards extends CI_Controller {
$this->load->view('interface_assets/footer'); $this->load->view('interface_assets/footer');
} }
public function vucc_band(){ public function vucc_band()
{
$this->load->model('vucc'); $this->load->model('vucc');
$band = str_replace('"', "", $this->security->xss_clean($this->input->get("Band"))); $band = str_replace('"', "", $this->security->xss_clean($this->input->get("Band")));
$type = str_replace('"', "", $this->security->xss_clean($this->input->get("Type"))); $type = str_replace('"', "", $this->security->xss_clean($this->input->get("Type")));
@ -263,15 +264,16 @@ class Awards extends CI_Controller {
$data['type'] = $type; $data['type'] = $type;
// Render Page // Render Page
$data['page_title'] = "VUCC - " .$band . " Band"; $data['page_title'] = "VUCC - " . $band . " Band";
$data['filter'] = "band ".$band; $data['filter'] = "band " . $band;
$data['band'] = $band; $data['band'] = $band;
$this->load->view('interface_assets/header', $data); $this->load->view('interface_assets/header', $data);
$this->load->view('awards/vucc/band'); $this->load->view('awards/vucc/band');
$this->load->view('interface_assets/footer'); $this->load->view('interface_assets/footer');
} }
public function vucc_details_ajax(){ public function vucc_details_ajax()
{
$this->load->model('logbook_model'); $this->load->model('logbook_model');
$gridsquare = str_replace('"', "", $this->security->xss_clean($this->input->post("Gridsquare"))); $gridsquare = str_replace('"', "", $this->security->xss_clean($this->input->post("Gridsquare")));
@ -280,14 +282,15 @@ class Awards extends CI_Controller {
// Render Page // Render Page
$data['page_title'] = "Log View - VUCC"; $data['page_title'] = "Log View - VUCC";
$data['filter'] = "vucc " . $gridsquare . " and band ".$band; $data['filter'] = "vucc " . $gridsquare . " and band " . $band;
$this->load->view('awards/details', $data); $this->load->view('awards/details', $data);
} }
/* /*
* Used to fetch QSOs from the logbook in the awards * Used to fetch QSOs from the logbook in the awards
*/ */
public function qso_details_ajax(){ public function qso_details_ajax()
{
$this->load->model('logbook_model'); $this->load->model('logbook_model');
$searchphrase = str_replace('"', "", $this->security->xss_clean($this->input->post("Searchphrase"))); $searchphrase = str_replace('"', "", $this->security->xss_clean($this->input->post("Searchphrase")));
@ -319,9 +322,9 @@ class Awards extends CI_Controller {
// Render Page // Render Page
$data['page_title'] = "Log View - " . $type; $data['page_title'] = "Log View - " . $type;
$data['filter'] = $type . " " . $searchphrase . " and band ".$band . " and mode ".$mode; $data['filter'] = $type . " " . $searchphrase . " and band " . $band . " and mode " . $mode;
if (!empty($qsltype)) { if (!empty($qsltype)) {
$data['filter'] .= " and ".implode('/', $qsltype); $data['filter'] .= " and " . implode('/', $qsltype);
} }
$this->load->view('awards/details', $data); $this->load->view('awards/details', $data);
} }
@ -330,7 +333,8 @@ class Awards extends CI_Controller {
Handles showing worked SOTAs Handles showing worked SOTAs
Comment field - SOTA:# Comment field - SOTA:#
*/ */
public function sota() { public function sota()
{
// Grab all worked sota stations // Grab all worked sota stations
$this->load->model('sota'); $this->load->model('sota');
@ -347,7 +351,8 @@ class Awards extends CI_Controller {
Handles showing worked WWFFs Handles showing worked WWFFs
Comment field - WWFF:# Comment field - WWFF:#
*/ */
public function wwff() { public function wwff()
{
// Grab all worked wwff stations // Grab all worked wwff stations
$this->load->model('wwff'); $this->load->model('wwff');
@ -364,7 +369,8 @@ class Awards extends CI_Controller {
Handles showing worked POTAs Handles showing worked POTAs
Comment field - POTA:# Comment field - POTA:#
*/ */
public function pota() { public function pota()
{
// Grab all worked pota stations // Grab all worked pota stations
$this->load->model('pota'); $this->load->model('pota');
@ -377,8 +383,9 @@ class Awards extends CI_Controller {
$this->load->view('interface_assets/footer'); $this->load->view('interface_assets/footer');
} }
public function cq() { public function cq()
$CI =& get_instance(); {
$CI = &get_instance();
$CI->load->model('logbooks_model'); $CI->load->model('logbooks_model');
$logbooks_locations_array = $CI->logbooks_model->list_logbook_relationships($this->session->userdata('active_station_logbook')); $logbooks_locations_array = $CI->logbooks_model->list_logbook_relationships($this->session->userdata('active_station_logbook'));
@ -392,18 +399,16 @@ class Awards extends CI_Controller {
if ($this->input->post('band') != NULL) { // Band is not set when page first loads. if ($this->input->post('band') != NULL) { // Band is not set when page first loads.
if ($this->input->post('band') == 'All') { // Did the user specify a band? If not, use all bands if ($this->input->post('band') == 'All') { // Did the user specify a band? If not, use all bands
$bands = $data['worked_bands']; $bands = $data['worked_bands'];
} } else {
else {
$bands[] = $this->input->post('band'); $bands[] = $this->input->post('band');
} }
} } else {
else {
$bands = $data['worked_bands']; $bands = $data['worked_bands'];
} }
$data['bands'] = $bands; // Used for displaying selected band(s) in the table in the view $data['bands'] = $bands; // Used for displaying selected band(s) in the table in the view
if($this->input->method() === 'post') { if ($this->input->method() === 'post') {
$postdata['qsl'] = $this->security->xss_clean($this->input->post('qsl')); $postdata['qsl'] = $this->security->xss_clean($this->input->post('qsl'));
$postdata['lotw'] = $this->security->xss_clean($this->input->post('lotw')); $postdata['lotw'] = $this->security->xss_clean($this->input->post('lotw'));
$postdata['eqsl'] = $this->security->xss_clean($this->input->post('eqsl')); $postdata['eqsl'] = $this->security->xss_clean($this->input->post('eqsl'));
@ -412,8 +417,7 @@ class Awards extends CI_Controller {
$postdata['notworked'] = $this->security->xss_clean($this->input->post('notworked')); $postdata['notworked'] = $this->security->xss_clean($this->input->post('notworked'));
$postdata['band'] = $this->security->xss_clean($this->input->post('band')); $postdata['band'] = $this->security->xss_clean($this->input->post('band'));
$postdata['mode'] = $this->security->xss_clean($this->input->post('mode')); $postdata['mode'] = $this->security->xss_clean($this->input->post('mode'));
} } else { // Setting default values at first load of page
else { // Setting default values at first load of page
$postdata['qsl'] = 1; $postdata['qsl'] = 1;
$postdata['lotw'] = 1; $postdata['lotw'] = 1;
$postdata['eqsl'] = 0; $postdata['eqsl'] = 0;
@ -425,7 +429,7 @@ class Awards extends CI_Controller {
} }
if ($logbooks_locations_array) { if ($logbooks_locations_array) {
$location_list = "'".implode("','",$logbooks_locations_array)."'"; $location_list = "'" . implode("','", $logbooks_locations_array) . "'";
$data['cq_array'] = $this->cq->get_cq_array($bands, $postdata, $location_list); $data['cq_array'] = $this->cq->get_cq_array($bands, $postdata, $location_list);
$data['cq_summary'] = $this->cq->get_cq_summary($bands, $postdata, $location_list); $data['cq_summary'] = $this->cq->get_cq_summary($bands, $postdata, $location_list);
} else { } else {
@ -441,7 +445,8 @@ class Awards extends CI_Controller {
$this->load->view('interface_assets/footer'); $this->load->view('interface_assets/footer');
} }
public function was() { public function was()
{
$footerData = []; $footerData = [];
$footerData['scripts'] = [ $footerData['scripts'] = [
'assets/js/sections/wasmap.js?' . filemtime(realpath(__DIR__ . "/../../assets/js/sections/wasmap.js")) 'assets/js/sections/wasmap.js?' . filemtime(realpath(__DIR__ . "/../../assets/js/sections/wasmap.js"))
@ -457,18 +462,16 @@ class Awards extends CI_Controller {
if ($this->input->post('band') != NULL) { // Band is not set when page first loads. if ($this->input->post('band') != NULL) { // Band is not set when page first loads.
if ($this->input->post('band') == 'All') { // Did the user specify a band? If not, use all bands if ($this->input->post('band') == 'All') { // Did the user specify a band? If not, use all bands
$bands = $data['worked_bands']; $bands = $data['worked_bands'];
} } else {
else {
$bands[] = $this->security->xss_clean($this->input->post('band')); $bands[] = $this->security->xss_clean($this->input->post('band'));
} }
} } else {
else {
$bands = $data['worked_bands']; $bands = $data['worked_bands'];
} }
$data['bands'] = $bands; // Used for displaying selected band(s) in the table in the view $data['bands'] = $bands; // Used for displaying selected band(s) in the table in the view
if($this->input->method() === 'post') { if ($this->input->method() === 'post') {
$postdata['qsl'] = $this->security->xss_clean($this->input->post('qsl')); $postdata['qsl'] = $this->security->xss_clean($this->input->post('qsl'));
$postdata['lotw'] = $this->security->xss_clean($this->input->post('lotw')); $postdata['lotw'] = $this->security->xss_clean($this->input->post('lotw'));
$postdata['eqsl'] = $this->security->xss_clean($this->input->post('eqsl')); $postdata['eqsl'] = $this->security->xss_clean($this->input->post('eqsl'));
@ -477,8 +480,7 @@ class Awards extends CI_Controller {
$postdata['notworked'] = $this->security->xss_clean($this->input->post('notworked')); $postdata['notworked'] = $this->security->xss_clean($this->input->post('notworked'));
$postdata['band'] = $this->security->xss_clean($this->input->post('band')); $postdata['band'] = $this->security->xss_clean($this->input->post('band'));
$postdata['mode'] = $this->security->xss_clean($this->input->post('mode')); $postdata['mode'] = $this->security->xss_clean($this->input->post('mode'));
} } else { // Setting default values at first load of page
else { // Setting default values at first load of page
$postdata['qsl'] = 1; $postdata['qsl'] = 1;
$postdata['lotw'] = 1; $postdata['lotw'] = 1;
$postdata['eqsl'] = 0; $postdata['eqsl'] = 0;
@ -498,7 +500,14 @@ class Awards extends CI_Controller {
$this->load->view('awards/was/index'); $this->load->view('awards/was/index');
$this->load->view('interface_assets/footer', $footerData); $this->load->view('interface_assets/footer', $footerData);
} }
public function wab() { public function wab()
{
// get worked squares from Worked_all_britain_model
$this->load->model('worked_all_britain_model');
$data['worked_squares'] = array_filter($this->worked_all_britain_model->get_worked_squares());
$data['confirmed_squares'] = array_filter($this->worked_all_britain_model->get_confirmed_squares());
// Render page // Render page
$data['page_title'] = "Awards - Worked All Britain"; $data['page_title'] = "Awards - Worked All Britain";
$this->load->view('interface_assets/header', $data); $this->load->view('interface_assets/header', $data);
@ -506,7 +515,23 @@ class Awards extends CI_Controller {
$this->load->view('interface_assets/footer'); $this->load->view('interface_assets/footer');
} }
public function iota () { public function wab_details_ajax()
{
$this->load->model('logbook_model');
$wab = str_replace('"', "", $this->security->xss_clean($this->input->post("Wab")));
$data['results'] = $this->logbook_model->wab_qso_details($wab);
// Render Page
$data['page_title'] = "Log View - WAB";
$data['filter'] = "WAB " . $wab;
$this->load->view('awards/wab/details', $data);
}
public function iota()
{
$this->load->model('iota'); $this->load->model('iota');
$this->load->model('modes'); $this->load->model('modes');
$this->load->model('bands'); $this->load->model('bands');
@ -516,19 +541,17 @@ class Awards extends CI_Controller {
if ($this->input->post('band') != NULL) { // Band is not set when page first loads. if ($this->input->post('band') != NULL) { // Band is not set when page first loads.
if ($this->input->post('band') == 'All') { // Did the user specify a band? If not, use all bands if ($this->input->post('band') == 'All') { // Did the user specify a band? If not, use all bands
$bands = $data['worked_bands']; $bands = $data['worked_bands'];
} } else {
else {
$bands[] = $this->security->xss_clean($this->input->post('band')); $bands[] = $this->security->xss_clean($this->input->post('band'));
} }
} } else {
else {
$bands = $data['worked_bands']; $bands = $data['worked_bands'];
} }
$data['bands'] = $bands; // Used for displaying selected band(s) in the table in the view $data['bands'] = $bands; // Used for displaying selected band(s) in the table in the view
$data['modes'] = $this->modes->active(); // Used in the view for mode select $data['modes'] = $this->modes->active(); // Used in the view for mode select
if($this->input->method() === 'post') { if ($this->input->method() === 'post') {
$postdata['worked'] = $this->security->xss_clean($this->input->post('worked')); $postdata['worked'] = $this->security->xss_clean($this->input->post('worked'));
$postdata['confirmed'] = $this->security->xss_clean($this->input->post('confirmed')); $postdata['confirmed'] = $this->security->xss_clean($this->input->post('confirmed'));
$postdata['notworked'] = $this->security->xss_clean($this->input->post('notworked')); $postdata['notworked'] = $this->security->xss_clean($this->input->post('notworked'));
@ -542,8 +565,7 @@ class Awards extends CI_Controller {
$postdata['Antarctica'] = $this->security->xss_clean($this->input->post('Antarctica')); $postdata['Antarctica'] = $this->security->xss_clean($this->input->post('Antarctica'));
$postdata['band'] = $this->security->xss_clean($this->input->post('band')); $postdata['band'] = $this->security->xss_clean($this->input->post('band'));
$postdata['mode'] = $this->security->xss_clean($this->input->post('mode')); $postdata['mode'] = $this->security->xss_clean($this->input->post('mode'));
} } else { // Setting default values at first load of page
else { // Setting default values at first load of page
$postdata['worked'] = 1; $postdata['worked'] = 1;
$postdata['confirmed'] = 1; $postdata['confirmed'] = 1;
$postdata['notworked'] = 1; $postdata['notworked'] = 1;
@ -570,7 +592,8 @@ class Awards extends CI_Controller {
$this->load->view('interface_assets/footer'); $this->load->view('interface_assets/footer');
} }
public function counties() { public function counties()
{
$this->load->model('counties'); $this->load->model('counties');
$data['counties_array'] = $this->counties->get_counties_array(); $data['counties_array'] = $this->counties->get_counties_array();
@ -581,7 +604,8 @@ class Awards extends CI_Controller {
$this->load->view('interface_assets/footer'); $this->load->view('interface_assets/footer');
} }
public function counties_details() { public function counties_details()
{
$this->load->model('counties'); $this->load->model('counties');
$state = str_replace('"', "", $this->security->xss_clean($this->input->get("State"))); $state = str_replace('"', "", $this->security->xss_clean($this->input->get("State")));
$type = str_replace('"', "", $this->security->xss_clean($this->input->get("Type"))); $type = str_replace('"', "", $this->security->xss_clean($this->input->get("Type")));
@ -590,13 +614,14 @@ class Awards extends CI_Controller {
// Render Page // Render Page
$data['page_title'] = "US Counties"; $data['page_title'] = "US Counties";
$data['filter'] = $type . " counties in state ".$state; $data['filter'] = $type . " counties in state " . $state;
$this->load->view('interface_assets/header', $data); $this->load->view('interface_assets/header', $data);
$this->load->view('awards/counties/details'); $this->load->view('awards/counties/details');
$this->load->view('interface_assets/footer'); $this->load->view('interface_assets/footer');
} }
public function counties_details_ajax(){ public function counties_details_ajax()
{
$this->load->model('logbook_model'); $this->load->model('logbook_model');
$state = str_replace('"', "", $this->security->xss_clean($this->input->post("State"))); $state = str_replace('"', "", $this->security->xss_clean($this->input->post("State")));
@ -609,76 +634,79 @@ class Awards extends CI_Controller {
$this->load->view('awards/details', $data); $this->load->view('awards/details', $data);
} }
public function gridmaster($dxcc) { public function gridmaster($dxcc)
{
$dxcc = $this->security->xss_clean($dxcc); $dxcc = $this->security->xss_clean($dxcc);
$data['page_title'] = "Awards - ".strtoupper($dxcc)." Gridmaster"; $data['page_title'] = "Awards - " . strtoupper($dxcc) . " Gridmaster";
$this->load->model('bands'); $this->load->model('bands');
$this->load->model('gridmap_model'); $this->load->model('gridmap_model');
$this->load->model('stations'); $this->load->model('stations');
$data['homegrid']= explode(',', $this->stations->find_gridsquare()); $data['homegrid'] = explode(',', $this->stations->find_gridsquare());
$data['modes'] = $this->gridmap_model->get_worked_modes(); $data['modes'] = $this->gridmap_model->get_worked_modes();
$data['bands']= $this->bands->get_worked_bands(); $data['bands'] = $this->bands->get_worked_bands();
$data['sats_available']= $this->bands->get_worked_sats(); $data['sats_available'] = $this->bands->get_worked_sats();
$data['layer']= $this->optionslib->get_option('option_map_tile_server'); $data['layer'] = $this->optionslib->get_option('option_map_tile_server');
$data['attribution']= $this->optionslib->get_option('option_map_tile_server_copyright'); $data['attribution'] = $this->optionslib->get_option('option_map_tile_server_copyright');
$data['gridsquares_gridsquares']= lang('gridsquares_gridsquares'); $data['gridsquares_gridsquares'] = lang('gridsquares_gridsquares');
$data['gridsquares_gridsquares_worked']= lang('gridsquares_gridsquares_worked'); $data['gridsquares_gridsquares_worked'] = lang('gridsquares_gridsquares_worked');
$data['gridsquares_gridsquares_lotw']= lang('gridsquares_gridsquares_lotw'); $data['gridsquares_gridsquares_lotw'] = lang('gridsquares_gridsquares_lotw');
$data['gridsquares_gridsquares_paper']= lang('gridsquares_gridsquares_paper'); $data['gridsquares_gridsquares_paper'] = lang('gridsquares_gridsquares_paper');
$indexData['dxcc'] = $dxcc; $indexData['dxcc'] = $dxcc;
$footerData = []; $footerData = [];
$footerData['scripts']= [ $footerData['scripts'] = [
'assets/js/leaflet/geocoding.js', 'assets/js/leaflet/geocoding.js',
'assets/js/leaflet/L.MaidenheadColouredGridmasterMap.js', 'assets/js/leaflet/L.MaidenheadColouredGridmasterMap.js',
'assets/js/sections/gridmaster.js' 'assets/js/sections/gridmaster.js'
]; ];
$this->load->view('interface_assets/header',$data); $this->load->view('interface_assets/header', $data);
$this->load->view('awards/gridmaster/index',$indexData); $this->load->view('awards/gridmaster/index', $indexData);
$this->load->view('interface_assets/footer',$footerData); $this->load->view('interface_assets/footer', $footerData);
} }
public function ffma() { public function ffma()
{
$data['page_title'] = "Awards - Fred Fish Memorial Award (FFMA)"; $data['page_title'] = "Awards - Fred Fish Memorial Award (FFMA)";
$this->load->model('bands'); $this->load->model('bands');
$this->load->model('ffma_model'); $this->load->model('ffma_model');
$this->load->model('stations'); $this->load->model('stations');
$data['homegrid']= explode(',', $this->stations->find_gridsquare()); $data['homegrid'] = explode(',', $this->stations->find_gridsquare());
$data['layer']= $this->optionslib->get_option('option_map_tile_server'); $data['layer'] = $this->optionslib->get_option('option_map_tile_server');
$data['attribution']= $this->optionslib->get_option('option_map_tile_server_copyright'); $data['attribution'] = $this->optionslib->get_option('option_map_tile_server_copyright');
$data['gridsquares_gridsquares']= lang('gridsquares_gridsquares'); $data['gridsquares_gridsquares'] = lang('gridsquares_gridsquares');
$data['gridsquares_gridsquares_worked']= lang('gridsquares_gridsquares_worked'); $data['gridsquares_gridsquares_worked'] = lang('gridsquares_gridsquares_worked');
$data['gridsquares_gridsquares_lotw']= lang('gridsquares_gridsquares_lotw'); $data['gridsquares_gridsquares_lotw'] = lang('gridsquares_gridsquares_lotw');
$data['gridsquares_gridsquares_paper']= lang('gridsquares_gridsquares_paper'); $data['gridsquares_gridsquares_paper'] = lang('gridsquares_gridsquares_paper');
$data['grid_count'] = $this->ffma_model->get_grid_count(); $data['grid_count'] = $this->ffma_model->get_grid_count();
$data['grids'] = $this->ffma_model->get_grids(); $data['grids'] = $this->ffma_model->get_grids();
$footerData = []; $footerData = [];
$footerData['scripts']= [ $footerData['scripts'] = [
'assets/js/leaflet/geocoding.js', 'assets/js/leaflet/geocoding.js',
'assets/js/leaflet/L.MaidenheadColouredGridmasterMap.js', 'assets/js/leaflet/L.MaidenheadColouredGridmasterMap.js',
'assets/js/sections/ffma.js' 'assets/js/sections/ffma.js'
]; ];
$this->load->view('interface_assets/header',$data); $this->load->view('interface_assets/header', $data);
$this->load->view('awards/ffma/index'); $this->load->view('awards/ffma/index');
$this->load->view('interface_assets/footer',$footerData); $this->load->view('interface_assets/footer', $footerData);
} }
public function getFfmaGridsjs() { public function getFfmaGridsjs()
{
$this->load->model('ffma_model'); $this->load->model('ffma_model');
$array_grid_4char = array(); $array_grid_4char = array();
@ -691,8 +719,8 @@ class Awards extends CI_Controller {
$query = $this->ffma_model->get_lotw(); $query = $this->ffma_model->get_lotw();
if ($query && $query->num_rows() > 0) { if ($query && $query->num_rows() > 0) {
foreach ($query->result() as $row) { foreach ($query->result() as $row) {
$grid_4char_lotw = strtoupper(substr($row->GRID_SQUARES,0,4)); $grid_4char_lotw = strtoupper(substr($row->GRID_SQUARES, 0, 4));
if(!in_array($grid_4char_lotw, $array_grid_4char_lotw)){ if (!in_array($grid_4char_lotw, $array_grid_4char_lotw)) {
array_push($array_grid_4char_lotw, $grid_4char_lotw); array_push($array_grid_4char_lotw, $grid_4char_lotw);
} }
} }
@ -701,8 +729,8 @@ class Awards extends CI_Controller {
$query = $this->ffma_model->get_paper(); $query = $this->ffma_model->get_paper();
if ($query && $query->num_rows() > 0) { if ($query && $query->num_rows() > 0) {
foreach ($query->result() as $row) { foreach ($query->result() as $row) {
$grid_4char_paper = strtoupper(substr($row->GRID_SQUARES,0,4)); $grid_4char_paper = strtoupper(substr($row->GRID_SQUARES, 0, 4));
if(!in_array($grid_4char_paper, $array_grid_4char_paper)){ if (!in_array($grid_4char_paper, $array_grid_4char_paper)) {
array_push($array_grid_4char_paper, $grid_4char_paper); array_push($array_grid_4char_paper, $grid_4char_paper);
} }
} }
@ -711,33 +739,33 @@ class Awards extends CI_Controller {
$query = $this->ffma_model->get_worked(); $query = $this->ffma_model->get_worked();
if ($query && $query->num_rows() > 0) { if ($query && $query->num_rows() > 0) {
foreach ($query->result() as $row) { foreach ($query->result() as $row) {
$grid_four = strtoupper(substr($row->GRID_SQUARES,0,4)); $grid_four = strtoupper(substr($row->GRID_SQUARES, 0, 4));
if(!in_array($grid_four, $array_grid_4char)){ if (!in_array($grid_four, $array_grid_4char)) {
array_push($array_grid_4char, $grid_four); array_push($array_grid_4char, $grid_four);
} }
} }
} }
$vucc_grids = $this->ffma_model->get_vucc_lotw(); $vucc_grids = $this->ffma_model->get_vucc_lotw();
foreach($vucc_grids as $key) { foreach ($vucc_grids as $key) {
$grid_four_lotw = strtoupper(substr($key,0,4)); $grid_four_lotw = strtoupper(substr($key, 0, 4));
if(!in_array($grid_four_lotw, $array_grid_4char_lotw)){ if (!in_array($grid_four_lotw, $array_grid_4char_lotw)) {
array_push($array_grid_4char_lotw, $grid_four_lotw); array_push($array_grid_4char_lotw, $grid_four_lotw);
} }
} }
$vucc_grids = $this->ffma_model->get_vucc_paper(); $vucc_grids = $this->ffma_model->get_vucc_paper();
foreach($vucc_grids as $key) { foreach ($vucc_grids as $key) {
$grid_four_paper = strtoupper(substr($key,0,4)); $grid_four_paper = strtoupper(substr($key, 0, 4));
if(!in_array($grid_four_paper, $array_grid_4char_paper)){ if (!in_array($grid_four_paper, $array_grid_4char_paper)) {
array_push($array_grid_4char_paper, $grid_four_paper); array_push($array_grid_4char_paper, $grid_four_paper);
} }
} }
$vucc_grids = $this->ffma_model->get_vucc_worked(); $vucc_grids = $this->ffma_model->get_vucc_worked();
foreach($vucc_grids as $key) { foreach ($vucc_grids as $key) {
$grid_four = strtoupper(substr($key,0,4)); $grid_four = strtoupper(substr($key, 0, 4));
if(!in_array($grid_four, $array_grid_4char)){ if (!in_array($grid_four, $array_grid_4char)) {
array_push($array_grid_4char, $grid_four); array_push($array_grid_4char, $grid_four);
} }
} }
@ -752,7 +780,8 @@ class Awards extends CI_Controller {
echo json_encode($data); echo json_encode($data);
} }
public function getGridmasterGridsjs($dxcc) { public function getGridmasterGridsjs($dxcc)
{
$this->load->model('gridmaster_model'); $this->load->model('gridmaster_model');
$dxcc = $this->security->xss_clean($dxcc); $dxcc = $this->security->xss_clean($dxcc);
@ -767,8 +796,8 @@ class Awards extends CI_Controller {
$query = $this->gridmaster_model->get_lotw($dxcc); $query = $this->gridmaster_model->get_lotw($dxcc);
if ($query && $query->num_rows() > 0) { if ($query && $query->num_rows() > 0) {
foreach ($query->result() as $row) { foreach ($query->result() as $row) {
$grid_4char_lotw = strtoupper(substr($row->GRID_SQUARES,0,4)); $grid_4char_lotw = strtoupper(substr($row->GRID_SQUARES, 0, 4));
if(!in_array($grid_4char_lotw, $array_grid_4char_lotw)){ if (!in_array($grid_4char_lotw, $array_grid_4char_lotw)) {
array_push($array_grid_4char_lotw, $grid_4char_lotw); array_push($array_grid_4char_lotw, $grid_4char_lotw);
} }
} }
@ -777,8 +806,8 @@ class Awards extends CI_Controller {
$query = $this->gridmaster_model->get_paper($dxcc); $query = $this->gridmaster_model->get_paper($dxcc);
if ($query && $query->num_rows() > 0) { if ($query && $query->num_rows() > 0) {
foreach ($query->result() as $row) { foreach ($query->result() as $row) {
$grid_4char_paper = strtoupper(substr($row->GRID_SQUARES,0,4)); $grid_4char_paper = strtoupper(substr($row->GRID_SQUARES, 0, 4));
if(!in_array($grid_4char_paper, $array_grid_4char_paper)){ if (!in_array($grid_4char_paper, $array_grid_4char_paper)) {
array_push($array_grid_4char_paper, $grid_4char_paper); array_push($array_grid_4char_paper, $grid_4char_paper);
} }
} }
@ -787,33 +816,33 @@ class Awards extends CI_Controller {
$query = $this->gridmaster_model->get_worked($dxcc); $query = $this->gridmaster_model->get_worked($dxcc);
if ($query && $query->num_rows() > 0) { if ($query && $query->num_rows() > 0) {
foreach ($query->result() as $row) { foreach ($query->result() as $row) {
$grid_four = strtoupper(substr($row->GRID_SQUARES,0,4)); $grid_four = strtoupper(substr($row->GRID_SQUARES, 0, 4));
if(!in_array($grid_four, $array_grid_4char)){ if (!in_array($grid_four, $array_grid_4char)) {
array_push($array_grid_4char, $grid_four); array_push($array_grid_4char, $grid_four);
} }
} }
} }
$vucc_grids = $this->gridmaster_model->get_vucc_lotw($dxcc); $vucc_grids = $this->gridmaster_model->get_vucc_lotw($dxcc);
foreach($vucc_grids as $key) { foreach ($vucc_grids as $key) {
$grid_four_lotw = strtoupper(substr($key,0,4)); $grid_four_lotw = strtoupper(substr($key, 0, 4));
if(!in_array($grid_four_lotw, $array_grid_4char_lotw)){ if (!in_array($grid_four_lotw, $array_grid_4char_lotw)) {
array_push($array_grid_4char_lotw, $grid_four_lotw); array_push($array_grid_4char_lotw, $grid_four_lotw);
} }
} }
$vucc_grids = $this->gridmaster_model->get_vucc_paper($dxcc); $vucc_grids = $this->gridmaster_model->get_vucc_paper($dxcc);
foreach($vucc_grids as $key) { foreach ($vucc_grids as $key) {
$grid_four_paper = strtoupper(substr($key,0,4)); $grid_four_paper = strtoupper(substr($key, 0, 4));
if(!in_array($grid_four_paper, $array_grid_4char_paper)){ if (!in_array($grid_four_paper, $array_grid_4char_paper)) {
array_push($array_grid_4char_paper, $grid_four_paper); array_push($array_grid_4char_paper, $grid_four_paper);
} }
} }
$vucc_grids = $this->gridmaster_model->get_vucc_worked($dxcc); $vucc_grids = $this->gridmaster_model->get_vucc_worked($dxcc);
foreach($vucc_grids as $key) { foreach ($vucc_grids as $key) {
$grid_four = strtoupper(substr($key,0,4)); $grid_four = strtoupper(substr($key, 0, 4));
if(!in_array($grid_four, $array_grid_4char)){ if (!in_array($grid_four, $array_grid_4char)) {
array_push($array_grid_4char, $grid_four); array_push($array_grid_4char, $grid_four);
} }
} }
@ -835,7 +864,8 @@ class Awards extends CI_Controller {
Handles showing worked Sigs Handles showing worked Sigs
Adif fields: my_sig Adif fields: my_sig
*/ */
public function sig() { public function sig()
{
// Grab all worked sig stations // Grab all worked sig stations
$this->load->model('sig'); $this->load->model('sig');
@ -851,7 +881,8 @@ class Awards extends CI_Controller {
/* /*
Handles showing worked Sigs Handles showing worked Sigs
*/ */
public function sig_details() { public function sig_details()
{
// Grab all worked sig stations // Grab all worked sig stations
$this->load->model('sig'); $this->load->model('sig');
@ -869,7 +900,8 @@ class Awards extends CI_Controller {
/* /*
Handles exporting SIGS to ADIF Handles exporting SIGS to ADIF
*/ */
public function sigexportadif() { public function sigexportadif()
{
// Set memory limit to unlimited to allow heavy usage // Set memory limit to unlimited to allow heavy usage
ini_set('memory_limit', '-1'); ini_set('memory_limit', '-1');
@ -886,7 +918,8 @@ class Awards extends CI_Controller {
This displays the WAS map and requires the $band_type and $mode_type This displays the WAS map and requires the $band_type and $mode_type
*/ */
public function was_map() { public function was_map()
{
$stateString = 'AK,AL,AR,AZ,CA,CO,CT,DE,FL,GA,HI,IA,ID,IL,IN,KS,KY,LA,MA,MD,ME,MI,MN,MO,MS,MT,NC,ND,NE,NH,NJ,NM,NV,NY,OH,OK,OR,PA,RI,SC,SD,TN,TX,UT,VA,VT,WA,WI,WV,WY'; $stateString = 'AK,AL,AR,AZ,CA,CO,CT,DE,FL,GA,HI,IA,ID,IL,IN,KS,KY,LA,MA,MD,ME,MI,MN,MO,MS,MT,NC,ND,NE,NH,NJ,NM,NV,NY,OH,OK,OR,PA,RI,SC,SD,TN,TX,UT,VA,VT,WA,WI,WV,WY';
$wasArray = explode(',', $stateString); $wasArray = explode(',', $stateString);
@ -894,12 +927,12 @@ class Awards extends CI_Controller {
$bands[] = $this->security->xss_clean($this->input->post('band')); $bands[] = $this->security->xss_clean($this->input->post('band'));
$postdata['qsl'] = $this->input->post('qsl') == 0 ? NULL: 1; $postdata['qsl'] = $this->input->post('qsl') == 0 ? NULL : 1;
$postdata['lotw'] = $this->input->post('lotw') == 0 ? NULL: 1; $postdata['lotw'] = $this->input->post('lotw') == 0 ? NULL : 1;
$postdata['eqsl'] = $this->input->post('eqsl') == 0 ? NULL: 1; $postdata['eqsl'] = $this->input->post('eqsl') == 0 ? NULL : 1;
$postdata['worked'] = $this->input->post('worked') == 0 ? NULL: 1; $postdata['worked'] = $this->input->post('worked') == 0 ? NULL : 1;
$postdata['confirmed'] = $this->input->post('confirmed') == 0 ? NULL: 1; $postdata['confirmed'] = $this->input->post('confirmed') == 0 ? NULL : 1;
$postdata['notworked'] = $this->input->post('notworked') == 0 ? NULL: 1; $postdata['notworked'] = $this->input->post('notworked') == 0 ? NULL : 1;
$postdata['band'] = $this->security->xss_clean($this->input->post('band')); $postdata['band'] = $this->security->xss_clean($this->input->post('band'));
$postdata['mode'] = $this->security->xss_clean($this->input->post('mode')); $postdata['mode'] = $this->security->xss_clean($this->input->post('mode'));
@ -914,7 +947,7 @@ class Awards extends CI_Controller {
foreach ($was_array as $was => $value) { foreach ($was_array as $was => $value) {
foreach ($value as $key) { foreach ($value as $key) {
if($key != "") { if ($key != "") {
if (strpos($key, '>W<') !== false) { if (strpos($key, '>W<') !== false) {
$states[$was] = 'W'; $states[$was] = 'W';
break; break;
@ -939,8 +972,9 @@ class Awards extends CI_Controller {
function cq_map function cq_map
This displays the CQ Zone map and requires the $band_type and $mode_type This displays the CQ Zone map and requires the $band_type and $mode_type
*/ */
public function cq_map() { public function cq_map()
$CI =& get_instance(); {
$CI = &get_instance();
$CI->load->model('logbooks_model'); $CI->load->model('logbooks_model');
$logbooks_locations_array = $CI->logbooks_model->list_logbook_relationships($this->session->userdata('active_station_logbook')); $logbooks_locations_array = $CI->logbooks_model->list_logbook_relationships($this->session->userdata('active_station_logbook'));
@ -948,17 +982,17 @@ class Awards extends CI_Controller {
$bands[] = $this->input->post('band'); $bands[] = $this->input->post('band');
$postdata['qsl'] = $this->input->post('qsl') == 0 ? NULL: 1; $postdata['qsl'] = $this->input->post('qsl') == 0 ? NULL : 1;
$postdata['lotw'] = $this->input->post('lotw') == 0 ? NULL: 1; $postdata['lotw'] = $this->input->post('lotw') == 0 ? NULL : 1;
$postdata['eqsl'] = $this->input->post('eqsl') == 0 ? NULL: 1; $postdata['eqsl'] = $this->input->post('eqsl') == 0 ? NULL : 1;
$postdata['worked'] = $this->input->post('worked') == 0 ? NULL: 1; $postdata['worked'] = $this->input->post('worked') == 0 ? NULL : 1;
$postdata['confirmed'] = $this->input->post('confirmed') == 0 ? NULL: 1; $postdata['confirmed'] = $this->input->post('confirmed') == 0 ? NULL : 1;
$postdata['notworked'] = $this->input->post('notworked') == 0 ? NULL: 1; $postdata['notworked'] = $this->input->post('notworked') == 0 ? NULL : 1;
$postdata['band'] = $this->security->xss_clean($this->input->post('band')); $postdata['band'] = $this->security->xss_clean($this->input->post('band'));
$postdata['mode'] = $this->security->xss_clean($this->input->post('mode')); $postdata['mode'] = $this->security->xss_clean($this->input->post('mode'));
if ($logbooks_locations_array) { if ($logbooks_locations_array) {
$location_list = "'".implode("','",$logbooks_locations_array)."'"; $location_list = "'" . implode("','", $logbooks_locations_array) . "'";
$cq_array = $this->cq->get_cq_array($bands, $postdata, $location_list); $cq_array = $this->cq->get_cq_array($bands, $postdata, $location_list);
} else { } else {
$location_list = null; $location_list = null;
@ -969,7 +1003,7 @@ class Awards extends CI_Controller {
foreach ($cq_array as $cq => $value) { foreach ($cq_array as $cq => $value) {
foreach ($value as $key) { foreach ($value as $key) {
if($key != "") { if ($key != "") {
if (strpos($key, '>W<') !== false) { if (strpos($key, '>W<') !== false) {
$zones[] = 'W'; $zones[] = 'W';
break; break;
@ -993,7 +1027,8 @@ class Awards extends CI_Controller {
/* /*
function waja_map function waja_map
*/ */
public function waja_map() { public function waja_map()
{
$prefectureString = '01,02,03,04,05,06,07,08,09,10,11,12,13,14,15,16,17,18,19,20,21,22,23,24,25,26,27,28,29,30,31,32,33,34,35,36,37,38,39,40,41,42,43,44,45,46,47'; $prefectureString = '01,02,03,04,05,06,07,08,09,10,11,12,13,14,15,16,17,18,19,20,21,22,23,24,25,26,27,28,29,30,31,32,33,34,35,36,37,38,39,40,41,42,43,44,45,46,47';
$wajaArray = explode(',', $prefectureString); $wajaArray = explode(',', $prefectureString);
@ -1002,12 +1037,12 @@ class Awards extends CI_Controller {
$bands[] = $this->security->xss_clean($this->input->post('band')); $bands[] = $this->security->xss_clean($this->input->post('band'));
$postdata['qsl'] = $this->input->post('qsl') == 0 ? NULL: 1; $postdata['qsl'] = $this->input->post('qsl') == 0 ? NULL : 1;
$postdata['lotw'] = $this->input->post('lotw') == 0 ? NULL: 1; $postdata['lotw'] = $this->input->post('lotw') == 0 ? NULL : 1;
$postdata['eqsl'] = $this->input->post('eqsl') == 0 ? NULL: 1; $postdata['eqsl'] = $this->input->post('eqsl') == 0 ? NULL : 1;
$postdata['worked'] = $this->input->post('worked') == 0 ? NULL: 1; $postdata['worked'] = $this->input->post('worked') == 0 ? NULL : 1;
$postdata['confirmed'] = $this->input->post('confirmed') == 0 ? NULL: 1; $postdata['confirmed'] = $this->input->post('confirmed') == 0 ? NULL : 1;
$postdata['notworked'] = $this->input->post('notworked') == 0 ? NULL: 1; $postdata['notworked'] = $this->input->post('notworked') == 0 ? NULL : 1;
$postdata['band'] = $this->security->xss_clean($this->input->post('band')); $postdata['band'] = $this->security->xss_clean($this->input->post('band'));
$postdata['mode'] = $this->security->xss_clean($this->input->post('mode')); $postdata['mode'] = $this->security->xss_clean($this->input->post('mode'));
@ -1023,7 +1058,7 @@ class Awards extends CI_Controller {
foreach ($waja_array as $waja => $value) { foreach ($waja_array as $waja => $value) {
foreach ($value as $key) { foreach ($value as $key) {
if($key != "") { if ($key != "") {
if (strpos($key, '>W<') !== false) { if (strpos($key, '>W<') !== false) {
$prefectures[$waja] = 'W'; $prefectures[$waja] = 'W';
break; break;
@ -1048,28 +1083,29 @@ class Awards extends CI_Controller {
function dxcc_map function dxcc_map
This displays the DXCC map This displays the DXCC map
*/ */
public function dxcc_map() { public function dxcc_map()
{
$this->load->model('dxcc'); $this->load->model('dxcc');
$this->load->model('bands'); $this->load->model('bands');
$bands[] = $this->security->xss_clean($this->input->post('band')); $bands[] = $this->security->xss_clean($this->input->post('band'));
$postdata['qsl'] = $this->input->post('qsl') == 0 ? NULL: 1; $postdata['qsl'] = $this->input->post('qsl') == 0 ? NULL : 1;
$postdata['lotw'] = $this->input->post('lotw') == 0 ? NULL: 1; $postdata['lotw'] = $this->input->post('lotw') == 0 ? NULL : 1;
$postdata['eqsl'] = $this->input->post('eqsl') == 0 ? NULL: 1; $postdata['eqsl'] = $this->input->post('eqsl') == 0 ? NULL : 1;
$postdata['worked'] = $this->input->post('worked') == 0 ? NULL: 1; $postdata['worked'] = $this->input->post('worked') == 0 ? NULL : 1;
$postdata['confirmed'] = $this->input->post('confirmed') == 0 ? NULL: 1; $postdata['confirmed'] = $this->input->post('confirmed') == 0 ? NULL : 1;
$postdata['notworked'] = $this->input->post('notworked') == 0 ? NULL: 1; $postdata['notworked'] = $this->input->post('notworked') == 0 ? NULL : 1;
$postdata['band'] = $this->security->xss_clean($this->input->post('band')); $postdata['band'] = $this->security->xss_clean($this->input->post('band'));
$postdata['mode'] = $this->security->xss_clean($this->input->post('mode')); $postdata['mode'] = $this->security->xss_clean($this->input->post('mode'));
$postdata['includedeleted'] = $this->input->post('includedeleted') == 0 ? NULL: 1; $postdata['includedeleted'] = $this->input->post('includedeleted') == 0 ? NULL : 1;
$postdata['Africa'] = $this->input->post('Africa') == 0 ? NULL: 1; $postdata['Africa'] = $this->input->post('Africa') == 0 ? NULL : 1;
$postdata['Asia'] = $this->input->post('Asia') == 0 ? NULL: 1; $postdata['Asia'] = $this->input->post('Asia') == 0 ? NULL : 1;
$postdata['Europe'] = $this->input->post('Europe') == 0 ? NULL: 1; $postdata['Europe'] = $this->input->post('Europe') == 0 ? NULL : 1;
$postdata['NorthAmerica'] = $this->input->post('NorthAmerica') == 0 ? NULL: 1; $postdata['NorthAmerica'] = $this->input->post('NorthAmerica') == 0 ? NULL : 1;
$postdata['SouthAmerica'] = $this->input->post('SouthAmerica') == 0 ? NULL: 1; $postdata['SouthAmerica'] = $this->input->post('SouthAmerica') == 0 ? NULL : 1;
$postdata['Oceania'] = $this->input->post('Oceania') == 0 ? NULL: 1; $postdata['Oceania'] = $this->input->post('Oceania') == 0 ? NULL : 1;
$postdata['Antarctica'] = $this->input->post('Antarctica') == 0 ? NULL: 1; $postdata['Antarctica'] = $this->input->post('Antarctica') == 0 ? NULL : 1;
$dxcclist = $this->dxcc->fetchdxcc($postdata); $dxcclist = $this->dxcc->fetchdxcc($postdata);
@ -1081,7 +1117,7 @@ class Awards extends CI_Controller {
$newdxcc[$i]['adif'] = $dxcc->adif; $newdxcc[$i]['adif'] = $dxcc->adif;
$newdxcc[$i]['prefix'] = $dxcc->prefix; $newdxcc[$i]['prefix'] = $dxcc->prefix;
$newdxcc[$i]['name'] = ucwords(strtolower($dxcc->name), "- (/"); $newdxcc[$i]['name'] = ucwords(strtolower($dxcc->name), "- (/");
if ($dxcc->Enddate!=null) { if ($dxcc->Enddate != null) {
$newdxcc[$i]['name'] .= ' (deleted)'; $newdxcc[$i]['name'] .= ' (deleted)';
} }
$newdxcc[$i]['lat'] = $dxcc->lat; $newdxcc[$i]['lat'] = $dxcc->lat;
@ -1097,27 +1133,28 @@ class Awards extends CI_Controller {
function iota function iota
This displays the IOTA map This displays the IOTA map
*/ */
public function iota_map() { public function iota_map()
{
$this->load->model('iota'); $this->load->model('iota');
$this->load->model('bands'); $this->load->model('bands');
$bands[] = $this->security->xss_clean($this->input->post('band')); $bands[] = $this->security->xss_clean($this->input->post('band'));
$postdata['lotw'] = $this->input->post('lotw') == 0 ? NULL: 1; $postdata['lotw'] = $this->input->post('lotw') == 0 ? NULL : 1;
$postdata['qsl'] = $this->input->post('qsl') == 0 ? NULL: 1; $postdata['qsl'] = $this->input->post('qsl') == 0 ? NULL : 1;
$postdata['worked'] = $this->input->post('worked') == 0 ? NULL: 1; $postdata['worked'] = $this->input->post('worked') == 0 ? NULL : 1;
$postdata['confirmed'] = $this->input->post('confirmed') == 0 ? NULL: 1; $postdata['confirmed'] = $this->input->post('confirmed') == 0 ? NULL : 1;
$postdata['notworked'] = $this->input->post('notworked') == 0 ? NULL: 1; $postdata['notworked'] = $this->input->post('notworked') == 0 ? NULL : 1;
$postdata['band'] = $this->input->post('band'); $postdata['band'] = $this->input->post('band');
$postdata['mode'] = $this->input->post('mode'); $postdata['mode'] = $this->input->post('mode');
$postdata['includedeleted'] = $this->input->post('includedeleted') == 0 ? NULL: 1; $postdata['includedeleted'] = $this->input->post('includedeleted') == 0 ? NULL : 1;
$postdata['Africa'] = $this->input->post('Africa') == 0 ? NULL: 1; $postdata['Africa'] = $this->input->post('Africa') == 0 ? NULL : 1;
$postdata['Asia'] = $this->input->post('Asia') == 0 ? NULL: 1; $postdata['Asia'] = $this->input->post('Asia') == 0 ? NULL : 1;
$postdata['Europe'] = $this->input->post('Europe') == 0 ? NULL: 1; $postdata['Europe'] = $this->input->post('Europe') == 0 ? NULL : 1;
$postdata['NorthAmerica'] = $this->input->post('NorthAmerica') == 0 ? NULL: 1; $postdata['NorthAmerica'] = $this->input->post('NorthAmerica') == 0 ? NULL : 1;
$postdata['SouthAmerica'] = $this->input->post('SouthAmerica') == 0 ? NULL: 1; $postdata['SouthAmerica'] = $this->input->post('SouthAmerica') == 0 ? NULL : 1;
$postdata['Oceania'] = $this->input->post('Oceania') == 0 ? NULL: 1; $postdata['Oceania'] = $this->input->post('Oceania') == 0 ? NULL : 1;
$postdata['Antarctica'] = $this->input->post('Antarctica') == 0 ? NULL: 1; $postdata['Antarctica'] = $this->input->post('Antarctica') == 0 ? NULL : 1;
$iotalist = $this->iota->fetchIota($postdata); $iotalist = $this->iota->fetchIota($postdata);
@ -1143,9 +1180,10 @@ class Awards extends CI_Controller {
echo json_encode($newiota); echo json_encode($newiota);
} }
function returnStatus($string) { function returnStatus($string)
{
foreach ($string as $key) { foreach ($string as $key) {
if($key != "") { if ($key != "") {
if (strpos($key, '>W<') !== false) { if (strpos($key, '>W<') !== false) {
return 'W'; return 'W';
} }

Wyświetl plik

@ -193,3 +193,13 @@ $lang['awards_waja_description_ln1'] = "WAJA - Worked All Japan prefectures Awar
$lang['awards_waja_description_ln2'] = "WAJA, Worked All Japan prefectures in Amateur Radio, encourages licensed ham radio operators to work all the prefectures in Japan."; $lang['awards_waja_description_ln2'] = "WAJA, Worked All Japan prefectures in Amateur Radio, encourages licensed ham radio operators to work all the prefectures in Japan.";
$lang['awards_waja_description_ln3'] = "May be claimed for having contacted (heard) and received a QSL card from an amateur station located in each of the 47 prefectures of Japan. A list of QSL cards should be arranged in order of WAJA (HAJA) reference number, however names of prefectures may be omitted."; $lang['awards_waja_description_ln3'] = "May be claimed for having contacted (heard) and received a QSL card from an amateur station located in each of the 47 prefectures of Japan. A list of QSL cards should be arranged in order of WAJA (HAJA) reference number, however names of prefectures may be omitted.";
$lang['awards_waja_description_ln4'] = "For more information, please visit: <a href='https://www.jarl.org/English/4_Library/A-4-2_Awards/Award_Main.htm' target='_blank'>https://www.jarl.org/English/4_Library/A-4-2_Awards/Award_Main.htm</a>."; $lang['awards_waja_description_ln4'] = "For more information, please visit: <a href='https://www.jarl.org/English/4_Library/A-4-2_Awards/Award_Main.htm' target='_blank'>https://www.jarl.org/English/4_Library/A-4-2_Awards/Award_Main.htm</a>.";
/*
___________________________________________________________________________________________
WAB -- Use all 3 Lines of Text
___________________________________________________________________________________________
*/
$lang['awards_waja_description_ln1'] = "WAB - Worked All Britain Award";
$lang['awards_wab_description_ln2'] = "The Amateur Radio Worked All Britain (WAB) Award is a prestigious recognition program within the amateur radio community that celebrates communication achievements across the United Kingdom. The WAB Award scheme encourages radio operators to establish contact with stations located in different regions of Britain, fostering camaraderie and promoting radio communication skills. To earn the WAB Award, participants must make successful radio contacts with stations located in specific WAB areas, which are defined by Ordnance Survey grid squares. These grid squares cover the entirety of Great Britain, including England, Scotland, Wales, and some offshore islands.";
$lang['awards_wab_description_ln3'] = "Participants in the WAB Award program exchange information such as their location, signal strength, and WAB square reference during radio contacts. Points are awarded based on the location of the contacted station, with different point values assigned to contacts made within different WAB areas. By accumulating points from successful contacts, radio operators can progress through various award levels, each representing a significant milestone in their amateur radio journey. The WAB Award not only recognizes the dedication and skill of radio operators but also promotes geographic diversity and encourages exploration of the rich tapestry of locations across Britain through the medium of amateur radio.";
$lang['awards_waja_description_ln4'] = "For more information, please visit: <a href='https://wab.intermip.net/default.php' target='_blank'>https://wab.intermip.net/default.php</a>.";

Wyświetl plik

@ -193,3 +193,13 @@ $lang['awards_waja_description_ln1'] = "WAJA - 通联全日本都道府县奖状
$lang['awards_waja_description_ln2'] = "WAJA通联全日本都道府县奖状鼓励许可的业余无线电操作者与所有日本都道府县的电台通联"; $lang['awards_waja_description_ln2'] = "WAJA通联全日本都道府县奖状鼓励许可的业余无线电操作者与所有日本都道府县的电台通联";
$lang['awards_waja_description_ln3'] = "也许可以通过展示出已经通联或收听过来自日本47个都道府县的电台发来的QSL卡片并按照WAJA(HAJA)的顺序进行排列,都道府县的名称可以忽略"; $lang['awards_waja_description_ln3'] = "也许可以通过展示出已经通联或收听过来自日本47个都道府县的电台发来的QSL卡片并按照WAJA(HAJA)的顺序进行排列,都道府县的名称可以忽略";
$lang['awards_waja_description_ln4'] = "请访问 <a href='https://www.jarl.org/English/4_Library/A-4-2_Awards/Award_Main.htm' target='_blank'>https://www.jarl.org/English/4_Library/A-4-2_Awards/Award_Main.htm</a> 获得更多信息"; $lang['awards_waja_description_ln4'] = "请访问 <a href='https://www.jarl.org/English/4_Library/A-4-2_Awards/Award_Main.htm' target='_blank'>https://www.jarl.org/English/4_Library/A-4-2_Awards/Award_Main.htm</a> 获得更多信息";
/*
___________________________________________________________________________________________
WAB -- Use all 3 Lines of Text
___________________________________________________________________________________________
*/
$lang['awards_waja_description_ln1'] = "WAB - Worked All Britain Award";
$lang['awards_wab_description_ln2'] = "The Amateur Radio Worked All Britain (WAB) Award is a prestigious recognition program within the amateur radio community that celebrates communication achievements across the United Kingdom. The WAB Award scheme encourages radio operators to establish contact with stations located in different regions of Britain, fostering camaraderie and promoting radio communication skills. To earn the WAB Award, participants must make successful radio contacts with stations located in specific WAB areas, which are defined by Ordnance Survey grid squares. These grid squares cover the entirety of Great Britain, including England, Scotland, Wales, and some offshore islands.";
$lang['awards_wab_description_ln3'] = "Participants in the WAB Award program exchange information such as their location, signal strength, and WAB square reference during radio contacts. Points are awarded based on the location of the contacted station, with different point values assigned to contacts made within different WAB areas. By accumulating points from successful contacts, radio operators can progress through various award levels, each representing a significant milestone in their amateur radio journey. The WAB Award not only recognizes the dedication and skill of radio operators but also promotes geographic diversity and encourages exploration of the rich tapestry of locations across Britain through the medium of amateur radio.";
$lang['awards_waja_description_ln4'] = "For more information, please visit: <a href='https://wab.intermip.net/default.php' target='_blank'>https://wab.intermip.net/default.php</a>.";

Wyświetl plik

@ -193,3 +193,12 @@ $lang['awards_waja_description_ln1'] = "WAJA - Worked All Japan prefectures Awar
$lang['awards_waja_description_ln2'] = "WAJA, Worked All Japan prefectures in Amateur Radio, encourages licensed ham radio operators to work all the prefectures in Japan."; $lang['awards_waja_description_ln2'] = "WAJA, Worked All Japan prefectures in Amateur Radio, encourages licensed ham radio operators to work all the prefectures in Japan.";
$lang['awards_waja_description_ln3'] = "May be claimed for having contacted (heard) and received a QSL card from an amateur station located in each of the 47 prefectures of Japan. A list of QSL cards should be arranged in order of WAJA (HAJA) reference number, however names of prefectures may be omitted."; $lang['awards_waja_description_ln3'] = "May be claimed for having contacted (heard) and received a QSL card from an amateur station located in each of the 47 prefectures of Japan. A list of QSL cards should be arranged in order of WAJA (HAJA) reference number, however names of prefectures may be omitted.";
$lang['awards_waja_description_ln4'] = "For more information, please visit: <a href='https://www.jarl.org/English/4_Library/A-4-2_Awards/Award_Main.htm' target='_blank'>https://www.jarl.org/English/4_Library/A-4-2_Awards/Award_Main.htm</a>."; $lang['awards_waja_description_ln4'] = "For more information, please visit: <a href='https://www.jarl.org/English/4_Library/A-4-2_Awards/Award_Main.htm' target='_blank'>https://www.jarl.org/English/4_Library/A-4-2_Awards/Award_Main.htm</a>.";
/*
___________________________________________________________________________________________
WAB -- Use all 3 Lines of Text
___________________________________________________________________________________________
*/
$lang['awards_waja_description_ln1'] = "WAB - Worked All Britain Award";
$lang['awards_wab_description_ln2'] = "The Amateur Radio Worked All Britain (WAB) Award is a prestigious recognition program within the amateur radio community that celebrates communication achievements across the United Kingdom. The WAB Award scheme encourages radio operators to establish contact with stations located in different regions of Britain, fostering camaraderie and promoting radio communication skills. To earn the WAB Award, participants must make successful radio contacts with stations located in specific WAB areas, which are defined by Ordnance Survey grid squares. These grid squares cover the entirety of Great Britain, including England, Scotland, Wales, and some offshore islands.";
$lang['awards_wab_description_ln3'] = "Participants in the WAB Award program exchange information such as their location, signal strength, and WAB square reference during radio contacts. Points are awarded based on the location of the contacted station, with different point values assigned to contacts made within different WAB areas. By accumulating points from successful contacts, radio operators can progress through various award levels, each representing a significant milestone in their amateur radio journey. The WAB Award not only recognizes the dedication and skill of radio operators but also promotes geographic diversity and encourages exploration of the rich tapestry of locations across Britain through the medium of amateur radio.";
$lang['awards_waja_description_ln4'] = "For more information, please visit: <a href='https://wab.intermip.net/default.php' target='_blank'>https://wab.intermip.net/default.php</a>.";

Wyświetl plik

@ -193,3 +193,13 @@ $lang['awards_waja_description_ln1'] = "WAJA - Worked All Japan prefectures Awar
$lang['awards_waja_description_ln2'] = "WAJA, Worked All Japan prefectures in Amateur Radio, encourages licensed ham radio operators to work all the prefectures in Japan."; $lang['awards_waja_description_ln2'] = "WAJA, Worked All Japan prefectures in Amateur Radio, encourages licensed ham radio operators to work all the prefectures in Japan.";
$lang['awards_waja_description_ln3'] = "May be claimed for having contacted (heard) and received a QSL card from an amateur station located in each of the 47 prefectures of Japan. A list of QSL cards should be arranged in order of WAJA (HAJA) reference number, however names of prefectures may be omitted."; $lang['awards_waja_description_ln3'] = "May be claimed for having contacted (heard) and received a QSL card from an amateur station located in each of the 47 prefectures of Japan. A list of QSL cards should be arranged in order of WAJA (HAJA) reference number, however names of prefectures may be omitted.";
$lang['awards_waja_description_ln4'] = "For more information, please visit: <a href='https://www.jarl.org/English/4_Library/A-4-2_Awards/Award_Main.htm' target='_blank'>https://www.jarl.org/English/4_Library/A-4-2_Awards/Award_Main.htm</a>."; $lang['awards_waja_description_ln4'] = "For more information, please visit: <a href='https://www.jarl.org/English/4_Library/A-4-2_Awards/Award_Main.htm' target='_blank'>https://www.jarl.org/English/4_Library/A-4-2_Awards/Award_Main.htm</a>.";
/*
___________________________________________________________________________________________
WAB -- Use all 3 Lines of Text
___________________________________________________________________________________________
*/
$lang['awards_waja_description_ln1'] = "WAB - Worked All Britain Award";
$lang['awards_wab_description_ln2'] = "The Amateur Radio Worked All Britain (WAB) Award is a prestigious recognition program within the amateur radio community that celebrates communication achievements across the United Kingdom. The WAB Award scheme encourages radio operators to establish contact with stations located in different regions of Britain, fostering camaraderie and promoting radio communication skills. To earn the WAB Award, participants must make successful radio contacts with stations located in specific WAB areas, which are defined by Ordnance Survey grid squares. These grid squares cover the entirety of Great Britain, including England, Scotland, Wales, and some offshore islands.";
$lang['awards_wab_description_ln3'] = "Participants in the WAB Award program exchange information such as their location, signal strength, and WAB square reference during radio contacts. Points are awarded based on the location of the contacted station, with different point values assigned to contacts made within different WAB areas. By accumulating points from successful contacts, radio operators can progress through various award levels, each representing a significant milestone in their amateur radio journey. The WAB Award not only recognizes the dedication and skill of radio operators but also promotes geographic diversity and encourages exploration of the rich tapestry of locations across Britain through the medium of amateur radio.";
$lang['awards_waja_description_ln4'] = "For more information, please visit: <a href='https://wab.intermip.net/default.php' target='_blank'>https://wab.intermip.net/default.php</a>.";

Wyświetl plik

@ -193,3 +193,13 @@ $lang['awards_waja_description_ln1'] = "WAJA - Worked All Japan prefectures Awar
$lang['awards_waja_description_ln2'] = "WAJA, Worked All Japan prefectures in Amateur Radio, encourages licensed ham radio operators to work all the prefectures in Japan."; $lang['awards_waja_description_ln2'] = "WAJA, Worked All Japan prefectures in Amateur Radio, encourages licensed ham radio operators to work all the prefectures in Japan.";
$lang['awards_waja_description_ln3'] = "May be claimed for having contacted (heard) and received a QSL card from an amateur station located in each of the 47 prefectures of Japan. A list of QSL cards should be arranged in order of WAJA (HAJA) reference number, however names of prefectures may be omitted."; $lang['awards_waja_description_ln3'] = "May be claimed for having contacted (heard) and received a QSL card from an amateur station located in each of the 47 prefectures of Japan. A list of QSL cards should be arranged in order of WAJA (HAJA) reference number, however names of prefectures may be omitted.";
$lang['awards_waja_description_ln4'] = "For more information, please visit: <a href='https://www.jarl.org/English/4_Library/A-4-2_Awards/Award_Main.htm' target='_blank'>https://www.jarl.org/English/4_Library/A-4-2_Awards/Award_Main.htm</a>."; $lang['awards_waja_description_ln4'] = "For more information, please visit: <a href='https://www.jarl.org/English/4_Library/A-4-2_Awards/Award_Main.htm' target='_blank'>https://www.jarl.org/English/4_Library/A-4-2_Awards/Award_Main.htm</a>.";
/*
___________________________________________________________________________________________
WAB -- Use all 3 Lines of Text
___________________________________________________________________________________________
*/
$lang['awards_waja_description_ln1'] = "WAB - Worked All Britain Award";
$lang['awards_wab_description_ln2'] = "The Amateur Radio Worked All Britain (WAB) Award is a prestigious recognition program within the amateur radio community that celebrates communication achievements across the United Kingdom. The WAB Award scheme encourages radio operators to establish contact with stations located in different regions of Britain, fostering camaraderie and promoting radio communication skills. To earn the WAB Award, participants must make successful radio contacts with stations located in specific WAB areas, which are defined by Ordnance Survey grid squares. These grid squares cover the entirety of Great Britain, including England, Scotland, Wales, and some offshore islands.";
$lang['awards_wab_description_ln3'] = "Participants in the WAB Award program exchange information such as their location, signal strength, and WAB square reference during radio contacts. Points are awarded based on the location of the contacted station, with different point values assigned to contacts made within different WAB areas. By accumulating points from successful contacts, radio operators can progress through various award levels, each representing a significant milestone in their amateur radio journey. The WAB Award not only recognizes the dedication and skill of radio operators but also promotes geographic diversity and encourages exploration of the rich tapestry of locations across Britain through the medium of amateur radio.";
$lang['awards_waja_description_ln4'] = "For more information, please visit: <a href='https://wab.intermip.net/default.php' target='_blank'>https://wab.intermip.net/default.php</a>.";

Wyświetl plik

@ -193,3 +193,13 @@ $lang['awards_waja_description_ln1'] = "WAJA - Worked All Japan prefectures Awar
$lang['awards_waja_description_ln2'] = "WAJA, Worked All Japan prefectures in Amateur Radio, encourages licensed ham radio operators to work all the prefectures in Japan."; $lang['awards_waja_description_ln2'] = "WAJA, Worked All Japan prefectures in Amateur Radio, encourages licensed ham radio operators to work all the prefectures in Japan.";
$lang['awards_waja_description_ln3'] = "May be claimed for having contacted (heard) and received a QSL card from an amateur station located in each of the 47 prefectures of Japan. A list of QSL cards should be arranged in order of WAJA (HAJA) reference number, however names of prefectures may be omitted."; $lang['awards_waja_description_ln3'] = "May be claimed for having contacted (heard) and received a QSL card from an amateur station located in each of the 47 prefectures of Japan. A list of QSL cards should be arranged in order of WAJA (HAJA) reference number, however names of prefectures may be omitted.";
$lang['awards_waja_description_ln4'] = "For more information, please visit: <a href='https://www.jarl.org/English/4_Library/A-4-2_Awards/Award_Main.htm' target='_blank'>https://www.jarl.org/English/4_Library/A-4-2_Awards/Award_Main.htm</a>."; $lang['awards_waja_description_ln4'] = "For more information, please visit: <a href='https://www.jarl.org/English/4_Library/A-4-2_Awards/Award_Main.htm' target='_blank'>https://www.jarl.org/English/4_Library/A-4-2_Awards/Award_Main.htm</a>.";
/*
___________________________________________________________________________________________
WAB -- Use all 3 Lines of Text
___________________________________________________________________________________________
*/
$lang['awards_waja_description_ln1'] = "WAB - Worked All Britain Award";
$lang['awards_wab_description_ln2'] = "The Amateur Radio Worked All Britain (WAB) Award is a prestigious recognition program within the amateur radio community that celebrates communication achievements across the United Kingdom. The WAB Award scheme encourages radio operators to establish contact with stations located in different regions of Britain, fostering camaraderie and promoting radio communication skills. To earn the WAB Award, participants must make successful radio contacts with stations located in specific WAB areas, which are defined by Ordnance Survey grid squares. These grid squares cover the entirety of Great Britain, including England, Scotland, Wales, and some offshore islands.";
$lang['awards_wab_description_ln3'] = "Participants in the WAB Award program exchange information such as their location, signal strength, and WAB square reference during radio contacts. Points are awarded based on the location of the contacted station, with different point values assigned to contacts made within different WAB areas. By accumulating points from successful contacts, radio operators can progress through various award levels, each representing a significant milestone in their amateur radio journey. The WAB Award not only recognizes the dedication and skill of radio operators but also promotes geographic diversity and encourages exploration of the rich tapestry of locations across Britain through the medium of amateur radio.";
$lang['awards_waja_description_ln4'] = "For more information, please visit: <a href='https://wab.intermip.net/default.php' target='_blank'>https://wab.intermip.net/default.php</a>.";

Wyświetl plik

@ -193,3 +193,13 @@ $lang['awards_waja_description_ln1'] = "WAJA - Worked All Japan prefectures Awar
$lang['awards_waja_description_ln2'] = "WAJA, Worked All Japan prefectures in Amateur Radio, encourages licensed ham radio operators to work all the prefectures in Japan."; $lang['awards_waja_description_ln2'] = "WAJA, Worked All Japan prefectures in Amateur Radio, encourages licensed ham radio operators to work all the prefectures in Japan.";
$lang['awards_waja_description_ln3'] = "May be claimed for having contacted (heard) and received a QSL card from an amateur station located in each of the 47 prefectures of Japan. A list of QSL cards should be arranged in order of WAJA (HAJA) reference number, however names of prefectures may be omitted."; $lang['awards_waja_description_ln3'] = "May be claimed for having contacted (heard) and received a QSL card from an amateur station located in each of the 47 prefectures of Japan. A list of QSL cards should be arranged in order of WAJA (HAJA) reference number, however names of prefectures may be omitted.";
$lang['awards_waja_description_ln4'] = "For more information, please visit: <a href='https://www.jarl.org/English/4_Library/A-4-2_Awards/Award_Main.htm' target='_blank'>https://www.jarl.org/English/4_Library/A-4-2_Awards/Award_Main.htm</a>."; $lang['awards_waja_description_ln4'] = "For more information, please visit: <a href='https://www.jarl.org/English/4_Library/A-4-2_Awards/Award_Main.htm' target='_blank'>https://www.jarl.org/English/4_Library/A-4-2_Awards/Award_Main.htm</a>.";
/*
___________________________________________________________________________________________
WAB -- Use all 3 Lines of Text
___________________________________________________________________________________________
*/
$lang['awards_waja_description_ln1'] = "WAB - Worked All Britain Award";
$lang['awards_wab_description_ln2'] = "The Amateur Radio Worked All Britain (WAB) Award is a prestigious recognition program within the amateur radio community that celebrates communication achievements across the United Kingdom. The WAB Award scheme encourages radio operators to establish contact with stations located in different regions of Britain, fostering camaraderie and promoting radio communication skills. To earn the WAB Award, participants must make successful radio contacts with stations located in specific WAB areas, which are defined by Ordnance Survey grid squares. These grid squares cover the entirety of Great Britain, including England, Scotland, Wales, and some offshore islands.";
$lang['awards_wab_description_ln3'] = "Participants in the WAB Award program exchange information such as their location, signal strength, and WAB square reference during radio contacts. Points are awarded based on the location of the contacted station, with different point values assigned to contacts made within different WAB areas. By accumulating points from successful contacts, radio operators can progress through various award levels, each representing a significant milestone in their amateur radio journey. The WAB Award not only recognizes the dedication and skill of radio operators but also promotes geographic diversity and encourages exploration of the rich tapestry of locations across Britain through the medium of amateur radio.";
$lang['awards_waja_description_ln4'] = "For more information, please visit: <a href='https://wab.intermip.net/default.php' target='_blank'>https://wab.intermip.net/default.php</a>.";

Wyświetl plik

@ -193,3 +193,13 @@ $lang['awards_waja_description_ln1'] = "WAJA - Worked All Japan prefectures Awar
$lang['awards_waja_description_ln2'] = "WAJA, Worked All Japan prefectures in Amateur Radio, encourages licensed ham radio operators to work all the prefectures in Japan."; $lang['awards_waja_description_ln2'] = "WAJA, Worked All Japan prefectures in Amateur Radio, encourages licensed ham radio operators to work all the prefectures in Japan.";
$lang['awards_waja_description_ln3'] = "May be claimed for having contacted (heard) and received a QSL card from an amateur station located in each of the 47 prefectures of Japan. A list of QSL cards should be arranged in order of WAJA (HAJA) reference number, however names of prefectures may be omitted."; $lang['awards_waja_description_ln3'] = "May be claimed for having contacted (heard) and received a QSL card from an amateur station located in each of the 47 prefectures of Japan. A list of QSL cards should be arranged in order of WAJA (HAJA) reference number, however names of prefectures may be omitted.";
$lang['awards_waja_description_ln4'] = "For more information, please visit: <a href='https://www.jarl.org/English/4_Library/A-4-2_Awards/Award_Main.htm' target='_blank'>https://www.jarl.org/English/4_Library/A-4-2_Awards/Award_Main.htm</a>."; $lang['awards_waja_description_ln4'] = "For more information, please visit: <a href='https://www.jarl.org/English/4_Library/A-4-2_Awards/Award_Main.htm' target='_blank'>https://www.jarl.org/English/4_Library/A-4-2_Awards/Award_Main.htm</a>.";
/*
___________________________________________________________________________________________
WAB -- Use all 3 Lines of Text
___________________________________________________________________________________________
*/
$lang['awards_waja_description_ln1'] = "WAB - Worked All Britain Award";
$lang['awards_wab_description_ln2'] = "The Amateur Radio Worked All Britain (WAB) Award is a prestigious recognition program within the amateur radio community that celebrates communication achievements across the United Kingdom. The WAB Award scheme encourages radio operators to establish contact with stations located in different regions of Britain, fostering camaraderie and promoting radio communication skills. To earn the WAB Award, participants must make successful radio contacts with stations located in specific WAB areas, which are defined by Ordnance Survey grid squares. These grid squares cover the entirety of Great Britain, including England, Scotland, Wales, and some offshore islands.";
$lang['awards_wab_description_ln3'] = "Participants in the WAB Award program exchange information such as their location, signal strength, and WAB square reference during radio contacts. Points are awarded based on the location of the contacted station, with different point values assigned to contacts made within different WAB areas. By accumulating points from successful contacts, radio operators can progress through various award levels, each representing a significant milestone in their amateur radio journey. The WAB Award not only recognizes the dedication and skill of radio operators but also promotes geographic diversity and encourages exploration of the rich tapestry of locations across Britain through the medium of amateur radio.";
$lang['awards_waja_description_ln4'] = "For more information, please visit: <a href='https://wab.intermip.net/default.php' target='_blank'>https://wab.intermip.net/default.php</a>.";

Wyświetl plik

@ -193,3 +193,13 @@ $lang['awards_waja_description_ln1'] = "WAJA - Worked All Japan prefectures Awar
$lang['awards_waja_description_ln2'] = "WAJA, Worked All Japan prefectures in Amateur Radio, encourages licensed ham radio operators to work all the prefectures in Japan."; $lang['awards_waja_description_ln2'] = "WAJA, Worked All Japan prefectures in Amateur Radio, encourages licensed ham radio operators to work all the prefectures in Japan.";
$lang['awards_waja_description_ln3'] = "May be claimed for having contacted (heard) and received a QSL card from an amateur station located in each of the 47 prefectures of Japan. A list of QSL cards should be arranged in order of WAJA (HAJA) reference number, however names of prefectures may be omitted."; $lang['awards_waja_description_ln3'] = "May be claimed for having contacted (heard) and received a QSL card from an amateur station located in each of the 47 prefectures of Japan. A list of QSL cards should be arranged in order of WAJA (HAJA) reference number, however names of prefectures may be omitted.";
$lang['awards_waja_description_ln4'] = "For more information, please visit: <a href='https://www.jarl.org/English/4_Library/A-4-2_Awards/Award_Main.htm' target='_blank'>https://www.jarl.org/English/4_Library/A-4-2_Awards/Award_Main.htm</a>."; $lang['awards_waja_description_ln4'] = "For more information, please visit: <a href='https://www.jarl.org/English/4_Library/A-4-2_Awards/Award_Main.htm' target='_blank'>https://www.jarl.org/English/4_Library/A-4-2_Awards/Award_Main.htm</a>.";
/*
___________________________________________________________________________________________
WAB -- Use all 3 Lines of Text
___________________________________________________________________________________________
*/
$lang['awards_waja_description_ln1'] = "WAB - Worked All Britain Award";
$lang['awards_wab_description_ln2'] = "The Amateur Radio Worked All Britain (WAB) Award is a prestigious recognition program within the amateur radio community that celebrates communication achievements across the United Kingdom. The WAB Award scheme encourages radio operators to establish contact with stations located in different regions of Britain, fostering camaraderie and promoting radio communication skills. To earn the WAB Award, participants must make successful radio contacts with stations located in specific WAB areas, which are defined by Ordnance Survey grid squares. These grid squares cover the entirety of Great Britain, including England, Scotland, Wales, and some offshore islands.";
$lang['awards_wab_description_ln3'] = "Participants in the WAB Award program exchange information such as their location, signal strength, and WAB square reference during radio contacts. Points are awarded based on the location of the contacted station, with different point values assigned to contacts made within different WAB areas. By accumulating points from successful contacts, radio operators can progress through various award levels, each representing a significant milestone in their amateur radio journey. The WAB Award not only recognizes the dedication and skill of radio operators but also promotes geographic diversity and encourages exploration of the rich tapestry of locations across Britain through the medium of amateur radio.";
$lang['awards_waja_description_ln4'] = "For more information, please visit: <a href='https://wab.intermip.net/default.php' target='_blank'>https://wab.intermip.net/default.php</a>.";

Wyświetl plik

@ -193,3 +193,13 @@ $lang['awards_waja_description_ln1'] = "WAJA - Worked All Japan prefectures Awar
$lang['awards_waja_description_ln2'] = "WAJA, Worked All Japan prefectures in Amateur Radio, encourages licensed ham radio operators to work all the prefectures in Japan."; $lang['awards_waja_description_ln2'] = "WAJA, Worked All Japan prefectures in Amateur Radio, encourages licensed ham radio operators to work all the prefectures in Japan.";
$lang['awards_waja_description_ln3'] = "May be claimed for having contacted (heard) and received a QSL card from an amateur station located in each of the 47 prefectures of Japan. A list of QSL cards should be arranged in order of WAJA (HAJA) reference number, however names of prefectures may be omitted."; $lang['awards_waja_description_ln3'] = "May be claimed for having contacted (heard) and received a QSL card from an amateur station located in each of the 47 prefectures of Japan. A list of QSL cards should be arranged in order of WAJA (HAJA) reference number, however names of prefectures may be omitted.";
$lang['awards_waja_description_ln4'] = "For more information, please visit: <a href='https://www.jarl.org/English/4_Library/A-4-2_Awards/Award_Main.htm' target='_blank'>https://www.jarl.org/English/4_Library/A-4-2_Awards/Award_Main.htm</a>."; $lang['awards_waja_description_ln4'] = "For more information, please visit: <a href='https://www.jarl.org/English/4_Library/A-4-2_Awards/Award_Main.htm' target='_blank'>https://www.jarl.org/English/4_Library/A-4-2_Awards/Award_Main.htm</a>.";
/*
___________________________________________________________________________________________
WAB -- Use all 3 Lines of Text
___________________________________________________________________________________________
*/
$lang['awards_waja_description_ln1'] = "WAB - Worked All Britain Award";
$lang['awards_wab_description_ln2'] = "The Amateur Radio Worked All Britain (WAB) Award is a prestigious recognition program within the amateur radio community that celebrates communication achievements across the United Kingdom. The WAB Award scheme encourages radio operators to establish contact with stations located in different regions of Britain, fostering camaraderie and promoting radio communication skills. To earn the WAB Award, participants must make successful radio contacts with stations located in specific WAB areas, which are defined by Ordnance Survey grid squares. These grid squares cover the entirety of Great Britain, including England, Scotland, Wales, and some offshore islands.";
$lang['awards_wab_description_ln3'] = "Participants in the WAB Award program exchange information such as their location, signal strength, and WAB square reference during radio contacts. Points are awarded based on the location of the contacted station, with different point values assigned to contacts made within different WAB areas. By accumulating points from successful contacts, radio operators can progress through various award levels, each representing a significant milestone in their amateur radio journey. The WAB Award not only recognizes the dedication and skill of radio operators but also promotes geographic diversity and encourages exploration of the rich tapestry of locations across Britain through the medium of amateur radio.";
$lang['awards_waja_description_ln4'] = "For more information, please visit: <a href='https://wab.intermip.net/default.php' target='_blank'>https://wab.intermip.net/default.php</a>.";

Wyświetl plik

@ -193,3 +193,13 @@ $lang['awards_waja_description_ln1'] = "WAJA - Worked All Japan prefectures Awar
$lang['awards_waja_description_ln2'] = "WAJA, Worked All Japan prefectures in Amateur Radio, encourages licensed ham radio operators to work all the prefectures in Japan."; $lang['awards_waja_description_ln2'] = "WAJA, Worked All Japan prefectures in Amateur Radio, encourages licensed ham radio operators to work all the prefectures in Japan.";
$lang['awards_waja_description_ln3'] = "May be claimed for having contacted (heard) and received a QSL card from an amateur station located in each of the 47 prefectures of Japan. A list of QSL cards should be arranged in order of WAJA (HAJA) reference number, however names of prefectures may be omitted."; $lang['awards_waja_description_ln3'] = "May be claimed for having contacted (heard) and received a QSL card from an amateur station located in each of the 47 prefectures of Japan. A list of QSL cards should be arranged in order of WAJA (HAJA) reference number, however names of prefectures may be omitted.";
$lang['awards_waja_description_ln4'] = "For more information, please visit: <a href='https://www.jarl.org/English/4_Library/A-4-2_Awards/Award_Main.htm' target='_blank'>https://www.jarl.org/English/4_Library/A-4-2_Awards/Award_Main.htm</a>."; $lang['awards_waja_description_ln4'] = "For more information, please visit: <a href='https://www.jarl.org/English/4_Library/A-4-2_Awards/Award_Main.htm' target='_blank'>https://www.jarl.org/English/4_Library/A-4-2_Awards/Award_Main.htm</a>.";
/*
___________________________________________________________________________________________
WAB -- Use all 3 Lines of Text
___________________________________________________________________________________________
*/
$lang['awards_waja_description_ln1'] = "WAB - Worked All Britain Award";
$lang['awards_wab_description_ln2'] = "The Amateur Radio Worked All Britain (WAB) Award is a prestigious recognition program within the amateur radio community that celebrates communication achievements across the United Kingdom. The WAB Award scheme encourages radio operators to establish contact with stations located in different regions of Britain, fostering camaraderie and promoting radio communication skills. To earn the WAB Award, participants must make successful radio contacts with stations located in specific WAB areas, which are defined by Ordnance Survey grid squares. These grid squares cover the entirety of Great Britain, including England, Scotland, Wales, and some offshore islands.";
$lang['awards_wab_description_ln3'] = "Participants in the WAB Award program exchange information such as their location, signal strength, and WAB square reference during radio contacts. Points are awarded based on the location of the contacted station, with different point values assigned to contacts made within different WAB areas. By accumulating points from successful contacts, radio operators can progress through various award levels, each representing a significant milestone in their amateur radio journey. The WAB Award not only recognizes the dedication and skill of radio operators but also promotes geographic diversity and encourages exploration of the rich tapestry of locations across Britain through the medium of amateur radio.";
$lang['awards_waja_description_ln4'] = "For more information, please visit: <a href='https://wab.intermip.net/default.php' target='_blank'>https://wab.intermip.net/default.php</a>.";

Wyświetl plik

@ -193,3 +193,13 @@ $lang['awards_waja_description_ln1'] = "WAJA - Worked All Japan prefectures Awar
$lang['awards_waja_description_ln2'] = "WAJA, Worked All Japan prefectures in Amateur Radio, encourages licensed ham radio operators to work all the prefectures in Japan."; $lang['awards_waja_description_ln2'] = "WAJA, Worked All Japan prefectures in Amateur Radio, encourages licensed ham radio operators to work all the prefectures in Japan.";
$lang['awards_waja_description_ln3'] = "May be claimed for having contacted (heard) and received a QSL card from an amateur station located in each of the 47 prefectures of Japan. A list of QSL cards should be arranged in order of WAJA (HAJA) reference number, however names of prefectures may be omitted."; $lang['awards_waja_description_ln3'] = "May be claimed for having contacted (heard) and received a QSL card from an amateur station located in each of the 47 prefectures of Japan. A list of QSL cards should be arranged in order of WAJA (HAJA) reference number, however names of prefectures may be omitted.";
$lang['awards_waja_description_ln4'] = "For more information, please visit: <a href='https://www.jarl.org/English/4_Library/A-4-2_Awards/Award_Main.htm' target='_blank'>https://www.jarl.org/English/4_Library/A-4-2_Awards/Award_Main.htm</a>."; $lang['awards_waja_description_ln4'] = "For more information, please visit: <a href='https://www.jarl.org/English/4_Library/A-4-2_Awards/Award_Main.htm' target='_blank'>https://www.jarl.org/English/4_Library/A-4-2_Awards/Award_Main.htm</a>.";
/*
___________________________________________________________________________________________
WAB -- Use all 3 Lines of Text
___________________________________________________________________________________________
*/
$lang['awards_waja_description_ln1'] = "WAB - Worked All Britain Award";
$lang['awards_wab_description_ln2'] = "The Amateur Radio Worked All Britain (WAB) Award is a prestigious recognition program within the amateur radio community that celebrates communication achievements across the United Kingdom. The WAB Award scheme encourages radio operators to establish contact with stations located in different regions of Britain, fostering camaraderie and promoting radio communication skills. To earn the WAB Award, participants must make successful radio contacts with stations located in specific WAB areas, which are defined by Ordnance Survey grid squares. These grid squares cover the entirety of Great Britain, including England, Scotland, Wales, and some offshore islands.";
$lang['awards_wab_description_ln3'] = "Participants in the WAB Award program exchange information such as their location, signal strength, and WAB square reference during radio contacts. Points are awarded based on the location of the contacted station, with different point values assigned to contacts made within different WAB areas. By accumulating points from successful contacts, radio operators can progress through various award levels, each representing a significant milestone in their amateur radio journey. The WAB Award not only recognizes the dedication and skill of radio operators but also promotes geographic diversity and encourages exploration of the rich tapestry of locations across Britain through the medium of amateur radio.";
$lang['awards_waja_description_ln4'] = "For more information, please visit: <a href='https://wab.intermip.net/default.php' target='_blank'>https://wab.intermip.net/default.php</a>.";

Wyświetl plik

@ -193,3 +193,13 @@ $lang['awards_waja_description_ln1'] = "WAJA - Diploma Worked All Japan prefectu
$lang['awards_waja_description_ln2'] = "WAJA, Worked All Japan prefectures (Trabajadas todas las prefecturas de Japón) en la radioafición, fomenta que los operadores de radioafición licenciados trabajen todas las prefecturas de Japón."; $lang['awards_waja_description_ln2'] = "WAJA, Worked All Japan prefectures (Trabajadas todas las prefecturas de Japón) en la radioafición, fomenta que los operadores de radioafición licenciados trabajen todas las prefecturas de Japón.";
$lang['awards_waja_description_ln3'] = "Puede ser otorgado por haber contactado (escuchado) y recibido una tarjeta QSL de una estación de radioaficionado localizada en cada una de las 47 prefecturas de Japón. La lista de tarjetas QSL debe ser ordenada por su número de referencia WAJA (HAJA), sin embargo los nombres de las prefecturas pueden ser omitidos."; $lang['awards_waja_description_ln3'] = "Puede ser otorgado por haber contactado (escuchado) y recibido una tarjeta QSL de una estación de radioaficionado localizada en cada una de las 47 prefecturas de Japón. La lista de tarjetas QSL debe ser ordenada por su número de referencia WAJA (HAJA), sin embargo los nombres de las prefecturas pueden ser omitidos.";
$lang['awards_waja_description_ln4'] = "Para más información, por favor visite: <a href='https://www.jarl.org/English/4_Library/A-4-2_Awards/Award_Main.htm' target='_blank'>https://www.jarl.org/English/4_Library/A-4-2_Awards/Award_Main.htm</a> (en inglés)."; $lang['awards_waja_description_ln4'] = "Para más información, por favor visite: <a href='https://www.jarl.org/English/4_Library/A-4-2_Awards/Award_Main.htm' target='_blank'>https://www.jarl.org/English/4_Library/A-4-2_Awards/Award_Main.htm</a> (en inglés).";
/*
___________________________________________________________________________________________
WAB -- Use all 3 Lines of Text
___________________________________________________________________________________________
*/
$lang['awards_waja_description_ln1'] = "WAB - Worked All Britain Award";
$lang['awards_wab_description_ln2'] = "The Amateur Radio Worked All Britain (WAB) Award is a prestigious recognition program within the amateur radio community that celebrates communication achievements across the United Kingdom. The WAB Award scheme encourages radio operators to establish contact with stations located in different regions of Britain, fostering camaraderie and promoting radio communication skills. To earn the WAB Award, participants must make successful radio contacts with stations located in specific WAB areas, which are defined by Ordnance Survey grid squares. These grid squares cover the entirety of Great Britain, including England, Scotland, Wales, and some offshore islands.";
$lang['awards_wab_description_ln3'] = "Participants in the WAB Award program exchange information such as their location, signal strength, and WAB square reference during radio contacts. Points are awarded based on the location of the contacted station, with different point values assigned to contacts made within different WAB areas. By accumulating points from successful contacts, radio operators can progress through various award levels, each representing a significant milestone in their amateur radio journey. The WAB Award not only recognizes the dedication and skill of radio operators but also promotes geographic diversity and encourages exploration of the rich tapestry of locations across Britain through the medium of amateur radio.";
$lang['awards_waja_description_ln4'] = "For more information, please visit: <a href='https://wab.intermip.net/default.php' target='_blank'>https://wab.intermip.net/default.php</a>.";

Wyświetl plik

@ -193,3 +193,13 @@ $lang['awards_waja_description_ln1'] = "WAJA - Worked All Japan prefectures Awar
$lang['awards_waja_description_ln2'] = "WAJA, Worked All Japan prefectures in Amateur Radio, encourages licensed ham radio operators to work all the prefectures in Japan."; $lang['awards_waja_description_ln2'] = "WAJA, Worked All Japan prefectures in Amateur Radio, encourages licensed ham radio operators to work all the prefectures in Japan.";
$lang['awards_waja_description_ln3'] = "May be claimed for having contacted (heard) and received a QSL card from an amateur station located in each of the 47 prefectures of Japan. A list of QSL cards should be arranged in order of WAJA (HAJA) reference number, however names of prefectures may be omitted."; $lang['awards_waja_description_ln3'] = "May be claimed for having contacted (heard) and received a QSL card from an amateur station located in each of the 47 prefectures of Japan. A list of QSL cards should be arranged in order of WAJA (HAJA) reference number, however names of prefectures may be omitted.";
$lang['awards_waja_description_ln4'] = "For more information, please visit: <a href='https://www.jarl.org/English/4_Library/A-4-2_Awards/Award_Main.htm' target='_blank'>https://www.jarl.org/English/4_Library/A-4-2_Awards/Award_Main.htm</a>."; $lang['awards_waja_description_ln4'] = "For more information, please visit: <a href='https://www.jarl.org/English/4_Library/A-4-2_Awards/Award_Main.htm' target='_blank'>https://www.jarl.org/English/4_Library/A-4-2_Awards/Award_Main.htm</a>.";
/*
___________________________________________________________________________________________
WAB -- Use all 3 Lines of Text
___________________________________________________________________________________________
*/
$lang['awards_waja_description_ln1'] = "WAB - Worked All Britain Award";
$lang['awards_wab_description_ln2'] = "The Amateur Radio Worked All Britain (WAB) Award is a prestigious recognition program within the amateur radio community that celebrates communication achievements across the United Kingdom. The WAB Award scheme encourages radio operators to establish contact with stations located in different regions of Britain, fostering camaraderie and promoting radio communication skills. To earn the WAB Award, participants must make successful radio contacts with stations located in specific WAB areas, which are defined by Ordnance Survey grid squares. These grid squares cover the entirety of Great Britain, including England, Scotland, Wales, and some offshore islands.";
$lang['awards_wab_description_ln3'] = "Participants in the WAB Award program exchange information such as their location, signal strength, and WAB square reference during radio contacts. Points are awarded based on the location of the contacted station, with different point values assigned to contacts made within different WAB areas. By accumulating points from successful contacts, radio operators can progress through various award levels, each representing a significant milestone in their amateur radio journey. The WAB Award not only recognizes the dedication and skill of radio operators but also promotes geographic diversity and encourages exploration of the rich tapestry of locations across Britain through the medium of amateur radio.";
$lang['awards_waja_description_ln4'] = "For more information, please visit: <a href='https://wab.intermip.net/default.php' target='_blank'>https://wab.intermip.net/default.php</a>.";

Wyświetl plik

@ -193,3 +193,13 @@ $lang['awards_waja_description_ln1'] = "WAJA - Worked All Japan prefectures Awar
$lang['awards_waja_description_ln2'] = "WAJA, Worked All Japan prefectures in Amateur Radio, encourages licensed ham radio operators to work all the prefectures in Japan."; $lang['awards_waja_description_ln2'] = "WAJA, Worked All Japan prefectures in Amateur Radio, encourages licensed ham radio operators to work all the prefectures in Japan.";
$lang['awards_waja_description_ln3'] = "May be claimed for having contacted (heard) and received a QSL card from an amateur station located in each of the 47 prefectures of Japan. A list of QSL cards should be arranged in order of WAJA (HAJA) reference number, however names of prefectures may be omitted."; $lang['awards_waja_description_ln3'] = "May be claimed for having contacted (heard) and received a QSL card from an amateur station located in each of the 47 prefectures of Japan. A list of QSL cards should be arranged in order of WAJA (HAJA) reference number, however names of prefectures may be omitted.";
$lang['awards_waja_description_ln4'] = "For more information, please visit: <a href='https://www.jarl.org/English/4_Library/A-4-2_Awards/Award_Main.htm' target='_blank'>https://www.jarl.org/English/4_Library/A-4-2_Awards/Award_Main.htm</a>."; $lang['awards_waja_description_ln4'] = "For more information, please visit: <a href='https://www.jarl.org/English/4_Library/A-4-2_Awards/Award_Main.htm' target='_blank'>https://www.jarl.org/English/4_Library/A-4-2_Awards/Award_Main.htm</a>.";
/*
___________________________________________________________________________________________
WAB -- Use all 3 Lines of Text
___________________________________________________________________________________________
*/
$lang['awards_waja_description_ln1'] = "WAB - Worked All Britain Award";
$lang['awards_wab_description_ln2'] = "The Amateur Radio Worked All Britain (WAB) Award is a prestigious recognition program within the amateur radio community that celebrates communication achievements across the United Kingdom. The WAB Award scheme encourages radio operators to establish contact with stations located in different regions of Britain, fostering camaraderie and promoting radio communication skills. To earn the WAB Award, participants must make successful radio contacts with stations located in specific WAB areas, which are defined by Ordnance Survey grid squares. These grid squares cover the entirety of Great Britain, including England, Scotland, Wales, and some offshore islands.";
$lang['awards_wab_description_ln3'] = "Participants in the WAB Award program exchange information such as their location, signal strength, and WAB square reference during radio contacts. Points are awarded based on the location of the contacted station, with different point values assigned to contacts made within different WAB areas. By accumulating points from successful contacts, radio operators can progress through various award levels, each representing a significant milestone in their amateur radio journey. The WAB Award not only recognizes the dedication and skill of radio operators but also promotes geographic diversity and encourages exploration of the rich tapestry of locations across Britain through the medium of amateur radio.";
$lang['awards_waja_description_ln4'] = "For more information, please visit: <a href='https://wab.intermip.net/default.php' target='_blank'>https://wab.intermip.net/default.php</a>.";

Wyświetl plik

@ -4702,6 +4702,21 @@ class Logbook_model extends CI_Model
return $this->db->get($this->config->item('table_name')); return $this->db->get($this->config->item('table_name'));
} }
function wab_qso_details($wab)
{
$CI = &get_instance();
$CI->load->model('logbooks_model');
$logbooks_locations_array = $CI->logbooks_model->list_logbook_relationships($this->session->userdata('active_station_logbook'));
$this->db->join('station_profile', 'station_profile.station_id = ' . $this->config->item('table_name') . '.station_id');
$this->db->join('lotw_users', 'lotw_users.callsign = ' . $this->config->item('table_name') . '.col_call', 'left outer');
$this->db->where_in($this->config->item('table_name') . '.station_id', $logbooks_locations_array);
$this->db->where('COL_SIG', "WAB");
$this->db->where('COL_SIG_INFO', $wab);
return $this->db->get($this->config->item('table_name'));
}
public function check_qso_is_accessible($id) public function check_qso_is_accessible($id)
{ {
// check if qso belongs to user // check if qso belongs to user

Wyświetl plik

@ -0,0 +1,55 @@
<?php
class Worked_all_britain_model extends CI_Model
{
function get_worked_squares () {
$CI =& get_instance();
$CI->load->model('logbooks_model');
$logbooks_locations_array = $CI->logbooks_model->list_logbook_relationships($this->session->userdata('active_station_logbook'));
if (!$logbooks_locations_array) {
return null;
}
$this->db->select("COL_SIG_INFO");
$this->db->where_in("station_id", $logbooks_locations_array);
$this->db->where("COL_SIG", 'WAB');
// return result as an array
$query = $this->db->get($this->config->item('table_name'));
$worked_squares[] = null;
// run through the query results
foreach ($query->result() as $row) {
$worked_squares[] = "Small Square ".$row->COL_SIG_INFO." Boundry Box";
}
// return the rows as an array
return $worked_squares;
}
function get_confirmed_squares () {
$CI =& get_instance();
$CI->load->model('logbooks_model');
$logbooks_locations_array = $CI->logbooks_model->list_logbook_relationships($this->session->userdata('active_station_logbook'));
if (!$logbooks_locations_array) {
return null;
}
$this->db->select("COL_SIG_INFO");
$this->db->where_in("station_id", $logbooks_locations_array);
$this->db->where("COL_SIG", 'WAB');
// check if col_qsl_rcvd or col_eqsl_qsl_rcvd or COL_LOTW_QSL_RCVD is 'Y'
$this->db->where("(col_qsl_rcvd='Y' or col_eqsl_qsl_rcvd='Y' or COL_LOTW_QSL_RCVD='Y')");
// return result as an array
$query = $this->db->get($this->config->item('table_name'));
$worked_squares[] = null;
// run through the query results
foreach ($query->result() as $row) {
$worked_squares[] = "Small Square ".$row->COL_SIG_INFO." Boundry Box";
}
// return the rows as an array
return $worked_squares;
}
}

Wyświetl plik

@ -0,0 +1,3 @@
<h5><?php echo lang('general_word_filtering_on'); ?> <?php echo $filter; ?></h5>
<?php $this->load->view('view_log/partial/log_ajax'); ?>

Wyświetl plik

@ -4,95 +4,16 @@
<div id="awardInfoButton"> <div id="awardInfoButton">
<script> <script>
var lang_awards_info_button = "<?php echo lang('awards_info_button'); ?>"; var lang_awards_info_button = "<?php echo lang('awards_info_button'); ?>";
var lang_award_info_ln1 = "<?php echo lang('awards_vucc_description_ln1'); ?>"; var lang_award_info_ln1 = "<?php echo lang('awards_wab_description_ln1'); ?>";
var lang_award_info_ln2 = "<?php echo lang('awards_vucc_description_ln2'); ?>"; var lang_award_info_ln2 = "<?php echo lang('awards_wab_description_ln2'); ?>";
var lang_award_info_ln3 = "<?php echo lang('awards_vucc_description_ln3'); ?>"; var lang_award_info_ln3 = "<?php echo lang('awards_wab_description_ln3'); ?>";
var lang_award_info_ln4 = "<?php echo lang('awards_vucc_description_ln4'); ?>"; var lang_award_info_ln4 = "<?php echo lang('awards_wab_description_ln4'); ?>";
</script> </script>
<h2><?php echo $page_title; ?></h2> <h2><?php echo $page_title; ?></h2>
<button type="button" class="btn btn-sm btn-primary me-1" id="displayAwardInfo"><?php echo lang('awards_info_button'); ?></button> <button type="button" class="btn btn-sm btn-primary me-1" id="displayAwardInfo"><?php echo lang('awards_info_button'); ?></button>
</div> </div>
<link rel="stylesheet" href="https://unpkg.com/leaflet@1.9.4/dist/leaflet.css" integrity="sha256-p4NxAoJBhIIN+hmNHrzRCf9tD/miZyoHS5obTRR9BMY=" crossorigin="" />
<script src="https://unpkg.com/leaflet@1.9.4/dist/leaflet.js" integrity="sha256-20nQCchB9co0qIjJZRGuk2/Z9VM+kNiyxNV1lvTlZBo=" crossorigin=""></script>
<script src='//api.tiles.mapbox.com/mapbox.js/plugins/leaflet-omnivore/v0.3.1/leaflet-omnivore.min.js'></script>
<script src="https://ajax.googleapis.com/ajax/libs/jquery/3.5.1/jquery.min.js"></script>
<div id="map" style="width: 100%; height: 100vh;"></div> <div id="map" style="width: 100%; height: 100vh;"></div>
<script>
var wab_squares = $.ajax({
url: "http://cloudlog.mg/assets/json/WABSquares.geojson",
dataType: "json",
success: console.log("WAB data successfully loaded."),
error: function(xhr) {
alert(xhr.statusText)
}
})
$.when(wab_squares).done(function() {
var map = L.map('map').setView([51.5074, -0.1278], 7);
L.tileLayer('https://{s}.tile.openstreetmap.org/{z}/{x}/{y}.png', {
attribution: '&copy; <a href="https://www.openstreetmap.org/copyright">OpenStreetMap</a> contributors'
}).addTo(map);
console.log(wab_squares.responseJSON);
// Add requested external GeoJSON to map
var kywab_squares = L.geoJSON(wab_squares.responseJSON, {
style: function(feature) {
if (feature.properties.name === 'Small Square SP50 Boundry Box') {
return {
fillColor: '#5cb85c',
fill: true,
fillOpacity: 1,
};
} else {
return {};
}
},
pointToLayer: function(feature, latlng) {
if (feature.properties && feature.properties.name) {
// Create a custom icon that displays the name from the GeoJSON data
var labelIcon = L.divIcon({
className: 'text-labels', // Set class for CSS styling
html: feature.properties.name
});
// Create a marker at the location of the point
return L.marker(latlng, {
icon: labelIcon
});
}
},
onEachFeature: function(feature, layer) {
layer.on('click', function() {
// Code to execute when the area is clicked
alert('Area clicked: ' + feature.properties.name);
});
}
}).addTo(map);
// Function to update labels based on zoom level
function updateLabels() {
var currentZoom = map.getZoom();
kywab_squares.eachLayer(function(layer) {
if (currentZoom >= 8) {
// Show labels if zoom level is 10 or higher
layer.getElement().style.display = 'block';
} else {
// Hide labels if zoom level is less than 10
layer.getElement().style.display = 'none';
}
});
}
// Update labels when the map zoom changes
map.on('zoomend', updateLabels);
// Update labels immediately after adding the GeoJSON data to the map
updateLabels();
});
</script>
</div> </div>

Wyświetl plik

@ -1583,6 +1583,145 @@ if ($this->session->userdata('user_id') != null) {
<?php } ?> <?php } ?>
<?php if ($this->uri->segment(1) == "awards" && $this->uri->segment(2) == "wab") { ?>
<script>
var WorkedSquaresObject = <?php echo json_encode($worked_squares); ?>;
var WorkedSquaresArray = Object.values(WorkedSquaresObject);
var ConfirmedSquaresObject = <?php echo json_encode($confirmed_squares); ?>;
var ConfirmedSquaresArray = Object.values(ConfirmedSquaresObject);
var wab_squares = $.ajax({
url: "<?php echo base_url(); ?>assets/json/WABSquares.geojson",
dataType: "json",
success: console.log("WAB data successfully loaded."),
error: function(xhr) {
alert(xhr.statusText)
}
})
// Load the external GeoJSON file
$.when(wab_squares).done(function() {
var layer = L.tileLayer('<?php echo $this->optionslib->get_option('option_map_tile_server'); ?>', {
maxZoom: 18,
attribution: '<?php echo $this->optionslib->get_option('option_map_tile_server_copyright'); ?>',
id: 'mapbox.streets'
});
var map = L.map('map', {
layers: [layer],
center: [54.970901, -2.457140],
zoom: 8,
minZoom: 8,
fullscreenControl: true,
fullscreenControlOptions: {
position: 'topleft'
},
});
var printer = L.easyPrint({
tileLayer: layer,
sizeModes: ['Current'],
filename: 'myMap',
exportOnly: true,
hideControlContainer: true
}).addTo(map);
//console.log(wab_squares.responseJSON);
// Add requested external GeoJSON to map
var kywab_squares = L.geoJSON(wab_squares.responseJSON, {
style: function(feature) {
if (WorkedSquaresArray.indexOf(feature.properties.name) !== -1) {
if (ConfirmedSquaresArray.indexOf(feature.properties.name) !== -1) {
return {
fillColor: 'red',
fill: true,
fillOpacity: 1,
};
} else {
return {
fillColor: '#5cb85c',
fill: true,
fillOpacity: 1,
};
}
} else {
return {};
}
},
pointToLayer: function(feature, latlng) {
if (feature.properties && feature.properties.name) {
// Create a custom icon that displays the name from the GeoJSON data
var labelIcon = L.divIcon({
className: 'text-labels', // Set class for CSS styling
html: feature.properties.name
});
// Create a marker at the location of the point
return L.marker(latlng, {
icon: labelIcon
});
}
},
onEachFeature: function(feature, layer) {
layer.on('click', function() {
// Code to execute when the area is clicked
displaywabcontacts(feature.properties.name);
});
}
}).addTo(map);
// Function to update labels based on zoom level
function updateLabels() {
var currentZoom = map.getZoom();
kywab_squares.eachLayer(function(layer) {
if (currentZoom >= 8) {
// Show labels if zoom level is 10 or higher
layer.getElement().style.display = 'block';
} else {
// Hide labels if zoom level is less than 10
layer.getElement().style.display = 'none';
}
});
}
// Update labels when the map zoom changes
map.on('zoomend', updateLabels);
// Update labels immediately after adding the GeoJSON data to the map
updateLabels();
});
function displaywabcontacts(wabsquare) {
var baseURL = "<?php echo base_url(); ?>";
$.ajax({
url: baseURL + 'index.php/awards/wab_details_ajax',
type: 'post',
data: {
'Wab': wabsquare,
},
success: function(html) {
BootstrapDialog.show({
title: lang_general_word_qso_data,
size: BootstrapDialog.SIZE_WIDE,
cssClass: 'qso-counties-dialog',
nl2br: false,
message: html,
onshown: function(dialog) {
$('[data-bs-toggle="tooltip"]').tooltip();
},
buttons: [{
label: lang_admin_close,
action: function(dialogItself) {
dialogItself.close();
}
}]
});
}
});
}
</script>
<?php } ?>
<?php if ($this->uri->segment(1) == "gridsquares" && !empty($this->uri->segment(2))) { ?> <?php if ($this->uri->segment(1) == "gridsquares" && !empty($this->uri->segment(2))) { ?>
<script> <script>
var gridsquaremap = true; var gridsquaremap = true;
@ -2759,7 +2898,7 @@ if ($this->session->userdata('user_id') != null) {
'</table>' '</table>'
} }
function createTableRow(image, type){ function createTableRow(image, type) {
const viewFunction = type === 'sstv' ? 'viewSstv' : 'viewQsl'; const viewFunction = type === 'sstv' ? 'viewSstv' : 'viewQsl';
const deleteFunction = type === 'sstv' ? 'deleteSstv' : 'deleteQsl'; const deleteFunction = type === 'sstv' ? 'deleteSstv' : 'deleteQsl';
return '<tr><td style="text-align: center">' + image.filename + '</td>' + return '<tr><td style="text-align: center">' + image.filename + '</td>' +
@ -2768,7 +2907,7 @@ if ($this->session->userdata('user_id') != null) {
'</tr>' '</tr>'
} }
function handleSSTVImageUpload(sstvImage){ function handleSSTVImageUpload(sstvImage) {
const baseURL = "<?php echo base_url(); ?>"; const baseURL = "<?php echo base_url(); ?>";
const numCarouselItems = $('#sstv-carousel-indicators li').length; const numCarouselItems = $('#sstv-carousel-indicators li').length;
@ -2777,7 +2916,7 @@ if ($this->session->userdata('user_id') != null) {
$('.sstvtable tbody:last').append(createTableRow(sstvImage, "sstv")); $('.sstvtable tbody:last').append(createTableRow(sstvImage, "sstv"));
// Append card to the carousel // Append card to the carousel
const newCarouselItem = '<div class="' + (numCarouselItems === 0 ? 'active ' : '') + 'carousel-item carouselimageid_' + sstvImage.insertid +'"><img class="img-fluid w-qsl" src="' + baseURL + '/assets/sstvimages/' + sstvImage.filename + '" alt="QSL picture"></div>'; const newCarouselItem = '<div class="' + (numCarouselItems === 0 ? 'active ' : '') + 'carousel-item carouselimageid_' + sstvImage.insertid + '"><img class="img-fluid w-qsl" src="' + baseURL + '/assets/sstvimages/' + sstvImage.filename + '" alt="QSL picture"></div>';
$("#sstv-carousel-inner").append(newCarouselItem); $("#sstv-carousel-inner").append(newCarouselItem);
// Append new carousel indicator // Append new carousel indicator
@ -2829,7 +2968,7 @@ if ($this->session->userdata('user_id') != null) {
$('.qsltable tbody:last').append(createTableRow(qslCard, "qsl")); $('.qsltable tbody:last').append(createTableRow(qslCard, "qsl"));
// Append card image to the carousel // Append card image to the carousel
const newCarouselItem = '<div class="' + (numCarouselItems === 0 ? 'active ' : '') + 'carousel-item carouselimageid_' + qslCard.insertid +'"><img class="img-fluid w-qsl" src="' + baseURL + '/assets/qslcard/' + qslCard.filename + '" alt="QSL picture"></div>'; const newCarouselItem = '<div class="' + (numCarouselItems === 0 ? 'active ' : '') + 'carousel-item carouselimageid_' + qslCard.insertid + '"><img class="img-fluid w-qsl" src="' + baseURL + '/assets/qslcard/' + qslCard.filename + '" alt="QSL picture"></div>';
$("#qsl-carousel-inner").append(newCarouselItem); $("#qsl-carousel-inner").append(newCarouselItem);
// Append carousel indicator for the new card // Append carousel indicator for the new card

Wyświetl plik

@ -171,6 +171,8 @@
<div class="dropdown-divider"></div> <div class="dropdown-divider"></div>
<a class="dropdown-item" href="<?php echo site_url('awards/vucc'); ?>"><i class="fas fa-trophy"></i> <?php echo lang('menu_vucc'); ?></a> <a class="dropdown-item" href="<?php echo site_url('awards/vucc'); ?>"><i class="fas fa-trophy"></i> <?php echo lang('menu_vucc'); ?></a>
<div class="dropdown-divider"></div> <div class="dropdown-divider"></div>
<a class="dropdown-item" href="<?php echo site_url('awards/wab'); ?>"><i class="fas fa-trophy"></i> Worked All Britain</a>
<div class="dropdown-divider"></div>
<a class="dropdown-item" href="<?php echo site_url('awards/waja'); ?>"><i class="fas fa-trophy"></i> <?php echo lang('menu_waja'); ?></a> <a class="dropdown-item" href="<?php echo site_url('awards/waja'); ?>"><i class="fas fa-trophy"></i> <?php echo lang('menu_waja'); ?></a>
<div class="dropdown-divider"></div> <div class="dropdown-divider"></div>
<a class="dropdown-item" href="<?php echo site_url('awards/was'); ?>"><i class="fas fa-trophy"></i> <?php echo lang('menu_was'); ?></a> <a class="dropdown-item" href="<?php echo site_url('awards/was'); ?>"><i class="fas fa-trophy"></i> <?php echo lang('menu_was'); ?></a>