|
|
@ -74,7 +74,6 @@ class Uitslag extends CI_Controller |
|
|
|
|
|
|
|
|
|
|
|
// Get data |
|
|
|
// Get data |
|
|
|
$this->load->model('Uitslag_model'); |
|
|
|
$this->load->model('Uitslag_model'); |
|
|
|
// $scores = $this->Uitslag_model->get_subgroep_detail($subgroepid); |
|
|
|
|
|
|
|
$onderdelen = $this->Uitslag_model->get_lijst_detail(); |
|
|
|
$onderdelen = $this->Uitslag_model->get_lijst_detail(); |
|
|
|
|
|
|
|
|
|
|
|
// Data order |
|
|
|
// Data order |
|
|
@ -94,15 +93,6 @@ class Uitslag extends CI_Controller |
|
|
|
$data['scores'][$onderdeel['spelgebiedid']]['onderdeel'][$onderdeel['onderdeelid']]['score'] = round(($score['score']/$totaal)*1000*$scoremax['gewicht'], 0); |
|
|
|
$data['scores'][$onderdeel['spelgebiedid']]['onderdeel'][$onderdeel['onderdeelid']]['score'] = round(($score['score']/$totaal)*1000*$scoremax['gewicht'], 0); |
|
|
|
} |
|
|
|
} |
|
|
|
|
|
|
|
|
|
|
|
/* |
|
|
|
|
|
|
|
foreach ($scores as $score) { |
|
|
|
|
|
|
|
$scoremax = $this->Uitslag_model->get_max_punten_detail($score['spelgebiedid'], $score['onderdeelid']); |
|
|
|
|
|
|
|
$data['scores'][$score['spelgebiedid']]['naam'] = $score['spelgebied']; |
|
|
|
|
|
|
|
$data['scores'][$score['spelgebiedid']]['onderdeel'][$score['onderdeelid']]['naam'] = $score['onderdeel']; |
|
|
|
|
|
|
|
$data['scores'][$score['spelgebiedid']]['onderdeel'][$score['onderdeelid']]['scoremax'] = 100*$scoremax['gewicht']; |
|
|
|
|
|
|
|
$data['scores'][$score['spelgebiedid']]['onderdeel'][$score['onderdeelid']]['score'] = round(($score['score']/$scoremax['maxscore'])*100*$scoremax['gewicht'], 0); |
|
|
|
|
|
|
|
} */ |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
// Header |
|
|
|
// Header |
|
|
|
$this->load->view('header', $data); |
|
|
|
$this->load->view('header', $data); |
|
|
|
|
|
|
|
|
|
|
|