diff options
Diffstat (limited to 'web/template')
-rw-r--r-- | web/template/pkg_search_form.php | 4 | ||||
-rw-r--r-- | web/template/pkg_search_results.php | 13 |
2 files changed, 10 insertions, 7 deletions
diff --git a/web/template/pkg_search_form.php b/web/template/pkg_search_form.php index 3f90088..49ca876 100644 --- a/web/template/pkg_search_form.php +++ b/web/template/pkg_search_form.php @@ -30,7 +30,7 @@ $orderby = array( 'd' => __('Descending') ); -$pages = array(50, 100, 250); +$per_page = array(50, 100, 250); ?> <div id="pkglist-search" class="box filter-criteria"> @@ -109,7 +109,7 @@ $pages = array(50, 100, 250); <div> <label for="id_per_page"><?php print __("Per page"); ?></label> <select name='PP'> - <?php foreach ($pages as $i): ?> + <?php foreach ($per_page as $i): ?> <?php if (isset($_REQUEST['PP']) && $_REQUEST['PP'] == $i): ?> <option value="<?php print $i; ?>" selected="selected"><?php print $i; ?></option> <?php else: ?> diff --git a/web/template/pkg_search_results.php b/web/template/pkg_search_results.php index 11db7a1..13e0b44 100644 --- a/web/template/pkg_search_results.php +++ b/web/template/pkg_search_results.php @@ -11,8 +11,9 @@ if (!$result): ?> <div class="box"><p><?php echo __("No packages matched your search criteria.") ?></p></div> <?php else: ?> <div id="pkglist-results" class="box"> - <div id="pkglist-stats-top"> - <p><?php echo __('%s Packages found. Showing %s - %s', $total, $first, $last) ?></p> + <div class="pkglist-stats"> + <p><?php echo __('%d packages found. Page %d of %d.', $total, $current, $pages) ?></p> + <?php if (count($templ_pages) > 1): ?> <p class="pkglist-nav"> <?php foreach ($templ_pages as $pagenr => $pagestart): ?> <?php if ($pagestart === false): ?> @@ -24,6 +25,7 @@ if (!$result): ?> <?php endif; ?> <?php endforeach; ?> </p> + <?php endif; ?> </div> <form id="pkglist-results-form" method="post" action="<?php echo get_uri('/packages/'); ?>?<?php echo htmlentities($_SERVER['QUERY_STRING']) ?>"> @@ -80,9 +82,9 @@ if (!$result): ?> </tbody> </table> - <div id="pkglist-stats-bottom"> - <p><?php echo __('%s Packages found. Showing %s - %s', $total, $first, $last) ?></p> - + <div class="pkglist-stats"> + <p><?php echo __('%d packages found. Page %d of %d.', $total, $current, $pages) ?></p> + <?php if (count($templ_pages) > 1): ?> <p class="pkglist-nav"> <?php foreach ($templ_pages as $pagenr => $pagestart): ?> <?php if ($pagestart === false): ?> @@ -94,6 +96,7 @@ if (!$result): ?> <?php endif; ?> <?php endforeach; ?> </p> + <?php endif; ?> </div> <?php if ($SID): ?> |