From de5671ef573a072aaa1445c42cfe2d3d6bce303e Mon Sep 17 00:00:00 2001 From: Peter Goodhall Date: Fri, 30 Apr 2021 16:25:38 +0100 Subject: [PATCH] added some code comments --- application/controllers/Awards.php | 20 ++++++++++++-------- 1 file changed, 12 insertions(+), 8 deletions(-) diff --git a/application/controllers/Awards.php b/application/controllers/Awards.php index 33b54109..445b160e 100644 --- a/application/controllers/Awards.php +++ b/application/controllers/Awards.php @@ -493,29 +493,33 @@ class Awards extends CI_Controller { $this->load->view('adif/data/exportall', $data); } + /* + function was_map + + This displays the WAS map and requires the $band_type + */ public function was_map($band_type) { $this->load->model('was'); $data['worked_bands'] = $this->was->get_worked_bands(); - $bands[] = $band_type; - $data['bands'] = $bands; // Used for displaying selected band(s) in the table in the view - $postdata['lotw'] = 1; - $postdata['qsl'] = 1; - $postdata['worked'] = 1; - $postdata['confirmed'] = 1; - $postdata['notworked'] = 1; - $postdata['band'] = $band_type; + $postdata['lotw'] = 1; + $postdata['qsl'] = 1; + $postdata['worked'] = 1; + $postdata['confirmed'] = 1; + $postdata['notworked'] = 1; + $postdata['band'] = $band_type; $data['was_array'] = $this->was->get_was_array($bands, $postdata); $data['was_summary'] = $this->was->get_was_summary($bands); $data['page_title'] = ""; + $this->load->view('awards/was/map', $data); } }