[Awards] Added WAB

This commit is contained in:
Andreas Kristiansen
2024-04-20 10:05:33 +02:00
parent aaa27fc3fb
commit 55b44b0b8f
37 changed files with 12972 additions and 0 deletions

View File

@@ -1503,4 +1503,39 @@ class Awards extends CI_Controller {
}
}
}
public function wab() {
$footerData = [];
$footerData['scripts'] = [
'assets/js/sections/wab.js?' . filemtime(realpath(__DIR__ . "/../../assets/js/sections/wab.js"))
];
// Render page
$data['page_title'] = "Awards - Worked All Britain";
$this->load->view('interface_assets/header', $data);
$this->load->view('awards/wab/index');
$this->load->view('interface_assets/footer', $footerData);
}
public function wab_map() {
$CI =& get_instance();
$CI->load->model('logbooks_model');
$logbooks_locations_array = $CI->logbooks_model->list_logbook_relationships($this->session->userdata('active_station_logbook'));
$this->load->model('wab');
$bands[] = 'All';
if ($logbooks_locations_array) {
$location_list = "'".implode("','",$logbooks_locations_array)."'";
$wab_array = $this->wab->get_wab_array($bands, $location_list);
} else {
$location_list = null;
$wab_array = null;
}
header('Content-Type: application/json');
echo json_encode($wab_array);
}
}

View File

