Hi,
I want to be statistic top1-topMAX on one page.
Not:
1-100
101-200
201-300
What file?
I edit stat.php and nothing.
Display All
I want to be statistic top1-topMAX on one page.
Not:
1-100
101-200
201-300
What file?
I edit stat.php and nothing.
PHP Source Code
- $SelectCount = doquery("SELECT COUNT(`id_owner`) AS `count` FROM {{table}} WHERE `stat_type` = {$who};", 'statpoints', true);
- $SelectCount = $SelectCount['count'];
- if($SelectCount > 100)
- {
- $LastPage = floor($SelectCount / 100);
- if($SelectCount / 100 == $LastPage)
- {
- $LastPage -= 1;
- }
- for($Page = 0; $Page <= $LastPage; $Page += 1)
- {
- $PageValue = ($Page * 100) + 1;
- if($Page == $LastPage)
- {
- $PageRange = $SelectCount;
- }
- else
- {
- $PageRange = $PageValue + 99;
- }
- $parse['range'] .= '<option value="'. $PageValue .'"'. (($range >= $PageValue AND $range <= $PageRange) ? ' selected' : '') .'>'. $PageValue .'-'. $PageRange .'</option>';
- }
- $parse['HideNoRangeSelector'] = 'display: none;';
- }
- else
- {
- $parse['HideRangeSelector'] = 'display: none;';
- $parse['MaxPlace'] = $SelectCount;
- }
- $range -= 1;
- $start = floor($range / 100) * 100;
- if($start == 0)
- {
- $start = '0';
- }