mirror of
https://gitlab.archlinux.org/archlinux/aurweb.git
synced 2025-02-03 10:43:03 +01:00
Clean up some markup and styles in page navigation.
Signed-off-by: Loui Chang <louipc.ist@gmail.com>
This commit is contained in:
parent
5702137e67
commit
8d16f647f9
2 changed files with 19 additions and 9 deletions
|
@ -457,4 +457,15 @@ textarea.vLargeTextField {
|
||||||
padding: 2px;
|
padding: 2px;
|
||||||
color: #0771a6;
|
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;
|
||||||
|
}
|
||||||
|
|
|
@ -117,7 +117,7 @@ for ($i = 0; $row = mysql_fetch_assoc($result); $i++) {
|
||||||
</span></span>
|
</span></span>
|
||||||
<br />
|
<br />
|
||||||
|
|
||||||
<div id="pages">
|
<div id="pages">
|
||||||
<?php
|
<?php
|
||||||
if ($_GET['O'] > 0):
|
if ($_GET['O'] > 0):
|
||||||
$O = $_GET['O'] - $_GET['PP'];
|
$O = $_GET['O'] - $_GET['PP'];
|
||||||
|
@ -126,7 +126,7 @@ for ($i = 0; $row = mysql_fetch_assoc($result); $i++) {
|
||||||
$O = 0;
|
$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 endif; ?>
|
||||||
|
|
||||||
<?php
|
<?php
|
||||||
|
@ -156,17 +156,16 @@ for ($i = 0; $row = mysql_fetch_assoc($result); $i++) {
|
||||||
|
|
||||||
if ($i <> $currentpage) :
|
if ($i <> $currentpage) :
|
||||||
?>
|
?>
|
||||||
<a href='packages.php?<?php print mkurl('O=' . ($pagestart))?>'><span class="page_num"><?php print "$i" ?></span></a>
|
<a class="page_num" href="packages.php?<?php print mkurl('O=' . ($pagestart)) ?>"><?php echo $i ?></a>
|
||||||
<?php else : print '<span class="page_sel"><b>'.$i.'</b></span> ';
|
<?php else : echo "<span id=\"page_sel\">$i</span>";
|
||||||
endif;
|
endif;
|
||||||
}
|
}
|
||||||
|
|
||||||
print ($pages > $morepages) ? '...' : '';
|
print ($pages > $morepages) ? '...' : '';
|
||||||
|
?>
|
||||||
?>
|
|
||||||
|
|
||||||
<?php if ($total - $_GET['PP'] - $_GET['O'] > 0): ?>
|
<?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; ?>
|
<?php endif; ?>
|
||||||
|
|
||||||
</div>
|
</div>
|
||||||
|
|
Loading…
Add table
Reference in a new issue