diff --git a/plugins/admin/applications/class_applicationManagement.inc b/plugins/admin/applications/class_applicationManagement.inc
index 90df8771ec6017281a28bfa00545f8bc98f56823..4ac2c0ca080031c6615f6744a53da9aae54a2c53 100644 (file)
$empty = "<img src='images/empty.png' style='width:16px;height:16px;' alt=''>";
- $divlist = new divlist();
+ $divlist = new divlist("applicationtabs");
$divlist->SetHeader(array(
array("string" => ""),
array("string" => _("Application name")." / "._("Department")),
$res3 = get_list2($this->ui->subtreeACL, "(&(|(ou=$regex)(description=$regex))(objectClass=gosaDepartment))",
TRUE, $base2, array("ou", "description"), TRUE);
+
+
$this->departments= array();
+ $tmp = array();
foreach ($res3 as $value){
+ $tmp[strtolower($value['dn']).$value['dn']]=$value;
+ }
+ ksort($tmp);
+ foreach($tmp as $value){
if($value["description"][0]!=".."){
- $this->departments[$value['dn']]= convert_department_dn2($value['dn'])." - [".$value["description"][0]."]";
+ $this->departments[$value['dn']]=convert_department_dn2($value['dn'])." - [".$value["description"][0]."]";
}else{
$this->departments[$value['dn']]=$value["description"][0];
}
}
+
/* END NEW LIST MANAGMENT
*/
+ $tmp=array();
+ foreach($this->applications as $tkey => $val ){
+ $tmp[strtolower($val['cn'][0]).$val['cn'][0]]=$val;
+ }
+ ksort($tmp);
+ $this->applications=array();
+ foreach($tmp as $val){
+ $this->applications[]=$val;
+ }
+ reset ($this->applications);
+
}