Jeremy D commited on 2011-10-27 14:37:58
Showing 3 changed files, with 3 additions and 3 deletions.
... | ... |
@@ -257,7 +257,7 @@ function shd_search2() |
257 | 257 |
{ |
258 | 258 |
$context['search_params']['start'] = $count - ($count % $number_per_page); |
259 | 259 |
$context['pagenum'] = ($context['search_params']['start'] / $number_per_page) + 1; |
260 |
- $context['num_results'] = $count); |
|
260 |
+ $context['num_results'] = $count; |
|
261 | 261 |
} |
262 | 262 |
|
263 | 263 |
$query = shd_db_query('', ' |
... | ... |
@@ -416,7 +416,7 @@ function shd_search2() |
416 | 416 |
{ |
417 | 417 |
$context['search_params']['start'] = $count - ($count % $number_per_page); |
418 | 418 |
$context['pagenum'] = ($context['search_params']['start'] / $number_per_page) + 1; |
419 |
- $context['num_results'] = $count); |
|
419 |
+ $context['num_results'] = $count; |
|
420 | 420 |
} |
421 | 421 |
|
422 | 422 |
// Get the results for displaying. |
... | ... |
@@ -322,7 +322,7 @@ function template_search_results() |
322 | 322 |
// Page navigation. It's not your usual page index, and with good reason: we can't use regular links here without risking server hammering. |
323 | 323 |
$num_pages = ceil($context['num_results'] / $context['search_params']['limit']); |
324 | 324 |
$pages = array(); |
325 |
- foreach ($page = $context['numpage'] - 2; $page <= $context['numpage'] + 2; $page++) |
|
325 |
+ for ($page = $context['numpage'] - 2; $page <= $context['numpage'] + 2; $page++) |
|
326 | 326 |
$pages[] = $page; |
327 | 327 |
|
328 | 328 |
// The rest of it would go here, in a nice form that carried everything through for next time, with a button named page whose value would be the page number for each page (plus prev/next) you wanted to display |
329 | 329 |