include_once("pkgs_po.inc"); # grab the current list of PackageCategories # function pkgCategories() { $cats = array(); $dbh = db_connect(); $q = "SELECT * FROM PackageCategories "; $q.= "ORDER BY Category ASC"; $result = db_query($q, $dbh); if ($result) { while ($row = mysql_fetch_row($result)) { $cats[$row[0]] = $row[1]; } } return $cats; } # grab the current list of PackageLocations # function pkgLocations() { $locs = array(); $dbh = db_connect(); $q = "SELECT * FROM PackageLocations "; $q.= "ORDER BY Location ASC"; $result = db_query($q, $dbh); if ($result) { while ($row = mysql_fetch_row($result)) { $locs[$row[0]] = $row[1]; } } return $locs; } # display the search form in a boxSoft style # function pkg_search_page($L="",$C="",$K="",$SB="",$PP="") { # L: PackageLocations.ID # C: PackageCategories.ID # K: Keywords # SB: Sort by # PP: Per page $locs = pkgLocations(); $cats = pkgCategories(); print "
\n"; print " ".__("Search Criteria")."\n"; print " | \n"; print "
\n"; print "\n"; print " | \n"; print "