Code

Some style fixes for divSel lists
authorhickert <hickert@594d385d-05f5-0310-b6e9-bd551577e9d8>
Fri, 11 Nov 2005 08:47:43 +0000 (08:47 +0000)
committerhickert <hickert@594d385d-05f5-0310-b6e9-bd551577e9d8>
Fri, 11 Nov 2005 08:47:43 +0000 (08:47 +0000)
git-svn-id: https://oss.gonicus.de/repositories/gosa/trunk@1917 594d385d-05f5-0310-b6e9-bd551577e9d8

plugins/gofax/faxaccount/class_gofaxAccount.inc

index 1bf67f713d7de80be482f8fc5fc3db230a372a7a..70cbdf9ba7d83cd07ca92f3a5615cde7bb8d21b3 100644 (file)
@@ -407,7 +407,7 @@ class gofaxAccount extends plugin
 
       $base_back = preg_replace("/^[^,]+,/","",$base);
     
-      if(strlen($base_back)>= strlen($this->config->current['BASE'])){
+      if((strlen($base_back)>= strlen($this->config->current['BASE']))&&($base!=$this->config->current['BASE'])){
         $this->departments[preg_replace("/^[^,]+,/","",$base)] = ".. - ["._("back")."]"; 
       }
       while($value = $ldap->fetch()){
@@ -431,14 +431,13 @@ class gofaxAccount extends plugin
         }
 
         $field1 = array("string" => "<img src='images/folder.png' alt='department'>","attach"=>"style='width:16px;text-align:center;'");
-        $field2 = array("string" => sprintf($linkopen,base64_encode($key),$val),"attach"=>" colspan=2 style='border:none'");
+        $field2 = array("string" => sprintf($linkopen,base64_encode($key),$val),"attach"=>" style='border:none'");
         $divSel->AddEntry(array($field1,$field2));
       }
 
       foreach($list as $entry => $value){
         $divSel->AddEntry(array(
                             array("string"=>"<input type='checkbox' value='".base64_encode($entry)."' name='ADDLIST_".base64_encode($entry)."'>"),
-                            array("string"=>$entry),
                             array("string"=>$value,"attach"=>"style='border:0px;'")
                             ));
       }
@@ -491,7 +490,7 @@ class gofaxAccount extends plugin
 
       $base_back = preg_replace("/^[^,]+,/","",$base);
 
-      if(strlen($base_back)>= strlen($this->config->current['BASE'])){
+      if((strlen($base_back)>= strlen($this->config->current['BASE']))&&($base!=$this->config->current['BASE'])){
         $this->departments[preg_replace("/^[^,]+,/","",$base)] = ".. - ["._("back")."]";
       }
       while($value = $ldap->fetch()){
@@ -514,14 +513,13 @@ class gofaxAccount extends plugin
         }
 
         $field1 = array("string" => "<img src='images/folder.png' alt='department'>","attach"=>"style='width:16px;text-align:center;'");
-        $field2 = array("string" => sprintf($linkopen,base64_encode($key),$val),"attach"=>" colspan=2 style='border:none'");
+        $field2 = array("string" => sprintf($linkopen,base64_encode($key),$val),"attach"=>" style='border:none'");
         $divSel->AddEntry(array($field1,$field2));
       }
 
       foreach($list as $entry => $value){
         $divSel->AddEntry(array(
               array("string"=>"<input type='checkbox' value='".base64_encode($entry)."' name='ADDLIST_".base64_encode($entry)."'>"),
-              array("string"=>$entry),
               array("string"=>$value,"attach"=>"style='border:0px;'")
               ));
       }