~;
for($i=0;$i<$pstmem;$i++) {
$x = $i+1;
chomp(@SortAList);
($shposts[$i], $shname[$i], $usname[$i]) = split(/\|/, $SortAList[$i]);
$total_topposts = $total_topposts + $shposts[$i];
$Bar = "";
$barchart = ($shposts[$i]);
$bartemp = ($shposts[$i] * 100);
$barwidth = ($bartemp / $shposts[0]);
$barwidth = ($barwidth + 0.5);
$barwidth = int($barwidth);
if($barwidth > 100) {$barwidth = 100}
if ($barwidth < 1) {$Bar = "$Bar";}
else {
$Bar = qq~ ~;
}
if ($Bar eq "") { $Bar=" "; }
&LoadUser($usname[$i]);
$yymain .= qq~
| $x. |
$shname[$i] |
$shposts[$i] |
$Bar |
~;
}
if ($total_posts > 0) { $tmp_pct = ($total_topposts * 100) / $total_posts; } else { $tmp_pct = 0; }
$top_pct = sprintf ("%.2f", $tmp_pct);
$yymain .= qq~
|
$pstmem $txt{'314'}:
- $total_topposts $txt{'86'}
- $top_pct% $txt{'309'} $txt{'190'} $txt{'86'}
|