summary | shortlog | log | commit | commitdiff | tree
raw | patch | inline | side by side (parent: aee6cc7)
raw | patch | inline | side by side (parent: aee6cc7)
author | cajus <cajus@594d385d-05f5-0310-b6e9-bd551577e9d8> | |
Mon, 13 Jun 2005 12:06:04 +0000 (12:06 +0000) | ||
committer | cajus <cajus@594d385d-05f5-0310-b6e9-bd551577e9d8> | |
Mon, 13 Jun 2005 12:06:04 +0000 (12:06 +0000) |
include/functions.inc | patch | blob | history |
diff --git a/include/functions.inc b/include/functions.inc
index f6bb3307ff2903e9b0dc37c045dc0444d1c6dd7f..d6ddf0694f2e90f5168da96acd50567da7fab52d 100644 (file)
--- a/include/functions.inc
+++ b/include/functions.inc
/* Configuration file location */
define ("CONFIG_DIR", "/etc/gosa");
define ("CONFIG_TEMPLATE_DIR", "../contrib/");
-define ("HELP_BASEDIR", "../doc/guide/admin/");
+define ("HELP_BASEDIR", "/home/cajus/");
/* Define globals for revision comparing */
$svn_path = '$HeadURL$';
$color = dechex($percentage+150);
$color2 = dechex(150 - $percentage);
+ $bgcolor= $showvalue?"FFFFFF":"DDDDDD";
$progress = (int)(($percentage /100)*$width);
padding:1px;\">
<div style=\" width:".($width)."px;
- background-color:#DDDDDD;
+ background-color:#$bgcolor;
height:".($height)."px;\">
<div style=\" width:".$progress."px;
if(($height >10)&&($showvalue)){
- $str.= "<font style=\"font-size:".($height-2)."px;color:#FF5555;align:middle;padding-left:".((int)(($width*0.4)))."px;\">
+ $str.= "<font style=\"font-size:".($height-2)."px;color:#FF0000;align:middle;padding-left:".((int)(($width*0.4)))."px;\">
<b>".$percentage."%</b>
</font>";
}
$str.= "</div></div></div>";
-
+
return($str);
}