From d62baaecf0aa8eb87776d9de9aa5ee50034613f5 Mon Sep 17 00:00:00 2001 From: Callan Barrett Date: Tue, 23 Dec 2008 00:52:09 +0900 Subject: Add search bar to index and pkg details pages Also changed it around a little bit so it's not tied down the search results function Signed-off-by: Callan Barrett Signed-off-by: Loui Chang --- web/html/index.php | 2 ++ web/html/packages.php | 1 + web/template/pkg_search_form.php | 16 +++++++++------- 3 files changed, 12 insertions(+), 7 deletions(-) (limited to 'web') diff --git a/web/html/index.php b/web/html/index.php index e2c840a6..5511d7e0 100644 --- a/web/html/index.php +++ b/web/html/index.php @@ -12,6 +12,8 @@ include_lang('pkgfuncs_po.inc'); html_header( __("Home") ); +include('pkg_search_form.php'); + $dbh = db_connect(); ?> diff --git a/web/html/packages.php b/web/html/packages.php index 90ab72cb..9805ee2b 100644 --- a/web/html/packages.php +++ b/web/html/packages.php @@ -64,6 +64,7 @@ if ($output): endif; if (isset($_GET["ID"])) { + include('pkg_search_form.php'); if (!intval($_GET["ID"])) { print __("Error trying to retrieve package details.")."
\n"; } else { diff --git a/web/template/pkg_search_form.php b/web/template/pkg_search_form.php index 70797e47..01009a4f 100644 --- a/web/template/pkg_search_form.php +++ b/web/template/pkg_search_form.php @@ -1,3 +1,5 @@ + +
@@ -13,7 +15,7 @@ " maxlength='35' /> - Advanced + Advanced
@@ -23,15 +25,15 @@ @@ -40,15 +42,15 @@ -- cgit v1.2.3-24-g4f1b