From: hickert Date: Fri, 25 Jul 2008 11:46:49 +0000 (+0000) Subject: Fixed functions.inc: progressbar() X-Git-Url: https://git.tokkee.org/?a=commitdiff_plain;h=c5df7735cc6980c08b640aa70aa0a068a3bd844a;p=gosa.git Fixed functions.inc: progressbar() - Was broken in Firefox 3.x git-svn-id: https://oss.gonicus.de/repositories/gosa/branches/2.5@12046 594d385d-05f5-0310-b6e9-bd551577e9d8 --- diff --git a/include/functions.inc b/include/functions.inc index 6b55a0cf9..33b35839a 100644 --- a/include/functions.inc +++ b/include/functions.inc @@ -2079,34 +2079,33 @@ 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 "; + } - if(($height >10)&&($showvalue)){ - $str.= " - ".$percentage."% - "; - } - - $str.= "
"; + $str.= "\n
"; + $str.= "\n
"; + $str.= "\n
"; + $str.= "\n
"; - return($str); + return($str); }