2011-11-30 Sergio Martin <sergio.martin@artica.es>

* include/graphs/functions_gd.php: Fixed rounded corners 
	progress bar whit mode=1 and ratio < 30



git-svn-id: https://svn.code.sf.net/p/pandora/code/trunk@5213 c3f86ba8-e40f-0410-aaad-9ba5e7f4b01f
This commit is contained in:
zarzuelo 2011-11-30 14:30:09 +00:00
parent 4a0d1a10e0
commit b1c89b36ed
2 changed files with 10 additions and 2 deletions

View File

@ -1,3 +1,8 @@
2011-11-30 Sergio Martin <sergio.martin@artica.es>
* include/graphs/functions_gd.php: Fixed rounded corners
progress bar whit mode=1 and ratio < 30
2011-11-30 Juan Manuel Ramon <juanmanuel.ramon@artica.es>
* include/ajax/agent.php

View File

@ -229,9 +229,12 @@ function gd_progress_bar ($width, $height, $progress, $title, $font, $out_of_lim
ImageRectangleWithRoundedCorners($image, $x1, $y1, $x2, $y2, $radius,$red);
elseif ($rating == 100)
ImageRectangleWithRoundedCorners($image, $x1, $y1, $x2, $y2, $radius,$green);
else
else if($rating > 0){
if($radius != 0 && $rating < 30) {
$x2 = $ratingbar30;
}
ImageRectangleWithRoundedCorners($image, $x1, $y1, $x2, $y2, $radius,$blue);
}
if ($rating > 50)
if ($rating > 100)