2012-10-31 20:34:57 +00:00
|
|
|
<?php if ( ! defined('BASEPATH')) exit('No direct script access allowed');
|
|
|
|
|
|
|
|
/*
|
|
|
|
Handles Displaying of information for awards.
|
2012-11-01 01:50:11 +00:00
|
|
|
|
|
|
|
These are taken from comments fields or ADIF fields
|
2012-10-31 20:34:57 +00:00
|
|
|
*/
|
|
|
|
|
|
|
|
class Awards extends CI_Controller {
|
|
|
|
|
|
|
|
public function index()
|
|
|
|
{
|
|
|
|
echo "This is the index page";
|
|
|
|
}
|
|
|
|
|
|
|
|
/*
|
|
|
|
Handles Displaying of WAB Squares worked.
|
2012-11-01 01:50:11 +00:00
|
|
|
Comment field - WAB:#
|
2012-10-31 20:34:57 +00:00
|
|
|
*/
|
|
|
|
public function wab() {
|
|
|
|
|
2012-11-01 01:50:11 +00:00
|
|
|
// Grab all worked WABs
|
2012-10-31 20:34:57 +00:00
|
|
|
$this->load->model('wab');
|
|
|
|
$data['wab_all'] = $this->wab->get_all();
|
|
|
|
|
2012-11-01 01:50:11 +00:00
|
|
|
// Render Page
|
2012-10-31 20:34:57 +00:00
|
|
|
$data['page_title'] = "Awards - WAB";
|
|
|
|
$this->load->view('layout/header', $data);
|
|
|
|
$this->load->view('awards/wab/index');
|
|
|
|
$this->load->view('layout/footer');
|
|
|
|
}
|
2012-11-01 01:50:11 +00:00
|
|
|
|
|
|
|
/*
|
|
|
|
Handles showing worked SOTAs
|
|
|
|
Comment field - SOTA:#
|
|
|
|
*/
|
|
|
|
public function sota() {
|
|
|
|
|
|
|
|
// Grab all worked sota stations
|
|
|
|
$this->load->model('sota');
|
|
|
|
$data['sota_all'] = $this->sota->get_all();
|
|
|
|
|
|
|
|
// Render page
|
|
|
|
$data['page_title'] = "Awards - SOTA";
|
|
|
|
$this->load->view('layout/header', $data);
|
|
|
|
$this->load->view('awards/sota/index');
|
|
|
|
$this->load->view('layout/footer');
|
|
|
|
}
|
|
|
|
|
2012-10-31 20:34:57 +00:00
|
|
|
}
|