resultaamatrix
This commit is contained in:
@@ -132,7 +132,7 @@ class Organisaties_model extends MY_Model{
|
||||
WHERE BG.valtonder_id = {$kamerid}
|
||||
AND O.actief = 1
|
||||
AND O.soort = 4
|
||||
ORDER BY O.naamkort";
|
||||
ORDER BY BG.naamkort, O.naamkort";
|
||||
|
||||
return $this->get_query_result();
|
||||
}
|
||||
@@ -206,7 +206,7 @@ class Organisaties_model extends MY_Model{
|
||||
FROM tb_organisaties
|
||||
WHERE valtonder_id = {$toplevelid}
|
||||
AND id <> {$toplevelid}
|
||||
AND actief = 1";
|
||||
AND actief = 1 ";
|
||||
if ($sublevelid) {$this->sql .=" AND id ={$sublevelid} " ; } ;
|
||||
$this->sql .= " ORDER BY naamkort ";
|
||||
|
||||
@@ -271,7 +271,7 @@ class Organisaties_model extends MY_Model{
|
||||
AND O1.id <> O3.valtonder_id
|
||||
AND O2.id <> O2.valtonder_id
|
||||
AND O1.actief = 1
|
||||
ORDER BY O1.naam ";
|
||||
ORDER BY O1.naamkort ";
|
||||
return $this->get_query_result();
|
||||
}
|
||||
|
||||
@@ -291,7 +291,8 @@ class Organisaties_model extends MY_Model{
|
||||
function getorgdetails($id){
|
||||
$this->sql="SELECT id, soort, brin, naamkort, naam, plaats,valtonder_id, actief,monbas, mondiv
|
||||
FROM tb_organisaties
|
||||
WHERE id= {$id}";
|
||||
WHERE id= {$id}
|
||||
ORDER BY naamkort ";
|
||||
return $this->get_query_row();
|
||||
}
|
||||
function hasdependent($orgid){
|
||||
@@ -336,7 +337,7 @@ class Organisaties_model extends MY_Model{
|
||||
WHERE O.valtonder_id = $orgid
|
||||
AND O.id <> $orgid
|
||||
AND O.actief = 1
|
||||
ORDER BY O.naamkort";
|
||||
ORDER BY O.naamkort ";
|
||||
return $this->get_query_result();
|
||||
}
|
||||
function getall(){
|
||||
|
||||
Reference in New Issue
Block a user