@@ -217,3 +217,15 @@ $lang['awards_jcc_description_ln1'] = "JCC - Japan Century Cities Award";
$lang['awards_jcc_description_ln2'] = "May be claimed for having contacted (heard) and received a QSL card from an amateur station located in each of at least 100 different cities of Japan.";
$lang['awards_jcc_description_ln3'] = "JCC-200, 300, 400, 500, 600, 700 and 800 will be issued as separate awards. A list of QSL cards should be arranged in order of JCC reference number, however names of city may be omitted. An additional sticker will be issued at every 50 contacts like 150, 250, 350, 450, 550, 650, 750 cities.";
$lang['awards_jcc_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 4 Lines of Text
___________________________________________________________________________________________
*/
$lang['awards_wab_description_ln1'] = "WAB - Worked All Britain Award";
$lang['awards_wab_description_ln2'] = "WAB, Worked All Britain squares in Amateur Radio, encourages licensed ham radio operators to work all the squares in Great Britain.";
$lang['awards_wab_description_ln3'] = "May be claimed for having contacted an amateur station located in the required amount of squares, described on the page linked below.";
$lang['awards_wab_description_ln4'] = "For more information, please visit: <a href='https://wab.intermip.net/default.php' target='_blank'>https://wab.intermip.net/default.php</a>.";

View File

@@ -108,3 +108,4 @@ $lang['menu_extras'] = "Extras";
$lang['menu_satellites'] = 'Satellites';
$lang['menu_dx_calendar'] = 'DX Calendar';
$lang['menu_contest_calendar'] = 'Contest Calendar';
$lang['menu_wab'] = 'WAB';

View File

@@ -217,3 +217,15 @@ $lang['awards_jcc_description_ln1'] = "JCC - Japan Century Cities Award";
$lang['awards_jcc_description_ln2'] = "May be claimed for having contacted (heard) and received a QSL card from an amateur station located in each of at least 100 different cities of Japan.";
$lang['awards_jcc_description_ln3'] = "JCC-200, 300, 400, 500, 600, 700 and 800 will be issued as separate awards. A list of QSL cards should be arranged in order of JCC reference number, however names of city may be omitted. An additional sticker will be issued at every 50 contacts like 150, 250, 350, 450, 550, 650, 750 cities.";
$lang['awards_jcc_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 4 Lines of Text
___________________________________________________________________________________________
*/
$lang['awards_wab_description_ln1'] = "WAB - Worked All Britain Award";
$lang['awards_wab_description_ln2'] = "WAB, Worked All Britain squares in Amateur Radio, encourages licensed ham radio operators to work all the squares in Great Britain.";
$lang['awards_wab_description_ln3'] = "May be claimed for having contacted an amateur station located in the required amount of squares, described on the page linked below.";
$lang['awards_wab_description_ln4'] = "For more information, please visit: <a href='https://wab.intermip.net/default.php' target='_blank'>https://wab.intermip.net/default.php</a>.";

View File

@@ -108,3 +108,4 @@ $lang['menu_extras'] = "Extras";
$lang['menu_satellites'] = 'Satellites';
$lang['menu_dx_calendar'] = 'DX Calendar';
$lang['menu_contest_calendar'] = 'Contest Calendar';
$lang['menu_wab'] = 'WAB';

View File

@@ -217,3 +217,15 @@ $lang['awards_jcc_description_ln1'] = "JCC - Japan Century Cities Award";
$lang['awards_jcc_description_ln2'] = "May be claimed for having contacted (heard) and received a QSL card from an amateur station located in each of at least 100 different cities of Japan.";
$lang['awards_jcc_description_ln3'] = "JCC-200, 300, 400, 500, 600, 700 and 800 will be issued as separate awards. A list of QSL cards should be arranged in order of JCC reference number, however names of city may be omitted. An additional sticker will be issued at every 50 contacts like 150, 250, 350, 450, 550, 650, 750 cities.";
$lang['awards_jcc_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 4 Lines of Text
___________________________________________________________________________________________
*/
$lang['awards_wab_description_ln1'] = "WAB - Worked All Britain Award";
$lang['awards_wab_description_ln2'] = "WAB, Worked All Britain squares in Amateur Radio, encourages licensed ham radio operators to work all the squares in Great Britain.";
$lang['awards_wab_description_ln3'] = "May be claimed for having contacted an amateur station located in the required amount of squares, described on the page linked below.";
$lang['awards_wab_description_ln4'] = "For more information, please visit: <a href='https://wab.intermip.net/default.php' target='_blank'>https://wab.intermip.net/default.php</a>.";

View File

@@ -108,3 +108,4 @@ $lang['menu_extras'] = "Extras";
$lang['menu_satellites'] = 'Satellites';
$lang['menu_dx_calendar'] = 'DX Calendar';
$lang['menu_contest_calendar'] = 'Contest Calendar';
$lang['menu_wab'] = 'WAB';

View File

@@ -217,3 +217,15 @@ $lang['awards_jcc_description_ln1'] = "JCC - Japan Century Cities Award";
$lang['awards_jcc_description_ln2'] = "May be claimed for having contacted (heard) and received a QSL card from an amateur station located in each of at least 100 different cities of Japan.";
$lang['awards_jcc_description_ln3'] = "JCC-200, 300, 400, 500, 600, 700 and 800 will be issued as separate awards. A list of QSL cards should be arranged in order of JCC reference number, however names of city may be omitted. An additional sticker will be issued at every 50 contacts like 150, 250, 350, 450, 550, 650, 750 cities.";
$lang['awards_jcc_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 4 Lines of Text
___________________________________________________________________________________________
*/
$lang['awards_wab_description_ln1'] = "WAB - Worked All Britain Award";
$lang['awards_wab_description_ln2'] = "WAB, Worked All Britain squares in Amateur Radio, encourages licensed ham radio operators to work all the squares in Great Britain.";
$lang['awards_wab_description_ln3'] = "May be claimed for having contacted an amateur station located in the required amount of squares, described on the page linked below.";
$lang['awards_wab_description_ln4'] = "For more information, please visit: <a href='https://wab.intermip.net/default.php' target='_blank'>https://wab.intermip.net/default.php</a>.";

View File

@@ -108,3 +108,4 @@ $lang['menu_extras'] = "Extras";
$lang['menu_satellites'] = 'Satellites';
$lang['menu_dx_calendar'] = 'DX Calendar';
$lang['menu_contest_calendar'] = 'Contest Calendar';
$lang['menu_wab'] = 'WAB';

View File

@@ -217,3 +217,15 @@ $lang['awards_jcc_description_ln1'] = "JCC - Japan Century Cities Award";
$lang['awards_jcc_description_ln2'] = "May be claimed for having contacted (heard) and received a QSL card from an amateur station located in each of at least 100 different cities of Japan.";
$lang['awards_jcc_description_ln3'] = "JCC-200, 300, 400, 500, 600, 700 and 800 will be issued as separate awards. A list of QSL cards should be arranged in order of JCC reference number, however names of city may be omitted. An additional sticker will be issued at every 50 contacts like 150, 250, 350, 450, 550, 650, 750 cities.";
$lang['awards_jcc_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 4 Lines of Text
___________________________________________________________________________________________
*/
$lang['awards_wab_description_ln1'] = "WAB - Worked All Britain Award";
$lang['awards_wab_description_ln2'] = "WAB, Worked All Britain squares in Amateur Radio, encourages licensed ham radio operators to work all the squares in Great Britain.";
$lang['awards_wab_description_ln3'] = "May be claimed for having contacted an amateur station located in the required amount of squares, described on the page linked below.";
$lang['awards_wab_description_ln4'] = "For more information, please visit: <a href='https://wab.intermip.net/default.php' target='_blank'>https://wab.intermip.net/default.php</a>.";

View File

@@ -108,3 +108,4 @@ $lang['menu_extras'] = "Extras";
$lang['menu_satellites'] = 'Satellites';
$lang['menu_dx_calendar'] = 'DX Calendar';
$lang['menu_contest_calendar'] = 'Contest Calendar';
$lang['menu_wab'] = 'WAB';

View File

@@ -217,3 +217,15 @@ $lang['awards_jcc_description_ln1'] = "JCC - Japan Century Cities Award";
$lang['awards_jcc_description_ln2'] = "May be claimed for having contacted (heard) and received a QSL card from an amateur station located in each of at least 100 different cities of Japan.";
$lang['awards_jcc_description_ln3'] = "JCC-200, 300, 400, 500, 600, 700 and 800 will be issued as separate awards. A list of QSL cards should be arranged in order of JCC reference number, however names of city may be omitted. An additional sticker will be issued at every 50 contacts like 150, 250, 350, 450, 550, 650, 750 cities.";
$lang['awards_jcc_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 4 Lines of Text
___________________________________________________________________________________________
*/
$lang['awards_wab_description_ln1'] = "WAB - Worked All Britain Award";
$lang['awards_wab_description_ln2'] = "WAB, Worked All Britain squares in Amateur Radio, encourages licensed ham radio operators to work all the squares in Great Britain.";
$lang['awards_wab_description_ln3'] = "May be claimed for having contacted an amateur station located in the required amount of squares, described on the page linked below.";
$lang['awards_wab_description_ln4'] = "For more information, please visit: <a href='https://wab.intermip.net/default.php' target='_blank'>https://wab.intermip.net/default.php</a>.";

View File

@@ -108,3 +108,4 @@ $lang['menu_extras'] = "Extras";
$lang['menu_satellites'] = 'Satellites';
$lang['menu_dx_calendar'] = 'DX Calendar';
$lang['menu_contest_calendar'] = 'Contest Calendar';
$lang['menu_wab'] = 'WAB';

View File

@@ -217,3 +217,15 @@ $lang['awards_jcc_description_ln1'] = "JCC - Japan Century Cities Award";
$lang['awards_jcc_description_ln2'] = "May be claimed for having contacted (heard) and received a QSL card from an amateur station located in each of at least 100 different cities of Japan.";
$lang['awards_jcc_description_ln3'] = "JCC-200, 300, 400, 500, 600, 700 and 800 will be issued as separate awards. A list of QSL cards should be arranged in order of JCC reference number, however names of city may be omitted. An additional sticker will be issued at every 50 contacts like 150, 250, 350, 450, 550, 650, 750 cities.";
$lang['awards_jcc_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 4 Lines of Text
___________________________________________________________________________________________
*/
$lang['awards_wab_description_ln1'] = "WAB - Worked All Britain Award";
$lang['awards_wab_description_ln2'] = "WAB, Worked All Britain squares in Amateur Radio, encourages licensed ham radio operators to work all the squares in Great Britain.";
$lang['awards_wab_description_ln3'] = "May be claimed for having contacted an amateur station located in the required amount of squares, described on the page linked below.";
$lang['awards_wab_description_ln4'] = "For more information, please visit: <a href='https://wab.intermip.net/default.php' target='_blank'>https://wab.intermip.net/default.php</a>.";

View File

@@ -108,3 +108,4 @@ $lang['menu_extras'] = "Extras";
$lang['menu_satellites'] = 'Satellites';
$lang['menu_dx_calendar'] = 'DX Calendar';
$lang['menu_contest_calendar'] = 'Contest Calendar';
$lang['menu_wab'] = 'WAB';

View File

@@ -217,3 +217,15 @@ $lang['awards_jcc_description_ln1'] = "JCC - Japan Century Cities Award";
$lang['awards_jcc_description_ln2'] = "Kann beantragt werden, wenn Amateurfunkstationen aus mindestens 100 unterschiedlichen Städten Japans gearbeitet bzw. gehört wurden und eine QSL-Karte vorliegt.";
$lang['awards_jcc_description_ln3'] = "JCC-200, 300, 400, 500, 600, 700 und 800 werden als separate Auszeichnungen vergeben. Eine Liste der QSL-Karten sollte in der Reihenfolge der JCC Referenznummern angelegt werden. Die Namen der Städte können ausgelassen werden. Weitere Sticker werden für jeweils 50 weitere Kontakte ausgestellt, z.B 150, 250, 350, 450, 550, 650, 750 Städte.";
$lang['awards_jcc_description_ln4'] = "Für weitere Informationen besuche bitte: <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 4 Lines of Text
___________________________________________________________________________________________
*/
$lang['awards_wab_description_ln1'] = "WAB - Worked All Britain Award";
$lang['awards_wab_description_ln2'] = "WAB, Worked All Britain squares in Amateur Radio, encourages licensed ham radio operators to work all the squares in Great Britain.";
$lang['awards_wab_description_ln3'] = "May be claimed for having contacted an amateur station located in the required amount of squares, described on the page linked below.";
$lang['awards_wab_description_ln4'] = "For more information, please visit: <a href='https://wab.intermip.net/default.php' target='_blank'>https://wab.intermip.net/default.php</a>.";

View File

@@ -108,3 +108,4 @@ $lang['menu_extras'] = "Extras";
$lang['menu_satellites'] = 'Satelliten';
$lang['menu_dx_calendar'] = 'DX Calendar';
$lang['menu_contest_calendar'] = 'Contest Calendar';
$lang['menu_wab'] = 'WAB';

View File

@@ -217,3 +217,15 @@ $lang['awards_jcc_description_ln1'] = "JCC - Japan Century Cities Award";
$lang['awards_jcc_description_ln2'] = "May be claimed for having contacted (heard) and received a QSL card from an amateur station located in each of at least 100 different cities of Japan.";
$lang['awards_jcc_description_ln3'] = "JCC-200, 300, 400, 500, 600, 700 and 800 will be issued as separate awards. A list of QSL cards should be arranged in order of JCC reference number, however names of city may be omitted. An additional sticker will be issued at every 50 contacts like 150, 250, 350, 450, 550, 650, 750 cities.";
$lang['awards_jcc_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 4 Lines of Text
___________________________________________________________________________________________
*/
$lang['awards_wab_description_ln1'] = "WAB - Worked All Britain Award";
$lang['awards_wab_description_ln2'] = "WAB, Worked All Britain squares in Amateur Radio, encourages licensed ham radio operators to work all the squares in Great Britain.";
$lang['awards_wab_description_ln3'] = "May be claimed for having contacted an amateur station located in the required amount of squares, described on the page linked below.";
$lang['awards_wab_description_ln4'] = "For more information, please visit: <a href='https://wab.intermip.net/default.php' target='_blank'>https://wab.intermip.net/default.php</a>.";

View File

@@ -108,3 +108,4 @@ $lang['menu_extras'] = "Extras";
$lang['menu_satellites'] = 'Satellites';
$lang['menu_dx_calendar'] = 'DX Calendar';
$lang['menu_contest_calendar'] = 'Contest Calendar';
$lang['menu_wab'] = 'WAB';

View File

@@ -217,3 +217,15 @@ $lang['awards_jcc_description_ln1'] = "JCC - Japan Century Cities Award";
$lang['awards_jcc_description_ln2'] = "May be claimed for having contacted (heard) and received a QSL card from an amateur station located in each of at least 100 different cities of Japan.";
$lang['awards_jcc_description_ln3'] = "JCC-200, 300, 400, 500, 600, 700 and 800 will be issued as separate awards. A list of QSL cards should be arranged in order of JCC reference number, however names of city may be omitted. An additional sticker will be issued at every 50 contacts like 150, 250, 350, 450, 550, 650, 750 cities.";
$lang['awards_jcc_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 4 Lines of Text
___________________________________________________________________________________________
*/
$lang['awards_wab_description_ln1'] = "WAB - Worked All Britain Award";
$lang['awards_wab_description_ln2'] = "WAB, Worked All Britain squares in Amateur Radio, encourages licensed ham radio operators to work all the squares in Great Britain.";
$lang['awards_wab_description_ln3'] = "May be claimed for having contacted an amateur station located in the required amount of squares, described on the page linked below.";
$lang['awards_wab_description_ln4'] = "For more information, please visit: <a href='https://wab.intermip.net/default.php' target='_blank'>https://wab.intermip.net/default.php</a>.";

View File

@@ -108,3 +108,4 @@ $lang['menu_extras'] = "Extras";
$lang['menu_satellites'] = 'Satellites';
$lang['menu_dx_calendar'] = 'DX Calendar';
$lang['menu_contest_calendar'] = 'Contest Calendar';
$lang['menu_wab'] = 'WAB';

View File

@@ -217,3 +217,15 @@ $lang['awards_jcc_description_ln1'] = "JCC - Japan Century Cities Award";
$lang['awards_jcc_description_ln2'] = "May be claimed for having contacted (heard) and received a QSL card from an amateur station located in each of at least 100 different cities of Japan.";
$lang['awards_jcc_description_ln3'] = "JCC-200, 300, 400, 500, 600, 700 and 800 will be issued as separate awards. A list of QSL cards should be arranged in order of JCC reference number, however names of city may be omitted. An additional sticker will be issued at every 50 contacts like 150, 250, 350, 450, 550, 650, 750 cities.";
$lang['awards_jcc_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 4 Lines of Text
___________________________________________________________________________________________
*/
$lang['awards_wab_description_ln1'] = "WAB - Worked All Britain Award";
$lang['awards_wab_description_ln2'] = "WAB, Worked All Britain squares in Amateur Radio, encourages licensed ham radio operators to work all the squares in Great Britain.";
$lang['awards_wab_description_ln3'] = "May be claimed for having contacted an amateur station located in the required amount of squares, described on the page linked below.";
$lang['awards_wab_description_ln4'] = "For more information, please visit: <a href='https://wab.intermip.net/default.php' target='_blank'>https://wab.intermip.net/default.php</a>.";

View File

@@ -108,3 +108,4 @@ $lang['menu_extras'] = "Extras";
$lang['menu_satellites'] = 'Satellites';
$lang['menu_dx_calendar'] = 'DX Calendar';
$lang['menu_contest_calendar'] = 'Contest Calendar';
$lang['menu_wab'] = 'WAB';

View File

@@ -217,3 +217,15 @@ $lang['awards_jcc_description_ln1'] = "JCC - Japan Century Cities Award";
$lang['awards_jcc_description_ln2'] = "May be claimed for having contacted (heard) and received a QSL card from an amateur station located in each of at least 100 different cities of Japan.";
$lang['awards_jcc_description_ln3'] = "JCC-200, 300, 400, 500, 600, 700 and 800 will be issued as separate awards. A list of QSL cards should be arranged in order of JCC reference number, however names of city may be omitted. An additional sticker will be issued at every 50 contacts like 150, 250, 350, 450, 550, 650, 750 cities.";
$lang['awards_jcc_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 4 Lines of Text
___________________________________________________________________________________________
*/
$lang['awards_wab_description_ln1'] = "WAB - Worked All Britain Award";
$lang['awards_wab_description_ln2'] = "WAB, Worked All Britain squares in Amateur Radio, encourages licensed ham radio operators to work all the squares in Great Britain.";
$lang['awards_wab_description_ln3'] = "May be claimed for having contacted an amateur station located in the required amount of squares, described on the page linked below.";
$lang['awards_wab_description_ln4'] = "For more information, please visit: <a href='https://wab.intermip.net/default.php' target='_blank'>https://wab.intermip.net/default.php</a>.";

View File

@@ -108,3 +108,4 @@ $lang['menu_extras'] = "Extras";
$lang['menu_satellites'] = 'Satellites';
$lang['menu_dx_calendar'] = 'DX Calendar';
$lang['menu_contest_calendar'] = 'Contest Calendar';
$lang['menu_wab'] = 'WAB';

View File

@@ -217,3 +217,15 @@ $lang['awards_jcc_description_ln1'] = "JCC - Japan Century Cities Award";
$lang['awards_jcc_description_ln2'] = "May be claimed for having contacted (heard) and received a QSL card from an amateur station located in each of at least 100 different cities of Japan.";
$lang['awards_jcc_description_ln3'] = "JCC-200, 300, 400, 500, 600, 700 and 800 will be issued as separate awards. A list of QSL cards should be arranged in order of JCC reference number, however names of city may be omitted. An additional sticker will be issued at every 50 contacts like 150, 250, 350, 450, 550, 650, 750 cities.";
$lang['awards_jcc_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 4 Lines of Text
___________________________________________________________________________________________
*/
$lang['awards_wab_description_ln1'] = "WAB - Worked All Britain Award";
$lang['awards_wab_description_ln2'] = "WAB, Worked All Britain squares in Amateur Radio, encourages licensed ham radio operators to work all the squares in Great Britain.";
$lang['awards_wab_description_ln3'] = "May be claimed for having contacted an amateur station located in the required amount of squares, described on the page linked below.";
$lang['awards_wab_description_ln4'] = "For more information, please visit: <a href='https://wab.intermip.net/default.php' target='_blank'>https://wab.intermip.net/default.php</a>.";

View File

@@ -108,3 +108,4 @@ $lang['menu_extras'] = "Extras";
$lang['menu_satellites'] = 'Satellites';
$lang['menu_dx_calendar'] = 'DX Calendar';
$lang['menu_contest_calendar'] = 'Contest Calendar';
$lang['menu_wab'] = 'WAB';

View File

@@ -217,3 +217,15 @@ $lang['awards_jcc_description_ln1'] = "JCC - Japan Century Cities Award";
$lang['awards_jcc_description_ln2'] = "May be claimed for having contacted (heard) and received a QSL card from an amateur station located in each of at least 100 different cities of Japan.";
$lang['awards_jcc_description_ln3'] = "JCC-200, 300, 400, 500, 600, 700 and 800 will be issued as separate awards. A list of QSL cards should be arranged in order of JCC reference number, however names of city may be omitted. An additional sticker will be issued at every 50 contacts like 150, 250, 350, 450, 550, 650, 750 cities.";
$lang['awards_jcc_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 4 Lines of Text
___________________________________________________________________________________________
*/
$lang['awards_wab_description_ln1'] = "WAB - Worked All Britain Award";
$lang['awards_wab_description_ln2'] = "WAB, Worked All Britain squares in Amateur Radio, encourages licensed ham radio operators to work all the squares in Great Britain.";
$lang['awards_wab_description_ln3'] = "May be claimed for having contacted an amateur station located in the required amount of squares, described on the page linked below.";
$lang['awards_wab_description_ln4'] = "For more information, please visit: <a href='https://wab.intermip.net/default.php' target='_blank'>https://wab.intermip.net/default.php</a>.";

View File

@@ -108,3 +108,4 @@ $lang['menu_extras'] = "Extras";
$lang['menu_satellites'] = 'Satellites';
$lang['menu_dx_calendar'] = 'DX Calendar';
$lang['menu_contest_calendar'] = 'Contest Calendar';
$lang['menu_wab'] = 'WAB';

View File

@@ -217,3 +217,15 @@ $lang['awards_jcc_description_ln1'] = "JCC - Japan Century Cities Award";
$lang['awards_jcc_description_ln2'] = "May be claimed for having contacted (heard) and received a QSL card from an amateur station located in each of at least 100 different cities of Japan.";
$lang['awards_jcc_description_ln3'] = "JCC-200, 300, 400, 500, 600, 700 and 800 will be issued as separate awards. A list of QSL cards should be arranged in order of JCC reference number, however names of city may be omitted. An additional sticker will be issued at every 50 contacts like 150, 250, 350, 450, 550, 650, 750 cities.";
$lang['awards_jcc_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 4 Lines of Text
___________________________________________________________________________________________
*/
$lang['awards_wab_description_ln1'] = "WAB - Worked All Britain Award";
$lang['awards_wab_description_ln2'] = "WAB, Worked All Britain squares in Amateur Radio, encourages licensed ham radio operators to work all the squares in Great Britain.";
$lang['awards_wab_description_ln3'] = "May be claimed for having contacted an amateur station located in the required amount of squares, described on the page linked below.";
$lang['awards_wab_description_ln4'] = "For more information, please visit: <a href='https://wab.intermip.net/default.php' target='_blank'>https://wab.intermip.net/default.php</a>.";

View File

@@ -108,3 +108,4 @@ $lang['menu_extras'] = "Extras";
$lang['menu_satellites'] = 'Satellites';
$lang['menu_dx_calendar'] = 'DX Calendar';
$lang['menu_contest_calendar'] = 'Contest Calendar';
$lang['menu_wab'] = 'WAB';

View File

@@ -479,6 +479,10 @@ class Logbook_model extends CI_Model {
case 'DOK':
$this->db->where('COL_DARC_DOK', $searchphrase);
break;
case 'WAB':
$this->db->where('COL_SIG', 'WAB');
$this->db->where('COL_SIG_INFO', $searchphrase);
break;
case 'WAJA':
$state = str_pad($searchphrase, 2, '0', STR_PAD_LEFT);
$this->db->where('COL_STATE', $state);

View File

@@ -0,0 +1,80 @@
<?php
class Wab extends CI_Model{
function get_wab_array($band, $location_list) {
$worked = array();
$confirmed = array();
$worked = $this->getWabWorked($location_list, $band);
$confirmed = $this->getWabConfirmed($location_list, $band);
$wabarray = array();
$workedGridArray = array();
foreach ($worked as $w) {
array_push($workedGridArray, $w->col_sig_info);
$wabarray += array(
$w->col_sig_info => 'W'
);
}
$confirmedGridArray = array();
foreach ($confirmed as $c) {
array_push($confirmedGridArray, $c->col_sig_info);
if(array_key_exists($c->col_sig_info, $wabarray)){
$wabarray[$c->col_sig_info] = 'C';
} else {
$wabarray += array(
$c->col_sig_info => 'C'
);
}
}
return $wabarray;
}
/*
* Function returns all worked, but not confirmed states
* $postdata contains data from the form, in this case Lotw or QSL are used
*/
function getWabWorked($location_list, $band) {
$sql = "SELECT distinct col_sig_info FROM " . $this->config->item('table_name') . " thcv
where station_id in (" . $location_list . ") and col_sig = 'WAB' and coalesce(col_sig_info, '') <> ''";
$query = $this->db->query($sql);
return $query->result();
}
/*
* Function returns all confirmed states on given band and on LoTW or QSL
* $postdata contains data from the form, in this case Lotw or QSL are used
*/
function getWabConfirmed($location_list, $bands) {
$sql = "SELECT distinct col_sig_info FROM " . $this->config->item('table_name') . " thcv
where station_id in (" . $location_list . ") and col_sig = 'WAB' and coalesce(col_sig_info, '') <> ''";
$sql .= $this->addQslToQuery();
$query = $this->db->query($sql);
return $query->result();
}
function addQslToQuery() {
$sql = 'and (';
$qsl = array();
array_push($qsl, "col_qsl_rcvd = 'Y'");
array_push($qsl, "col_lotw_qsl_rcvd = 'Y'");
//array_push($qsl, "col_eqsl_qsl_rcvd = 'Y'");
$sql .= implode(' or ', $qsl);
$sql .= ')';
return $sql;
}
}

View File

@@ -0,0 +1,22 @@
<script>
var tileUrl="<?php echo $this->optionslib->get_option('option_map_tile_server');?>";
var attributionInfo='<?php echo $this->optionslib->get_option('option_map_tile_server_copyright'); ?>';
</script>
<div class="container">
<!-- Award Info Box -->
<br>
<div id="awardInfoButton">
<script>
var lang_awards_info_button = "<?php echo lang('awards_info_button'); ?>";
var lang_award_info_ln1 = "<?php echo lang('awards_wab_description_ln1'); ?>";
var lang_award_info_ln2 = "<?php echo lang('awards_wab_description_ln2'); ?>";
var lang_award_info_ln3 = "<?php echo lang('awards_wab_description_ln3'); ?>";
var lang_award_info_ln4 = "<?php echo lang('awards_wab_description_ln4'); ?>";
</script>
<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>
</div>
<div id="wabmap" style="width: 100%; height: 85vh;"></div>
</div>

View File

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

116
assets/js/sections/wab.js Normal file
View File

@@ -0,0 +1,116 @@
var wab_squares = $.ajax({
url: base_url+"assets/js/sections/wab_geojson.js",
dataType: "json",
success: console.log("WAB data successfully loaded."),
error: function(xhr) {
alert(xhr.statusText)
}
})
$.when(wab_squares).done(function() {
$.ajax({
url: site_url + '/awards/wab_map',
type: 'post',
data: {
},
success: function (data) {
wabmap(data);
},
error: function (data) {
},
})
})
function wabmap(data) {
var map = L.map('wabmap').setView([51.5074, -0.1278], 9);
var confirmedcount = 0;
var workedcount = 0;
L.tileLayer(tileUrl, {
attribution: attributionInfo
}).addTo(map);
// Add requested external GeoJSON to map
var kywab_squares = L.geoJSON(wab_squares.responseJSON, {
style: function(feature) {
if (feature.properties && feature.properties.name) {
if (data[feature.properties.name] == 'C') {
confirmedcount++;
return {
fillColor: 'green',
fill: true,
fillOpacity: 0.8,
};
}
if (data[feature.properties.name] == 'W') {
workedcount++;
return {
fillColor: 'orange',
fill: true,
fillOpacity: 0.8,
};
}
}
},
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
displayContactsOnMap($("#wabmap"), feature.properties.name, 'All', 'All', 'All', 'All', 'WAB');
});
}
}).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();
var printer = L.easyPrint({
tileLayer: tileUrl,
sizeModes: ['Current', 'A4Landscape', 'A4Portrait'],
filename: 'Wavelog',
exportOnly: true,
hideControlContainer: true
}).addTo(map);
/*Legend specific*/
var legend = L.control({ position: "topright" });
legend.onAdd = function(map) {
var div = L.DomUtil.create("div", "legend");
div.innerHTML += "<h4>" + lang_general_word_colors + "</h4>";
div.innerHTML += "<i style='background: green'></i><span>" + lang_general_word_confirmed + " (" + confirmedcount + ")</span><br>";
div.innerHTML += "<i style='background: orange'></i><span>" + lang_general_word_worked_not_confirmed + " (" + workedcount + ")</span><br>";
return div;
};
legend.addTo(map);
};

File diff suppressed because it is too large Load Diff