From 2a0a19181673a47465edf0732f03bb36dae013f1 Mon Sep 17 00:00:00 2001 From: hickert Date: Fri, 11 Nov 2005 08:47:43 +0000 Subject: [PATCH] Some style fixes for divSel lists git-svn-id: https://oss.gonicus.de/repositories/gosa/trunk@1917 594d385d-05f5-0310-b6e9-bd551577e9d8 --- plugins/gofax/faxaccount/class_gofaxAccount.inc | 10 ++++------ 1 file changed, 4 insertions(+), 6 deletions(-) diff --git a/plugins/gofax/faxaccount/class_gofaxAccount.inc b/plugins/gofax/faxaccount/class_gofaxAccount.inc index 1bf67f713..70cbdf9ba 100644 --- a/plugins/gofax/faxaccount/class_gofaxAccount.inc +++ b/plugins/gofax/faxaccount/class_gofaxAccount.inc @@ -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" => "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"=>""), - 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" => "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"=>""), - array("string"=>$entry), array("string"=>$value,"attach"=>"style='border:0px;'") )); } -- 2.30.2