From 53398c76ec75e69b4920a81fbb0df0b7b2f4408e Mon Sep 17 00:00:00 2001 From: Rogier Neeleman Date: Wed, 6 Apr 2016 23:46:47 +0200 Subject: [PATCH] Naam boven deeloverzicht --- application/controllers/Uitslag.php | 1 + application/models/Uitslag_model.php | 18 ++++++++++++++++++ application/views/uitslag_groep.php | 4 ++++ 3 files changed, 23 insertions(+) diff --git a/application/controllers/Uitslag.php b/application/controllers/Uitslag.php index 4bd6338..aea07fb 100644 --- a/application/controllers/Uitslag.php +++ b/application/controllers/Uitslag.php @@ -75,6 +75,7 @@ class Uitslag extends CI_Controller // Get data $this->load->model('Uitslag_model'); $onderdelen = $this->Uitslag_model->get_lijst_detail(); + $data['subgroepinfo'] = $this->Uitslag_model->get_subgroep($subgroepid); // Data order $totaal = 0; diff --git a/application/models/Uitslag_model.php b/application/models/Uitslag_model.php index 2e0c7da..849bec0 100644 --- a/application/models/Uitslag_model.php +++ b/application/models/Uitslag_model.php @@ -30,6 +30,24 @@ class Uitslag_model extends CI_Model return $query->result_array(); } + public function get_subgroep($subgroepid) + { + $this->db->select('subgroep.id AS id, + subgroep.naam AS naam, + subgroep.themanaam AS themanaam, + subgroep.nummer AS nummer, + groep.naam AS groepsnaam, + groep.plaats AS plaats'); + $this->db->from('subgroep'); + $this->db->where('subgroep.regioid', $this->session->regio); + $this->db->where('subgroep.jaar', date('Y')); + $this->db->join('groep', 'subgroep.groepid=groep.id', 'left'); + + $query = $this->db->get(); + + return $query->row_array(); + } + public function get_spelgebieden_list() { $this->db->select('id, naam'); diff --git a/application/views/uitslag_groep.php b/application/views/uitslag_groep.php index 79a27e7..a6e7081 100644 --- a/application/views/uitslag_groep.php +++ b/application/views/uitslag_groep.php @@ -3,6 +3,10 @@
+

+


+ +