diff options
author | Lukas Fleischer <archlinux@cryptocrack.de> | 2012-09-19 02:42:01 +0200 |
---|---|---|
committer | Lukas Fleischer <archlinux@cryptocrack.de> | 2012-09-19 02:42:01 +0200 |
commit | 4aad42d993619d03040d1a96d133c7784aa4bc28 (patch) | |
tree | c23f89412ac2ec93a16889b4addedf0c1575a930 /web/template/pkg_search_form.php | |
parent | 7c004693f720eafd3013119bb290cbd5ccdbda60 (diff) |
Sync search result statistics with archweb
* Use archweb classes for search result statistics.
* Add some space between page numbers.
* Display current page number instead of current item range.
* Hide page numbers if the result fits into a single page.
Signed-off-by: Lukas Fleischer <archlinux@cryptocrack.de>
Diffstat (limited to 'web/template/pkg_search_form.php')
-rw-r--r-- | web/template/pkg_search_form.php | 4 |
1 files changed, 2 insertions, 2 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: ?> |