From 16a97cf1a38313dbe8cab0f29f1054e61a3964f6 Mon Sep 17 00:00:00 2001 From: eric Date: Fri, 25 Jun 2004 00:17:17 +0000 Subject: first pass at displaying package search results - still needs Less/More buttons --- web/lib/aur.inc | 4 ++-- web/lib/pkgs.inc | 71 +++++++++++++++++++++++++++++++++++++------------------- 2 files changed, 49 insertions(+), 26 deletions(-) (limited to 'web/lib') diff --git a/web/lib/aur.inc b/web/lib/aur.inc index 39c5c92..def41c6 100644 --- a/web/lib/aur.inc +++ b/web/lib/aur.inc @@ -33,7 +33,7 @@ function getTrustedUsers() { $result = db_query($q, $dbh); if ($result) { while ($row = mysql_fetch_assoc($result)) { - $tus[] = $row; + $tus[$row["ID"]] = $row; } } return $tus; @@ -50,7 +50,7 @@ function getDevelopers() { $result = db_query($q, $dbh); if ($result) { while ($row = mysql_fetch_assoc($result)) { - $devs[] = $row; + $devs[$row["ID"]] = $row; } } return $devs; diff --git a/web/lib/pkgs.inc b/web/lib/pkgs.inc index bd63ee2..b9d061e 100644 --- a/web/lib/pkgs.inc +++ b/web/lib/pkgs.inc @@ -114,7 +114,7 @@ function pkg_search_page($L="",$C="",$K="",$SB="",$O=0,$PP=25) { print __("Location")."\n"; print "