Code

Removed old seperator
authorhickert <hickert@594d385d-05f5-0310-b6e9-bd551577e9d8>
Thu, 8 Dec 2005 12:09:52 +0000 (12:09 +0000)
committerhickert <hickert@594d385d-05f5-0310-b6e9-bd551577e9d8>
Thu, 8 Dec 2005 12:09:52 +0000 (12:09 +0000)
git-svn-id: https://oss.gonicus.de/repositories/gosa/trunk@2255 594d385d-05f5-0310-b6e9-bd551577e9d8

plugins/admin/groups/application.tpl
plugins/admin/groups/class_groupApplication.inc

index e8703bf0441db5171f92d6b294327290a7252080..d3a5acf19517b8f1cbdae38124d97837e7c10831 100644 (file)
@@ -3,7 +3,6 @@
   <td style="width:48%; vertical-align:top;">
    <b><LABEL for="used_apps">{t}Used applications{/t}</LABEL></b>
         {$UsedApps} 
-       <input type="submit" value="{t}Seperator{/t}" name='AddSeperator'>
        <input type="text" value="" name='CatName'>
        <input type="submit" value="{t}Add categorie{/t}" name='AddCat'>
   </td>
index 59fb4d7ca1c03cb6b995207063ffc9162ca682e3..654f4de1854b08188d2ff1cd74ff2c50d3e8b061 100644 (file)
@@ -110,12 +110,9 @@ class appgroup extends plugin
   }
 
   function catDown($id){
-  
    /* Get all cats depinding on current dir */
     $cats = $this->GetSubdirs($this->curCatDir);
-
     $ret = array();
-
     if((in_array($id,array_flip($cats)))&&(count($cats)>1)){
       if(count($cats) == 2){
         $ret = array_reverse($cats);
@@ -128,8 +125,6 @@ class appgroup extends plugin
           }
           $cnt ++;
         }
-          
-        
         if($hit == 0){ 
           $first  = array_slice($cats,0,0);
           $middle = array_slice($cats,0,2);
@@ -139,13 +134,6 @@ class appgroup extends plugin
           $middle = array_slice($cats,$hit,2);
           $last   = array_slice($cats,$hit+2,$cnt);
         }
-/*        print "first";
-        print_a($first);
-        print "middle";
-        print_a($middle);
-        print "last";
-        print_a($last);
-*/
         foreach($first as $cat => $name){
           $ret[$cat]=$name;
         }
@@ -156,15 +144,12 @@ class appgroup extends plugin
           $ret[$cat]=$name;
         }
       }
-
-
       foreach($cats as $cat => $name){
         unset($this->Categories[$cat]);
       }
       foreach($ret as $cat => $name){
         $this->Categories[$cat]=$name;
       }
-      
     }
   }
 
@@ -285,11 +270,6 @@ class appgroup extends plugin
     if($found){
       $this->gosaMemberApplication[$this->curCatDir]=$tmp;
     }
-    return;
-    $cat = $this->curCatDir;
-    $cnt = count($this->gosaMemberApplication[$cat]);
-    $tmp = array("App" => "__SEPARATOR__".($cnt+1));
-    $this->gosaMemberApplication[$cat][] = $tmp;
   }
 
   function execute()