summary | shortlog | log | commit | commitdiff | tree
raw | patch | inline | side by side (parent: 261d434)
raw | patch | inline | side by side (parent: 261d434)
author | hickert <hickert@594d385d-05f5-0310-b6e9-bd551577e9d8> | |
Thu, 20 May 2010 06:59:21 +0000 (06:59 +0000) | ||
committer | hickert <hickert@594d385d-05f5-0310-b6e9-bd551577e9d8> | |
Thu, 20 May 2010 06:59:21 +0000 (06:59 +0000) |
-Sorted menu entries.
git-svn-id: https://oss.gonicus.de/repositories/gosa/trunk@18564 594d385d-05f5-0310-b6e9-bd551577e9d8
git-svn-id: https://oss.gonicus.de/repositories/gosa/trunk@18564 594d385d-05f5-0310-b6e9-bd551577e9d8
gosa-plugins/systems/admin/systems/class_serverService.inc | patch | blob | history |
diff --git a/gosa-plugins/systems/admin/systems/class_serverService.inc b/gosa-plugins/systems/admin/systems/class_serverService.inc
index 7cb9b9683887ec29ee3c82b04527dc097cfc2a03..1256d1be82ecab4fc97c1c223730feced679d25e 100644 (file)
<label>%s</label>
</action>";
$serviceList = "";
- foreach($this->getAllUnusedServices() as $name => $desc){
+
+ // Sort entries by alphabet
+ $list = array();
+ $services = $this->getAllUnusedServices();
+ foreach($services as $name => $desc){
+ $list[_($desc).$name] = $name;
+ }
+ ksort($list);
+
+ // Create menu entries -> create -> services[]
+ foreach($list as $name){
+ $desc = $services[$name];
$serviceList.= sprintf($template, $name,_($desc));
}
$contents = preg_replace("/%SERVICES%/",$serviceList, $contents);
-
$headpage = new listing($contents,TRUE);
$headpage->registerElementFilter("filterServiceStatus", "ServerService::filterServiceStatus");
$headpage->setFilter($filter);