From: hickert Date: Fri, 11 Nov 2005 08:47:43 +0000 (+0000) Subject: Some style fixes for divSel lists X-Git-Url: https://git.tokkee.org/?a=commitdiff_plain;h=2a0a19181673a47465edf0732f03bb36dae013f1;p=gosa.git Some style fixes for divSel lists git-svn-id: https://oss.gonicus.de/repositories/gosa/trunk@1917 594d385d-05f5-0310-b6e9-bd551577e9d8 --- 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;'") )); }