// void mkrespercent(int[char*] counts, int total, bool showTotals); // void mkresrank(int[char*] counts, int total, bool showTotals); // void mkrescount(int[char*] counts, int total, bool showTotals); // void mkreslist(int[char*] counts, int total, bool showTotals); // void mkresavg(int[char*] counts, int total, bool showTotals); /* {{{ proto void mkrespercent(array weights, int total, int precision, bool show_totals) Builds HTML showing PERCENTAGE results. */ function mkrespercent($counts,$total,$precision,$showTotals) { $i=0; $bg=''; ?> 0) { $percent = $num/$total*100.0; } else { $percent = 0; } if($percent > 100) { $percent = 100; } if($bg != $GLOBALS['ESPCONFIG']['bgalt_color1']) $bg = $GLOBALS['ESPCONFIG']['bgalt_color1']; else $bg = $GLOBALS['ESPCONFIG']['bgalt_color2']; ?> 0) { $percent = $i/$total*100.0; } else { $percent = 0; } if($percent > 100) { $percent = 100; } if($bg != $GLOBALS['ESPCONFIG']['bgalt_color1']) $bg = $GLOBALS['ESPCONFIG']['bgalt_color1']; else $bg = $GLOBALS['ESPCONFIG']['bgalt_color2']; ?>
"); printf("",$percent*2); echo(" ()
 "); printf("",$percent*2); echo("
     
()
(%)
(%)
\n"); } ?>
$num$text
". ++$i ."\n"); ?>
  '); if (($j = $avg * $width - 11) > 0) printf('', $j); echo(''); } ?> ()