"; echo ""; echo ""; echo ""; echo ""; $td_width = round(100/$file, 0); /* round for '); } // end for echo ""; if($empt == 0) { echo ""; } echo "
 
".$title; echo "
*/ $min = $full; $max = 0; $php_for = count($get)-1; for($x=1; $x<=$php_for; $x++) { if($get[$x] > $max) $max = $get[$x]; if($get[$x] < $min) $min = $get[$x]; } for($n=0; $n<$file; $n++) { # if($plus == 0) $k = $n; else $k = $n+1; # if(!empty($max)) // so height $p_round = round((200*$get[$n+1]/$max)); else $p_round = 1; echo (''.$top.'
'); # if($k <= $php_for) echo ('\''.$top.'\'
'); # if($k == $php_for) echo ($text); else echo ($text); # if($bott_php == 1) echo ('
'.$bp); echo ('
 
"; if($empt == 1) maximal($max, $min, $file, $get[0], $maxtext, $avgtext, $mintext, $footer); echo ""; echo " "; echo ""; echo ""; } function maximal($max, $min, $paul, $paula, $maxtext, $avgtext, $mintext, $footer) { if(empty($max)) $max = 0; if(empty($min)) $min = 0; if(empty($paula)) $paula = 0; if(!empty($paul)) $p_round = round($paula/$paul); else $p_round = 0; echo ('
'); echo ($footer.': '.$paula.' | '); echo ($maxtext.': '.$max.' | '); echo ($avgtext.': '.$p_round.' | '); echo ($mintext.': '.$min); echo ('
'); } // MC0409 END - Matthew Chin ?>