diff options
author | Loui Chang <louipc.ist@gmail.com> | 2009-02-07 00:22:37 +0100 |
---|---|---|
committer | Loui Chang <louipc.ist@gmail.com> | 2009-02-07 00:24:04 +0100 |
commit | 8d16f647f90572039236c8da428cb1cf25b96a1e (patch) | |
tree | 4ecf90668cc3d3ed51b4bbf8ffcaa39c6bddd8c9 | |
parent | 5702137e67d42520821c5c569473988f6862a7d9 (diff) | |
download | aur-8d16f647f90572039236c8da428cb1cf25b96a1e.tar.gz aur-8d16f647f90572039236c8da428cb1cf25b96a1e.tar.xz |
Clean up some markup and styles in page navigation.
Signed-off-by: Loui Chang <louipc.ist@gmail.com>
-rw-r--r-- | web/html/css/arch.css | 13 | ||||
-rw-r--r-- | web/template/pkg_search_results.php | 15 |
2 files changed, 19 insertions, 9 deletions
diff --git a/web/html/css/arch.css b/web/html/css/arch.css index 80bbc924..4c128fa7 100644 --- a/web/html/css/arch.css +++ b/web/html/css/arch.css @@ -457,4 +457,15 @@ textarea.vLargeTextField { padding: 2px; color: #0771a6; } -#pages #page_sel { color: #555; } + +#pages .page_num:hover { + border: 1px solid #8faecd; + color: #333; +} + +#pages #page_sel { + border: 1px solid #8faecd; + padding: 2px; + color: #333; + font-weight: bold; +} diff --git a/web/template/pkg_search_results.php b/web/template/pkg_search_results.php index 736823a7..1ea5928f 100644 --- a/web/template/pkg_search_results.php +++ b/web/template/pkg_search_results.php @@ -117,7 +117,7 @@ for ($i = 0; $row = mysql_fetch_assoc($result); $i++) { </span></span> <br /> - <div id="pages"> + <div id="pages"> <?php if ($_GET['O'] > 0): $O = $_GET['O'] - $_GET['PP']; @@ -126,7 +126,7 @@ for ($i = 0; $row = mysql_fetch_assoc($result); $i++) { $O = 0; } ?> - <a href="packages.php?<?php print mkurl("O=$O") ?>"><?php echo '< ' . __('Previous') ?></a> + <a class="page_num" href="packages.php?<?php print mkurl("O=$O") ?>"><?php echo __('Previous') ?></a> <?php endif; ?> <?php @@ -156,17 +156,16 @@ for ($i = 0; $row = mysql_fetch_assoc($result); $i++) { if ($i <> $currentpage) : ?> - <a href='packages.php?<?php print mkurl('O=' . ($pagestart))?>'><span class="page_num"><?php print "$i" ?></span></a> - <?php else : print '<span class="page_sel"><b>'.$i.'</b></span> '; + <a class="page_num" href="packages.php?<?php print mkurl('O=' . ($pagestart)) ?>"><?php echo $i ?></a> + <?php else : echo "<span id=\"page_sel\">$i</span>"; endif; } - print ($pages > $morepages) ? '...' : ''; - - ?> + print ($pages > $morepages) ? '...' : ''; + ?> <?php if ($total - $_GET['PP'] - $_GET['O'] > 0): ?> - <a href='packages.php?<?php print mkurl('O=' . ($_GET['O'] + $_GET['PP'])) ?>'><?php echo __('Next') . ' >' ?></a> + <a class="page_num" href='packages.php?<?php print mkurl('O=' . ($_GET['O'] + $_GET['PP'])) ?>'><?php echo __('Next') ?></a> <?php endif; ?> </div> |