From 84f08cf82b5d35376df4287daca07eb9538c2d76 Mon Sep 17 00:00:00 2001 From: Andrea Scarpino Date: Sun, 15 Feb 2009 23:22:33 +0100 Subject: Add 'Out of Date' detail in search form Signed-off-by: Loui Chang --- web/lib/pkgfuncs.inc | 4 ++++ web/template/pkg_search_form.php | 8 ++++++++ 2 files changed, 12 insertions(+) (limited to 'web') diff --git a/web/lib/pkgfuncs.inc b/web/lib/pkgfuncs.inc index 150f552..5ce659e 100644 --- a/web/lib/pkgfuncs.inc +++ b/web/lib/pkgfuncs.inc @@ -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"]) { diff --git a/web/template/pkg_search_form.php b/web/template/pkg_search_form.php index 012b1bd..f5163f3 100644 --- a/web/template/pkg_search_form.php +++ b/web/template/pkg_search_form.php @@ -120,6 +120,14 @@ ?> +
  • + + + + + + +
  • -- cgit v1.2.3-70-g09d2