From 6d28c60d2a96d17539c2cd4274447d54166e06ef Mon Sep 17 00:00:00 2001 From: hickert Date: Tue, 17 Apr 2007 09:00:00 +0000 Subject: [PATCH] Fixed w3c warning for missing id tag git-svn-id: https://oss.gonicus.de/repositories/gosa/trunk@6064 594d385d-05f5-0310-b6e9-bd551577e9d8 --- include/class_MultiSelectWindow.inc | 12 ++++++++++-- 1 file changed, 10 insertions(+), 2 deletions(-) diff --git a/include/class_MultiSelectWindow.inc b/include/class_MultiSelectWindow.inc index 2dac54752..5f23bdeb1 100644 --- a/include/class_MultiSelectWindow.inc +++ b/include/class_MultiSelectWindow.inc @@ -350,7 +350,7 @@ class MultiSelectWindow{ - @@ -597,7 +597,7 @@ class MultiSelectWindow{ /* this function adds the sub-departments of the current tree to the list */ - function AddDepartments($base = false,$numtabs = 3) + function AddDepartments($base = false,$numtabs = 3,$empty_tabs_in_front = 0) { $this->DepartmentsAdded = true; @@ -656,6 +656,14 @@ class MultiSelectWindow{ /* Add to divlist */ $row = array(); + + if($empty_tabs_in_front){ + for($i = 0; $i < $empty_tabs_in_front ; $i ++){ + $row[] = array("string"=>" ", "attach" => "style='text-align:center;width:20px;'"); + } + $numtabs -= $empty_tabs_in_front; + } + $row[]=$field1=array("string"=>"department","attach"=>"style='text-align:center;width:20px;'"); $row[]=$field2=array("string"=>sprintf($linkopen,base64_encode($key),$val), "attach" => "style=''"); -- 2.30.2