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 +------------------------------------- web/template/pkg_search_form.php | 121 +++++++++++++++++++++++++++++++++++++++ 2 files changed, 122 insertions(+), 118 deletions(-) create mode 100644 web/template/pkg_search_form.php 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, diff --git a/web/template/pkg_search_form.php b/web/template/pkg_search_form.php new file mode 100644 index 0000000..3c4d2a9 --- /dev/null +++ b/web/template/pkg_search_form.php @@ -0,0 +1,121 @@ +\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"; + +?> -- cgit v1.2.3-70-g09d2