Commit 84f08cf8 authored by Andrea Scarpino's avatar Andrea Scarpino Committed by Loui Chang
Browse files

Add 'Out of Date' detail in search form



Signed-off-by: default avatarLoui Chang <louipc.ist@gmail.com>
parent 710ff234
......@@ -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; ?>
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment