Browse Source

Naam boven deeloverzicht

master
Rogier Neeleman 8 years ago
parent
commit
53398c76ec
  1. 1
      application/controllers/Uitslag.php
  2. 18
      application/models/Uitslag_model.php
  3. 4
      application/views/uitslag_groep.php

1
application/controllers/Uitslag.php

@ -75,6 +75,7 @@ class Uitslag extends CI_Controller @@ -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;

18
application/models/Uitslag_model.php

@ -30,6 +30,24 @@ class Uitslag_model extends CI_Model @@ -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');

4
application/views/uitslag_groep.php

@ -3,6 +3,10 @@ @@ -3,6 +3,10 @@
<div class="row">
<div class="col-md-6 col-md-offset-3">
<?php $total=0; $totalmax=0; ?>
<p>
<h3><?php echo $subgroepinfo['themanaam']; ?></h3><br>
<?php echo $subgroepinfo['groepsnaam'].', '.$subgroepinfo['plaats']; ?>
</p>
<table class="table table-condensed ">
<thead>
<tr>

Loading…
Cancel
Save