Browse Source

Mogelijk om te zoeken op plaats

master
Rogier Neeleman 8 years ago
parent
commit
b8520c6487
  1. 3
      application/models/Uitslag_model.php
  2. 7
      application/views/footer.php
  3. 2
      application/views/uitslag_ranking.php

3
application/models/Uitslag_model.php

@ -18,7 +18,8 @@ class Uitslag_model extends CI_Model @@ -18,7 +18,8 @@ class Uitslag_model extends CI_Model
subgroep.naam AS naam,
subgroep.themanaam AS themanaam,
subgroep.nummer AS nummer,
groep.naam AS groepsnaam');
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'));

7
application/views/footer.php

@ -20,7 +20,12 @@ @@ -20,7 +20,12 @@
$('#maintable').dataTable( {
"paging": false,
"order": [[ 1, "asc" ]],
"info": false
"info": false,
"columnDefs" : [ {
"targets": [ 4 ],
"visible": false,
"searchable": true
} ]
} );
} );
</script>

2
application/views/uitslag_ranking.php

@ -9,6 +9,7 @@ @@ -9,6 +9,7 @@
<th>Nr</th>
<th>Themanaam</th>
<th>Groep</th>
<th>Plaats</th>
<?php foreach ($spelgebieden as $spelgebied) {
echo "<th>".$spelgebied['naam']."</th>";
} ?>
@ -22,6 +23,7 @@ @@ -22,6 +23,7 @@
<td><?php echo $subgroep['nummer']?></td>
<td><a href="<?php echo base_url('/uitslag/groep/'.$subgroep['id']); ?>"><?php echo $subgroep['themanaam']?></a></td>
<td><?php echo $subgroep['groepsnaam']?></td>
<td><?php echo $subgroep['plaats']?></td>
<?php foreach ($spelgebieden as $spelgebied) {
if (isset($uitslag[$subgroep['id']][$spelgebied['id']])) {
$score = $uitslag[$subgroep['id']][$spelgebied['id']];

Loading…
Cancel
Save