summary | shortlog | log | commit | commitdiff | tree
raw | patch | inline | side by side (parent: 2931429)
raw | patch | inline | side by side (parent: 2931429)
author | hickert <hickert@594d385d-05f5-0310-b6e9-bd551577e9d8> | |
Thu, 8 Dec 2005 12:09:52 +0000 (12:09 +0000) | ||
committer | hickert <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 | patch | blob | history | |
plugins/admin/groups/class_groupApplication.inc | patch | blob | history |
index e8703bf0441db5171f92d6b294327290a7252080..d3a5acf19517b8f1cbdae38124d97837e7c10831 100644 (file)
<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>
diff --git a/plugins/admin/groups/class_groupApplication.inc b/plugins/admin/groups/class_groupApplication.inc
index 59fb4d7ca1c03cb6b995207063ffc9162ca682e3..654f4de1854b08188d2ff1cd74ff2c50d3e8b061 100644 (file)
}
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);
}
$cnt ++;
}
-
-
if($hit == 0){
$first = array_slice($cats,0,0);
$middle = array_slice($cats,0,2);
$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;
}
$ret[$cat]=$name;
}
}
-
-
foreach($cats as $cat => $name){
unset($this->Categories[$cat]);
}
foreach($ret as $cat => $name){
$this->Categories[$cat]=$name;
}
-
}
}
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()