diff --git a/core/attributedef/AttributePercentage.php b/core/attributedef/AttributePercentage.php new file mode 100644 index 000000000..c069a51a3 --- /dev/null +++ b/core/attributedef/AttributePercentage.php @@ -0,0 +1,53 @@ + 100) { + $iValue = 100; + } else { + if ($iValue < 0) { + $iValue = 0; + } + } + if ($iValue > 90) { + $sColor = "#cc3300"; + } else { + if ($iValue > 50) { + $sColor = "#cccc00"; + } else { + $sColor = "#33cc00"; + } + } + $iPercentWidth = ($iWidth * $iValue) / 100; + + return "