Browse Source

Overzicht hield geen rekening met rondes.

master
Rogier Neeleman 8 years ago
parent
commit
a4a595129d
  1. 2
      application/controllers/Dashboard.php
  2. 2
      application/models/Dashboard_model.php

2
application/controllers/Dashboard.php

@ -54,7 +54,7 @@ class Dashboard extends CI_Controller @@ -54,7 +54,7 @@ class Dashboard extends CI_Controller
$vragen = $this->Dashboard_model->get_vragen($lijst['id']);
foreach ($vragen as $vraag)
{
$aantal = $this->Dashboard_model->get_antwoorden($vraag['id']);
$aantal = $this->Dashboard_model->get_antwoorden($vraag['id'])/$lijst['ronde'];
$beantwoord = $beantwoord + $aantal;
}
if (($subgroepen*count($vragen)) == 0) {

2
application/models/Dashboard_model.php

@ -61,7 +61,7 @@ class Dashboard_model extends CI_Model @@ -61,7 +61,7 @@ class Dashboard_model extends CI_Model
public function get_lijsten()
{
$this->db->select('id, naam');
$this->db->select('id, naam, ronde');
$this->db->from('lijst');
$this->db->where('jaar', date('Y'));
$this->db->where('regioid', $this->session->regio);

Loading…
Cancel
Save