diff options
author | Paul S. Owen <psotfx@users.sourceforge.net> | 2001-11-16 00:20:43 +0000 |
---|---|---|
committer | Paul S. Owen <psotfx@users.sourceforge.net> | 2001-11-16 00:20:43 +0000 |
commit | 19ad65699079602599657ced2c0674effe54b037 (patch) | |
tree | 713bf0a646143d74409c89e2ca5ff24146558c7c | |
parent | e25d8550f8d9fdc5a71f68167626be313f0e1917 (diff) | |
download | forums-19ad65699079602599657ced2c0674effe54b037.tar forums-19ad65699079602599657ced2c0674effe54b037.tar.gz forums-19ad65699079602599657ced2c0674effe54b037.tar.bz2 forums-19ad65699079602599657ced2c0674effe54b037.tar.xz forums-19ad65699079602599657ced2c0674effe54b037.zip |
Pagination update
git-svn-id: file:///svn/phpbb/trunk@1330 89ea8834-ac86-4346-8a33-228a782c2dd0
-rw-r--r-- | phpBB/search.php | 5 | ||||
-rw-r--r-- | phpBB/templates/subSilver/search_results_posts.tpl | 6 | ||||
-rw-r--r-- | phpBB/templates/subSilver/search_results_topics.tpl | 6 |
3 files changed, 5 insertions, 12 deletions
diff --git a/phpBB/search.php b/phpBB/search.php index d32ed4b959..9ca2e19124 100644 --- a/phpBB/search.php +++ b/phpBB/search.php @@ -1056,11 +1056,8 @@ else if( $query_keywords != "" || $query_author != "" || $search_id ) $template->assign_vars(array( "PAGINATION" => generate_pagination($base_url, $total_match_count, $per_page, $start), - "ON_PAGE" => floor( $start / $per_page ) + 1, - "TOTAL_PAGES" => ceil( $total_match_count / $per_page ), + "PAGE_NUMBER" => sprintf($lang['Page_of'], ( floor( $start / $per_page ) + 1 ), ceil( $total_match_count / $per_page )), - "L_OF" => $lang['of'], - "L_PAGE" => $lang['Page'], "L_GOTO_PAGE" => $lang['Goto_page']) ); diff --git a/phpBB/templates/subSilver/search_results_posts.tpl b/phpBB/templates/subSilver/search_results_posts.tpl index 8136106994..0a500cdba8 100644 --- a/phpBB/templates/subSilver/search_results_posts.tpl +++ b/phpBB/templates/subSilver/search_results_posts.tpl @@ -39,10 +39,8 @@ </table> <table width="100%" cellspacing="2" border="0" align="center" cellpadding="2"> <tr> - <td align="left" valign="top"><span class="nav"> {L_PAGE} <b>{ON_PAGE}</b> - {L_OF} <b>{TOTAL_PAGES}</b></span></td> - <td align="right" valign="top" nowrap="nowrap"><span class="nav">{PAGINATION}</span><span class="gensmall"><br /> - {S_TIMEZONE}</span></td> + <td align="left" valign="top"><span class="nav">{PAGE_NUMBER}</span></td> + <td align="right" valign="top" nowrap="nowrap"><span class="nav">{PAGINATION}</span><br /><span class="gensmall">{S_TIMEZONE}</span></td> </tr> </table> <table width="100%" cellspacing="2" border="0" align="center"> diff --git a/phpBB/templates/subSilver/search_results_topics.tpl b/phpBB/templates/subSilver/search_results_topics.tpl index 7cbb17acb9..b1df6c5240 100644 --- a/phpBB/templates/subSilver/search_results_topics.tpl +++ b/phpBB/templates/subSilver/search_results_topics.tpl @@ -43,10 +43,8 @@ </table> <table width="100%" cellspacing="2" border="0" align="center" cellpadding="2"> <tr> - <td align="left" valign="top"><span class="nav"> {L_PAGE} <b>{ON_PAGE}</b> - {L_OF} <b>{TOTAL_PAGES}</b></span></td> - <td align="right" valign="top" nowrap="nowrap"><span class="nav">{PAGINATION}</span><span class="gensmall"><br /> - {S_TIMEZONE}</span></td> + <td align="left" valign="top"><span class="nav">{PAGE_NUMBER}</span></td> + <td align="right" valign="top" nowrap="nowrap"><span class="nav">{PAGINATION}</span><br /><span class="gensmall">{S_TIMEZONE}</span></td> </tr> </table> <table width="100%" cellspacing="2" border="0" align="center"> |