diff --git a/application/controllers/contest.php b/application/controllers/contest.php index 11e5afb86..359ed8f98 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 6da41d28a..8d36809b0 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 bf03f746e..0177a77ad 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") { ?> + +