From 9f269522bdd1c093dcc4128b0d5b73d28b9459f8 Mon Sep 17 00:00:00 2001 From: Peter Goodhall Date: Tue, 20 Nov 2012 17:24:50 +0000 Subject: [PATCH] Added new tools menu item, which currently has Awards listed --- application/controllers/awards.php | 6 +++++- application/views/awards/index.php | 12 ++++++++++++ application/views/awards/sota/index.php | 9 +++++++++ application/views/awards/wab/index.php | 9 +++++++++ application/views/awards/wacral/index.php | 9 +++++++++ application/views/layout/header.php | 8 ++++++++ 6 files changed, 52 insertions(+), 1 deletion(-) create mode 100644 application/views/awards/index.php diff --git a/application/controllers/awards.php b/application/controllers/awards.php index f6ed0830..3cc82fa2 100644 --- a/application/controllers/awards.php +++ b/application/controllers/awards.php @@ -10,7 +10,11 @@ class Awards extends CI_Controller { public function index() { - echo "This is the index page"; + // Render Page + $data['page_title'] = "Awards"; + $this->load->view('layout/header', $data); + $this->load->view('awards/index'); + $this->load->view('layout/footer'); } /* diff --git a/application/views/awards/index.php b/application/views/awards/index.php new file mode 100644 index 00000000..52104683 --- /dev/null +++ b/application/views/awards/index.php @@ -0,0 +1,12 @@ +
+

+ + + +
\ No newline at end of file diff --git a/application/views/awards/sota/index.php b/application/views/awards/sota/index.php index da18a64c..4c46bc66 100644 --- a/application/views/awards/sota/index.php +++ b/application/views/awards/sota/index.php @@ -1,6 +1,15 @@

+ + + + diff --git a/application/views/awards/wab/index.php b/application/views/awards/wab/index.php index cfda3653..e2b01510 100644 --- a/application/views/awards/wab/index.php +++ b/application/views/awards/wab/index.php @@ -1,6 +1,15 @@

+ + + +
diff --git a/application/views/awards/wacral/index.php b/application/views/awards/wacral/index.php index ccac2606..a25e1492 100644 --- a/application/views/awards/wacral/index.php +++ b/application/views/awards/wacral/index.php @@ -1,6 +1,15 @@

+ + + + num_rows() > 0) { ?>
diff --git a/application/views/layout/header.php b/application/views/layout/header.php index e201104d..603766ba 100644 --- a/application/views/layout/header.php +++ b/application/views/layout/header.php @@ -57,6 +57,14 @@
  • Cluster
  • config->item('use_auth') && $this->session->userdata('user_type') >= 99) || $this->config->item('use_auth') === FALSE) { ?> + + +