Fixed graph.

This commit is contained in:
Jeff Teunissen 2000-03-20 07:37:21 +00:00
parent 1fb41193cc
commit 34e5f5bdc8

View file

@ -38,22 +38,22 @@
$j = 100 - $newPct;
$result = '';
for ( ; $i >= 20 ; $i -= 20 ) {
$result .= '<IMG src="/img/graph/ProgressBar.20.white.gif" vAlign="top" width="50" height="10" border="0" alt=" ">';
$result .= '<IMG src="/img/graph/ProgressBar.20.white.gif" vAlign="center" width="50" height="10" border="0" alt=" ">';
}
for ( ; $i >= 10 ; $i -= 10 ) {
$result .= '<IMG src="/img/graph/ProgressBar.10.white.gif" vAlign="top" width="25" height="10" border="0" alt=" ">';
$result .= '<IMG src="/img/graph/ProgressBar.10.white.gif" vAlign="center" width="25" height="10" border="0" alt=" ">';
}
for ( ; $i >= 2 ; $i -= 2 ) {
$result .= '<IMG src="/img/graph/ProgressBar.2.white.gif" vAlign="top" width="5" height="10" border="0" alt=" ">';
$result .= '<IMG src="/img/graph/ProgressBar.2.white.gif" vAlign="center" width="5" height="10" border="0" alt=" ">';
}
for ( ; $j >= 20 ; $j -= 20 ) {
$result .= '<IMG src="/img/graph/ProgressBar.20.gray.gif" vAlign="top" width="50" height="10" border="0" alt=" ">';
$result .= '<IMG src="/img/graph/ProgressBar.20.gray.gif" vAlign="center" width="50" height="10" border="0" alt=" ">';
}
for ( ; $j >= 10 ; $j -= 10 ) {
$result .= '<IMG src="/img/graph/ProgressBar.10.gray.gif" vAlign="top" width="25" height="10" border="0" alt=" ">';
$result .= '<IMG src="/img/graph/ProgressBar.10.gray.gif" vAlign="center" width="25" height="10" border="0" alt=" ">';
}
for ( ; $j >= 2 ; $j -= 2 ) {
$result .= '<IMG src="/img/graph/ProgressBar.2.gray.gif" vAlign="top" width="5" height="10" border="0" alt=" ">';
$result .= '<IMG src="/img/graph/ProgressBar.2.gray.gif" vAlign="center" width="5" height="10" border="0" alt=" ">';
}
return $result;
}