|
@@ 142-146 (lines=5) @@
|
| 139 |
|
$counter = 1; |
| 140 |
|
$current_page = (int)floor(($this->current + $this->perpage) / $this->perpage); |
| 141 |
|
while ($counter <= $total_pages) { |
| 142 |
|
if ($counter == $current_page) { |
| 143 |
|
$ret .= '<option value="' . $this->url . (($counter - 1) * $this->perpage) . '" selected="selected">' . $counter . '</option>'; |
| 144 |
|
} else { |
| 145 |
|
$ret .= '<option value="' . $this->url . (($counter - 1) * $this->perpage) . '">' . $counter . '</option>'; |
| 146 |
|
} |
| 147 |
|
++$counter; |
| 148 |
|
} |
| 149 |
|
$ret .= '</select>'; |
|
@@ 185-189 (lines=5) @@
|
| 182 |
|
} else { |
| 183 |
|
$title = $counter; |
| 184 |
|
} |
| 185 |
|
if ($counter == $current_page) { |
| 186 |
|
$ret .= '<option value="' . $this->url . (($counter - 1) * $this->perpage) . '" selected="selected">' . $title . '</option>'; |
| 187 |
|
} else { |
| 188 |
|
$ret .= '<option value="' . $this->url . (($counter - 1) * $this->perpage) . '">' . $title . '</option>'; |
| 189 |
|
} |
| 190 |
|
++$counter; |
| 191 |
|
} |
| 192 |
|
$ret .= '</select>'; |