From e838750ee4616695dfc4f441651e88619b4ed2cc Mon Sep 17 00:00:00 2001 From: hickert Date: Fri, 25 Jul 2008 11:47:41 +0000 Subject: [PATCH] Updated progress bar - was broken in Firefox 3.0 git-svn-id: https://oss.gonicus.de/repositories/gosa/trunk@12047 594d385d-05f5-0310-b6e9-bd551577e9d8 --- gosa-core/include/functions.inc | 50 ++++++++++++++++----------------- 1 file changed, 24 insertions(+), 26 deletions(-) diff --git a/gosa-core/include/functions.inc b/gosa-core/include/functions.inc index b8825130b..c82008207 100644 --- a/gosa-core/include/functions.inc +++ b/gosa-core/include/functions.inc @@ -1980,34 +1980,32 @@ function progressbar($percentage,$width=100,$height=15,$showvalue=false) $progress = (int)(($percentage /100)*$width); - /* Abort printing out percentage, if divs are to small */ - - /* If theres a better solution for this, use it... */ - $str = " -
- -
- -
"; + $str = "\n
"; + + $str.= "\n
"; + + if(($height >10)&&($showvalue)){ + $str.= "\n "; + $str.= "\n ".$percentage."% "; + $str.= "\n "; + } + + $str.= "\n
"; + $str.= "\n
"; + $str.= "\n
"; + $str.= "\n
"; - - if(($height >10)&&($showvalue)){ - $str.= " - ".$percentage."% - "; - } - - $str.= "
"; - - return($str); + return($str); } -- 2.30.2