From e3d8c2e83c840508b2fca8d1e7f880d958903995 Mon Sep 17 00:00:00 2001 From: hickert Date: Mon, 8 May 2006 07:49:00 +0000 Subject: [PATCH] summary tab improvements git-svn-id: https://oss.gonicus.de/repositories/gosa/trunk@3214 594d385d-05f5-0310-b6e9-bd551577e9d8 --- plugins/admin/fai/class_faiSummaryTab.inc | 9 +++++---- 1 file changed, 5 insertions(+), 4 deletions(-) diff --git a/plugins/admin/fai/class_faiSummaryTab.inc b/plugins/admin/fai/class_faiSummaryTab.inc index f85bffaab..fbe589efd 100644 --- a/plugins/admin/fai/class_faiSummaryTab.inc +++ b/plugins/admin/fai/class_faiSummaryTab.inc @@ -218,12 +218,16 @@ class faiSummaryTab extends plugin{ $entry['Entries'] = $tmp; }else{ + $tmp = array(); foreach($entry['Entries'] as $script){ + $tmp[$script['cn'][0].$script['CLASS']] = $script; if(!isset($nums[$script['cn'][0]])){ $nums[$script['cn'][0]]= 0; } $nums[$script['cn'][0]] ++; } + ksort($tmp); + $entry['Entries'] = $tmp; } foreach($entry['Entries'] as $cn => $data){ @@ -259,17 +263,14 @@ class faiSummaryTab extends plugin{ $str .= " [".$data['description'][0]."] "; } $str .=" = '".$data['FAIvariableContent'][0]."'"; - $str .= "".$data['CLASS'].""; - - $str .=""; } } /* Create packagelist entries */ if(in_array($key,array("FAIpackageList"))) { -// ksort($entry['Entries']); + ksort($entry['Entries']); foreach($entry['Entries'] as $data){ $str .=""; $str .= $image." ".$data['cn'][0]; -- 2.30.2