From deb7a76cd37d5257a5c57260ce1e9531abe2b1cd Mon Sep 17 00:00:00 2001 From: Peter Goodhall Date: Fri, 19 Aug 2011 22:31:41 +0100 Subject: [PATCH] More contest improvements --- application/controllers/contest.php | 1 + application/views/contest/log.php | 2 +- application/views/layout/header.php | 11 +++++++++++ 3 files changed, 13 insertions(+), 1 deletion(-) diff --git a/application/controllers/contest.php b/application/controllers/contest.php index 11e5afb8..359ed8f9 100644 --- a/application/controllers/contest.php +++ b/application/controllers/contest.php @@ -84,6 +84,7 @@ class Contest extends CI_Controller { public function create() { $this->load->model('logbook_model'); $this->load->model('user_model'); + $this->load->model('contests'); if(!$this->user_model->authorize(2)) { $this->session->set_flashdata('notice', 'You\'re not allowed to do that!'); redirect('dashboard'); } $data['templates'] = $this->contests->list_templates(); diff --git a/application/views/contest/log.php b/application/views/contest/log.php index 6da41d28..8d36809b 100644 --- a/application/views/contest/log.php +++ b/application/views/contest/log.php @@ -65,7 +65,7 @@ function settime () { Band QSOs - Points + result() as $row) { ?> diff --git a/application/views/layout/header.php b/application/views/layout/header.php index bf03f746..0177a77a 100644 --- a/application/views/layout/header.php +++ b/application/views/layout/header.php @@ -28,6 +28,7 @@ body { background-color: #e6e6e6; font-family: Arial, "Trebuchet MS", sans-serif td { padding: 1px;} .tr1 td { background:none repeat scroll 0 0 #F0FFFF; } .partial td, .logbook td, .users td { padding: 5px; } +#subnav { height: 30px; color:#ffffff; clear: both; } #submenu { height: 30px; color:#ffffff; clear: both; session->userdata('user_type') == 99) { @@ -182,4 +183,14 @@ border-radius: 10px; + + uri->segment(1) == "contest" && $this->uri->segment(2) != "view") { ?> + +