tussenopslag

This commit is contained in:
Monique
2021-10-08 12:52:42 +02:00
parent 129a222506
commit 057d721bd8
11 changed files with 147 additions and 73 deletions
+11 -2
View File
@@ -31,7 +31,7 @@ class Groepen_model extends MY_Model{
return $this->get_query_row();
}
function getgroepenlist($orgid, $schooljaarnr, $module){
$this->sql = "SELECT id, naam
$this->sql = "SELECT id, naam, ondersteuning
FROM tb_groepen
WHERE organisatie_id ={$orgid}
AND schooljaarnr = {$schooljaarnr}
@@ -77,7 +77,7 @@ class Groepen_model extends MY_Model{
GR.naam,
GR.niveau,
GR.totaantal,
GR.ondersteuning,
SUM(IF( nivo = 2, AX.aantal, 0)) AS som2,
SUM(IF( nivo = 3, AX.aantal, 0)) AS som3,
SUM(IF( nivo = 4, AX.aantal, 0)) AS som4,
@@ -151,4 +151,13 @@ class Groepen_model extends MY_Model{
WHERE G.id = {$groepid}";
return $this->get_query_row();
}
function getgroepsids($orgid, $schooljaarnr, $module){
$this->sql=" SELECT id
FROM tb_groepen
WHERE schooljaarnr = {$schooljaarnr}
AND organisatie_id = {$orgid}
AND module = {$module} ";
return $this->get_query_result();
}
}