diff --git a/web/html/css/arch.css b/web/html/css/arch.css
index da670eeb..80bbc924 100644
--- a/web/html/css/arch.css
+++ b/web/html/css/arch.css
@@ -451,3 +451,10 @@ textarea.vLargeTextField {
text-decoration: none;
}
+#pages { margin: 5px; }
+#pages .page_num {
+ border: 1px solid #ddd;
+ padding: 2px;
+ color: #0771a6;
+}
+#pages #page_sel { color: #555; }
diff --git a/web/template/pkg_search_results.php b/web/template/pkg_search_results.php
index 71b6a636..736823a7 100644
--- a/web/template/pkg_search_results.php
+++ b/web/template/pkg_search_results.php
@@ -116,6 +116,19 @@ for ($i = 0; $row = mysql_fetch_assoc($result); $i++) {
+
+
+ 0):
+ $O = $_GET['O'] - $_GET['PP'];
+
+ if ($_GET['O'] < $_GET['PP']) {
+ $O = 0;
+ }
+ ?>
+
">
+
+
0) {
$pages = ceil($total / $_GET['PP']);
@@ -131,6 +144,8 @@ for ($i = 0; $row = mysql_fetch_assoc($result); $i++) {
$morepages = $currentpage + 5;
+ print (($currentpage-5) > 1) ? '...' : '';
+
# Display links for more search results.
for ($i = ($currentpage - 5); $i <= $morepages && $i <= $pages; $i++) {
if ($i < 1) {
@@ -141,30 +156,21 @@ for ($i = 0; $row = mysql_fetch_assoc($result); $i++) {
if ($i <> $currentpage) :
?>
-
- [$i] ";
+
+
'.$i.' ';
endif;
}
- # Indicate that there are more pages.
- if ($pages > $morepages) {
- echo "
... ';
- }
+ print ($pages > $morepages) ? '...' : '';
- if ($_GET['O'] > 0):
- $O = $_GET['O'] - $_GET['PP'];
-
- if ($_GET['O'] < $_GET['PP']) {
- $O = 0;
- }
- ?>
-
">
-
+ ?>
0): ?>
-
'>
+
'>
+
+