From 23589299786ac249ed16feb28a83f3e3da3d2829 Mon Sep 17 00:00:00 2001 From: eric Date: Fri, 2 Jul 2004 00:24:14 +0000 Subject: do_Details is getting close --- web/lib/pkgfuncs.inc | 23 ++++++++++++++--------- 1 file changed, 14 insertions(+), 9 deletions(-) diff --git a/web/lib/pkgfuncs.inc b/web/lib/pkgfuncs.inc index 0c2e868..15dd2d6 100644 --- a/web/lib/pkgfuncs.inc +++ b/web/lib/pkgfuncs.inc @@ -73,6 +73,7 @@ function package_sources($pkgid=0) { # display package details # function package_details($id=0) { + global $pkgsearch_vars; $q = "SELECT *,Location,Category "; $q.= "FROM Packages,PackageLocations,PackageCategories "; $q.= "WHERE Packages.LocationID = PackageLocations.ID "; @@ -124,9 +125,9 @@ function package_details($id=0) { print "\n"; print "\n"; print " ".__("Maintainer").": "; - if (isset($row["AURMaintainerUID"])) { + if ($row["AURMaintainerUID"]) { $maintainer = username_from_id($row["AURMaintainerUID"]); - } elseif (isset($row["MaintainerUID"])) { + } elseif ($row["MaintainerUID"]) { $maintainer = username_from_id($row["MaintainerUID"]); } else { $maintainer = "None"; @@ -144,7 +145,12 @@ function package_details($id=0) { print ""; $deps = package_dependencies($row["ID"]); # $deps[0] = array('id','name'); while (list($k, $darr) = each($deps)) { - print $darr[0]." - ".$darr[1]."
\n"; + $url = "".$darr[1]."
\n"; } print "\n"; print ""; @@ -156,8 +162,7 @@ function package_details($id=0) { print ""; $sources = package_sources($row["ID"]); # $sources[0] = 'src'; while (list($k, $src) = each($sources)) { - # TODO left off here... URLify - print $src."
\n"; + print "".$src."
\n"; } print "\n"; print ""; @@ -389,10 +394,10 @@ function pkg_search_page($SID="") { break; } $q.= "LIMIT ".$O.", ".$PP; - print $q."
\n"; - print "
\n";
-	print_r($_REQUEST);
-	print "
\n"; + #print $q."
\n"; + #print "
\n";
+	#print_r($_REQUEST);
+	#print "
\n"; $result = db_query($q, $dbh); if (!$result) { -- cgit v1.2.3-70-g09d2