From ab023f4ccf2b3f2401219c72208672141abcaabf Mon Sep 17 00:00:00 2001 From: Loui Chang Date: Tue, 1 Apr 2008 13:50:02 -0400 Subject: Move search form to web/template/pkg_search_form.php Nothing fancy here, just cut & paste Signed-off-by: Loui Chang Signed-off-by: Simo Leone --- web/lib/pkgfuncs.inc | 119 +-------------------------------------------------- 1 file changed, 1 insertion(+), 118 deletions(-) (limited to 'web/lib') diff --git a/web/lib/pkgfuncs.inc b/web/lib/pkgfuncs.inc index 1feceb6..5031aa4 100644 --- a/web/lib/pkgfuncs.inc +++ b/web/lib/pkgfuncs.inc @@ -668,124 +668,7 @@ function pkg_search_page($SID="") { $PP = 25; } - // The search form - XXX: split into own function? - // - // FIXME: highly fugly. whoever makes this use - // less print statements gets a cookie - // FIXME: ugly html. whoever un-tables this gets - // another cookie - print "
\n"; - print "\n"; - - print "
\n"; - print "\n"; - print "\n"; - print " \n"; - print "\n"; - print "\n"; - print " \n"; - print "\n"; - print "
\n"; - print " ".__("Search Criteria")."\n"; - print "
\n"; - print "\n"; - - print "\n"; - print "\n"; - - print "\n"; - - print "\n"; - - print "\n"; - - print "\n"; - - // Added to break put the buttons in a new line - print"
\n"; - print " ".__("Location"); - print "
\n"; - print " \n"; - print "
\n"; - print " ".__("Category"); - print "
\n"; - print " \n"; - print "
\n"; - print " ".__("Keywords"); - print "
\n"; - print " \n"; - print "
\n"; - print " ".__("Search by"); - print "
\n"; - - print " \n"; - print "
\n"; - print " ".__("Per page"); - print "
\n"; - print " \n"; - print "
"; - - print "\n"; - - print "\n"; - - print "\n"; - print "
 \n"; - print " \n"; - print " \n"; - print " \n"; - print "
\n"; - - print "
\n"; - print "
\n"; - print "
\n"; - print "
\n"; - + include('../template/pkg_search_form.php'); // FIXME: pull out DB-related code. all of it. // this one's worth a choco-chip cookie, -- cgit v1.2.3-70-g09d2