mirror of
https://gitlab.archlinux.org/archlinux/aurweb.git
synced 2025-02-03 10:43:03 +01:00
Add 'Out of Date' detail in search form
Signed-off-by: Loui Chang <louipc.ist@gmail.com>
This commit is contained in:
parent
710ff234fb
commit
84f08cf82b
2 changed files with 12 additions and 0 deletions
|
@ -449,6 +449,10 @@ function pkg_search_page($SID="") {
|
|||
$q.= "AND MaintainerUID = 0 ";
|
||||
}
|
||||
|
||||
if (isset($_GET['outdated'])) {
|
||||
$q .= "AND OutOfDate = 1 ";
|
||||
}
|
||||
|
||||
$order = $_GET["SO"] == 'd' ? 'DESC' : 'ASC';
|
||||
|
||||
switch ($_GET["SB"]) {
|
||||
|
|
|
@ -120,6 +120,14 @@
|
|||
?>
|
||||
</select>
|
||||
</li>
|
||||
<li>
|
||||
<label><?php echo __('Out of Date'); ?></label>
|
||||
<?php if (isset($_GET['outdated'])): ?>
|
||||
<input type="checkbox" name="outdated" checked />
|
||||
<?php else: ?>
|
||||
<input type="checkbox" name="outdated" />
|
||||
<?php endif; ?>
|
||||
</li>
|
||||
</ul>
|
||||
</div>
|
||||
<?php endif; ?>
|
||||
|
|
Loading…
Add table
Reference in a new issue