|
@@ 131-135 (lines=5) @@
|
| 128 |
|
$counter = 1; |
| 129 |
|
$current_page = (int)floor(($this->current + $this->perpage) / $this->perpage); |
| 130 |
|
while ($counter <= $total_pages) { |
| 131 |
|
if ($counter == $current_page) { |
| 132 |
|
$ret .= '<option value="' . $this->url . (($counter - 1) * $this->perpage) . '" selected>' . $counter . '</option>'; |
| 133 |
|
} else { |
| 134 |
|
$ret .= '<option value="' . $this->url . (($counter - 1) * $this->perpage) . '">' . $counter . '</option>'; |
| 135 |
|
} |
| 136 |
|
++$counter; |
| 137 |
|
} |
| 138 |
|
$ret .= '</select>'; |
|
@@ 174-178 (lines=5) @@
|
| 171 |
|
} else { |
| 172 |
|
$title = $counter; |
| 173 |
|
} |
| 174 |
|
if ($counter == $current_page) { |
| 175 |
|
$ret .= '<option value="' . $this->url . (($counter - 1) * $this->perpage) . '" selected>' . $title . '</option>'; |
| 176 |
|
} else { |
| 177 |
|
$ret .= '<option value="' . $this->url . (($counter - 1) * $this->perpage) . '">' . $title . '</option>'; |
| 178 |
|
} |
| 179 |
|
++$counter; |
| 180 |
|
} |
| 181 |
|
$ret .= '</select>'; |