From 886b1ca73cc20b7c266dd0a7da0e863b722c47df Mon Sep 17 00:00:00 2001 From: "Johan \"Papa\" Cwiklinski" Date: Tue, 25 May 2010 20:00:16 +0200 Subject: Change zoom page layout and validate xhtml 1.0 strict ; apply some minor graphical changes (thanks to Pingou) --- zoom.php | 187 ++++++++++++++++++--------------------------------------------- 1 file changed, 53 insertions(+), 134 deletions(-) (limited to 'zoom.php') diff --git a/zoom.php b/zoom.php index 4e1fb75..f3c8bf8 100644 --- a/zoom.php +++ b/zoom.php @@ -1,52 +1,3 @@ - - - - Packages in Fedora - - - - - - - + + + + Packages in Fedora + + + + + - -
- - -
- -
- Package :  - - -
-
- -
- -
-   - Reports home -   - Package detail - - - -
-
- - - - -
-
 
-
 
-
- - - +
+ +
+
+

You are here:

+ +
Enter a package name\n"; } else { try { $db = new PDO ("mysql:dbname=" . MYBASE . ";host=" . MYHOST, MYUSER, MYPASS); - - $sql = "SELECT rpm.* + + $sql = "SELECT rpm.* FROM rpm INNER JOIN repo ON (repo.main=rpm.repo_main AND repo.sub=rpm.repo_sub) WHERE rpm.name='$name' ORDER BY repo.id DESC"; $resrpm = $db->query($sql); $rpm = ($resrpm ? $resrpm->fetchObject() : false); - + $sql = "SELECT * FROM upstream WHERE name = '$name'"; $resup=$db->query($sql); $up = ($resup ? $resup->fetchObject() : false); - + $sql = "SELECT * FROM acls WHERE name = '$name'"; $resown=$db->query($sql); $owner = ($resown ? $resown->fetchObject() : false); - + if (!$rpm) { echo "

$name not found

\n"; } else { echo "

Package: $name

\n"; - echo "\n"; - echo "\n"; + echo "
Upstream info
\n"; + echo "\n"; $i=0; - + if ($rpm->summary) { - echo "\n"; + echo "\n"; } else if ($owner->summary) { - echo "\n"; + echo "\n"; } if ($rpm->url) { - echo "\n"; + echo "\n"; } if ($up && $up->type) { - echo "\n"; + echo "\n"; } if ($up && $up->channel) { - echo "\n"; + echo "\n"; } if ($up && $up->stable) { - echo "\n"; + echo "\n"; } if ($up && $up->unstable && $up->stable!=$up->unstable) { - echo "\n"; } if ($owner && $owner->owner) { - echo "\n"; } - echo ""; $i++; - echo ""; $i++; + echo "\n"; echo "
Upstream info
"; $i++; - echo "Summary". $rpm->summary . "
"; $i++; + echo "Summary: ". $rpm->summary . "
"; $i++; - echo "Summary". $owner->summary . "
"; $i++; + echo "Summary: ". $owner->summary . "
"; $i++; - echo "URL". $rpm->url . "
"; $i++; + echo "URL: ". $rpm->url . "
"; $i++; - echo "Type". $up->type . "
"; $i++; + echo "Type: ". $up->type . "
"; $i++; - echo "Channel". $up->channel . "
"; $i++; + echo "Channel: ". $up->channel . "
"; $i++; - echo "Stable version". $up->stable . "
"; $i++; + echo "Stable version: ". $up->stable . "
"; $i++; - echo "Unstable version". $up->unstable . ""; + echo "
"; $i++; + echo "Unstable version: ". $up->unstable . ""; if ($up->state) { echo " (". $up->state . ")\n"; } echo "
"; $i++; - echo "Owner". $owner->owner . ""; + echo "
"; $i++; + echo "Owner: ". $owner->owner . ""; if ($owner->cc) { echo " (". $owner->cc . ")\n"; } echo "
ViewVChttp://cvs.fedoraproject.org/viewvc/rpms/$name/"; + echo "
ViewVC: http://cvs.fedoraproject.org/viewvc/rpms/$name/"; echo "
"; - - echo "
\n"; - echo "\n"; + + echo "
Packages available in Fedora Repositories
\n"; + echo "\n"; $prev=false; do { echo ""; $i++; @@ -200,21 +128,12 @@ if (!$name) { - -
 
-
 
- - - - - - -- cgit
Packages available in Fedora Repositories