From 323ea50a9c89d14281b7057cb07651a210c4005e Mon Sep 17 00:00:00 2001 From: janw Date: Thu, 14 May 2009 12:47:01 +0000 Subject: [PATCH] Fix progressbar. git-svn-id: https://oss.gonicus.de/repositories/gosa/trunk@13650 594d385d-05f5-0310-b6e9-bd551577e9d8 --- gosa-core/include/functions.inc | 35 +-------------------------------- 1 file changed, 1 insertion(+), 34 deletions(-) diff --git a/gosa-core/include/functions.inc b/gosa-core/include/functions.inc index c630642e2..ce88fdc4b 100644 --- a/gosa-core/include/functions.inc +++ b/gosa-core/include/functions.inc @@ -1981,40 +1981,7 @@ function compare_revision($revision_file, $revision) function progressbar($percentage,$width=100,$height=15,$showvalue=false) { - $str = ""; // Our return value will be saved in this var - - $color = dechex($percentage+150); - $color2 = dechex(150 - $percentage); - $bgcolor= $showvalue?"FFFFFF":"DDDDDD"; - - $progress = (int)(($percentage /100)*$width); - - /* If theres a better solution for this, use it... */ - $str = "\n
"; - - $str.= "\n
"; - - if(($height >10)&&($showvalue)){ - $str.= "\n "; - $str.= "\n ".$percentage."% "; - $str.= "\n "; - } - - $str.= "\n
"; - $str.= "\n
"; - $str.= "\n
"; - $str.= "\n
"; - - return($str); + return(""); } -- 2.30.2