diff --git a/include/prestudent.class.php b/include/prestudent.class.php index 1862e6c27..828fc94f7 100644 --- a/include/prestudent.class.php +++ b/include/prestudent.class.php @@ -468,13 +468,17 @@ class prestudent extends person */ public function loadIntessentenUndBewerber($studiensemester_kurzbz, $studiengang_kz, $semester=nulll, $typ=null, $orgform=null) { + $stsemqry=''; + if(!is_null($studiensemester_kurzbz) && $studiensemester_kurzbz!='') + $stsemqry=" AND studiensemester_kurzbz='".addslashes($studiensemester_kurzbz)."'"; + $qry = "SELECT *, a.anmerkung, tbl_person.anmerkung as anmerkungen FROM ( SELECT *, (SELECT status_kurzbz FROM tbl_prestudentstatus - WHERE prestudent_id=prestudent.prestudent_id + WHERE prestudent_id=prestudent.prestudent_id $stsemqry ORDER BY datum DESC, insertamum DESC, ext_id DESC LIMIT 1) AS rolle FROM tbl_prestudent prestudent ORDER BY prestudent_id ) a, tbl_prestudentstatus, tbl_person diff --git a/vilesci/stammdaten/organisationseinheiten.php b/vilesci/stammdaten/organisationseinheiten.php index 226b9ffec..e8d7b3315 100644 --- a/vilesci/stammdaten/organisationseinheiten.php +++ b/vilesci/stammdaten/organisationseinheiten.php @@ -111,24 +111,28 @@ function displayh($arr) $style = 'style="border: 1px solid gray; font-weight:bold; padding-right: 10px;padding-left: 10px; margin:0;"'; else $style = 'style="padding-left: 10px;padding-right: 10px;"'; - - echo ''; - + $obj = new organisationseinheit(); $obj->load($key); - if($obj->organisationseinheittyp_kurzbz=='Institut') - echo $obj->oe_kurzbz; - else - echo $obj->bezeichnung; - echo ''; - $style = 'style="border: 1px solid gray; font-weight:bold; padding: 0px; margin:0;"'; - echo ''; + if($obj->aktiv) + { + echo ''; - if(is_array($val) && count($val)>0) - displayh($val); + echo $obj->organisationseinheittyp_kurzbz.' - '; + if($obj->organisationseinheittyp_kurzbz=='Institut') + echo $obj->oe_kurzbz; + else + echo $obj->bezeichnung; + echo ''; + $style = 'style="border: 1px solid gray; font-weight:bold; padding: 0px; margin:0;"'; + echo ''; - echo ''; + if(is_array($val) && count($val)>0) + displayh($val); + + echo ''; + } } echo ''; }