Code

summary tab improvements
authorhickert <hickert@594d385d-05f5-0310-b6e9-bd551577e9d8>
Mon, 8 May 2006 07:49:00 +0000 (07:49 +0000)
committerhickert <hickert@594d385d-05f5-0310-b6e9-bd551577e9d8>
Mon, 8 May 2006 07:49:00 +0000 (07:49 +0000)
git-svn-id: https://oss.gonicus.de/repositories/gosa/trunk@3214 594d385d-05f5-0310-b6e9-bd551577e9d8

plugins/admin/fai/class_faiSummaryTab.inc

index f85bffaab2b2ac462ef3c6051ac460f8540213b1..fbe589efd0eac078ad5af5d7389404f8947aebf1 100644 (file)
@@ -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 .= "</td><td><i>".$data['CLASS']."</i>";
-            
-
             $str .="</td></tr>";
           }
         }
 
         /* Create packagelist entries */ 
         if(in_array($key,array("FAIpackageList"))) {
-//          ksort($entry['Entries']);
+          ksort($entry['Entries']);
           foreach($entry['Entries'] as $data){
             $str .="<tr><td style='padding-left:20px;'>";
             $str .= $image."&nbsp;".$data['cn'][0];