From 59ddae46040775c9ad7514adc1d72a9cb6bb83ea Mon Sep 17 00:00:00 2001 From: Marcin Juszkiewicz Date: Sat, 2 Sep 2006 17:31:10 +0000 Subject: feed-browser: add search functionality --- contrib/feed-browser/index.php | 26 +++++++++++++++++++++----- 1 file changed, 21 insertions(+), 5 deletions(-) diff --git a/contrib/feed-browser/index.php b/contrib/feed-browser/index.php index df7282db7d..1c902ac66e 100644 --- a/contrib/feed-browser/index.php +++ b/contrib/feed-browser/index.php @@ -35,6 +35,13 @@ require_once 'includes/functions.inc'; check_database(); +$name = ''; + +if(isset($_GET['name'])) +{ + $name = $_GET['name']; +} + $action = ''; if(isset($_GET['action'])) @@ -48,10 +55,8 @@ switch($action) $ipkgoutput = pkgdetails ($_GET['pnm']); break; - case "package": - $edit = $_POST['edit']; - $searchword = $edit['searchword']; - $ipkgoutput = searchpkg ("%$searchword%"); + case "search": + $ipkgoutput = searchpkg ("%{$name}%"); break; case "section": @@ -78,7 +83,18 @@ switch($action) - +

Sections list

-- cgit v1.2.3