added some code comments

这个提交包含在:
Peter Goodhall 2021-04-30 16:25:38 +01:00
父节点 b95ef6d07d
当前提交 de5671ef57

查看文件

@ -493,15 +493,18 @@ class Awards extends CI_Controller {
$this->load->view('adif/data/exportall', $data); $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) { public function was_map($band_type) {
$this->load->model('was'); $this->load->model('was');
$data['worked_bands'] = $this->was->get_worked_bands(); $data['worked_bands'] = $this->was->get_worked_bands();
$bands[] = $band_type; $bands[] = $band_type;
$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
$postdata['lotw'] = 1; $postdata['lotw'] = 1;
@ -516,6 +519,7 @@ class Awards extends CI_Controller {
$data['was_summary'] = $this->was->get_was_summary($bands); $data['was_summary'] = $this->was->get_was_summary($bands);
$data['page_title'] = ""; $data['page_title'] = "";
$this->load->view('awards/was/map', $data); $this->load->view('awards/was/map', $data);
} }
} }