|
|
@ -30,6 +30,24 @@ class Uitslag_model extends CI_Model |
|
|
|
return $query->result_array(); |
|
|
|
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() |
|
|
|
public function get_spelgebieden_list() |
|
|
|
{ |
|
|
|
{ |
|
|
|
$this->db->select('id, naam'); |
|
|
|
$this->db->select('id, naam'); |
|
|
|