|
$maintitle $number $title2
|
$filetitle |
$title3 |
STAT_HEAD;
}
function statEntry ($name, $number) {
echo <<
|
$name
|
$number
|
STAT_LINE;
}
function view (&$downloads, &$ratings, &$votes, $files, $containers) {
$this->formStart(_DOWN_STATS_TITLE.sprintf(" (%s %s, %s %s)",$files, _DOWN_FILES, $containers, _DOWN_CONTAINERS));
echo "\n\t";
$this->statHeader(_DOWN_DOWNLOADS_SORT, _DOWN_DOWNLOADS_SORT);
?>
statEntry ($download->filetitle, $download->downloads);
}
echo '| |
';
$this->statHeader (_DOWN_RATED_TITLE, _DOWN_RATING_TITLE);
for ($i=0, $n=count( $ratings ); $i < $n; $i++) {
$rate=split(",", $ratings[$i]);
$this->statEntry ($rate[0], $rate[1]);
}
echo '| |
';
$this->statHeader (_DOWN_VOTED_ON, _DOWN_VOTES_TITLE);
for ($i=0, $n=count( $votes ); $i < $n; $i++) {
$vote=split(",", $votes[$i]);
$this->statEntry ($vote[0], $vote[1]);
}
echo <<
|
END_STATS;
}
}
?>