From: hickert Date: Fri, 25 Jul 2008 11:47:41 +0000 (+0000) Subject: Updated progress bar X-Git-Url: https://git.tokkee.org/?a=commitdiff_plain;h=e838750ee4616695dfc4f441651e88619b4ed2cc;p=gosa.git 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 --- 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); }