Add 'Out of Date' detail in search form

Signed-off-by: Loui Chang <louipc.ist@gmail.com>
This commit is contained in:
Andrea Scarpino 2009-02-15 23:22:33 +01:00 committed by Loui Chang
parent 710ff234fb
commit 84f08cf82b
2 changed files with 12 additions and 0 deletions

View file

@ -449,6 +449,10 @@ function pkg_search_page($SID="") {
$q.= "AND MaintainerUID = 0 "; $q.= "AND MaintainerUID = 0 ";
} }
if (isset($_GET['outdated'])) {
$q .= "AND OutOfDate = 1 ";
}
$order = $_GET["SO"] == 'd' ? 'DESC' : 'ASC'; $order = $_GET["SO"] == 'd' ? 'DESC' : 'ASC';
switch ($_GET["SB"]) { switch ($_GET["SB"]) {

View file

@ -120,6 +120,14 @@
?> ?>
</select> </select>
</li> </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> </ul>
</div> </div>
<?php endif; ?> <?php endif; ?>