tussenopslag
This commit is contained in:
@@ -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();
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user