From afa9e729734e8bc78411c866dcd1ba1e2f6c914d Mon Sep 17 00:00:00 2001 From: Remi Collet Date: Sat, 22 May 2010 15:22:32 +0200 Subject: index.php - quick access to package page (zomm) from input on the top/right - link to github for sources access zoom.php - input on the top right corner - message if package not found - ViewVC link --- index.php | 29 ++++++++++------------------- 1 file changed, 10 insertions(+), 19 deletions(-) (limited to 'index.php') diff --git a/index.php b/index.php index 77a6663..358fb41 100644 --- a/index.php +++ b/index.php @@ -71,6 +71,12 @@ try {
+ +
+ Package :  + + +
@@ -113,7 +119,7 @@ try { $sql='SELECT * FROM repo ORDER BY ID'; $res=$db->query($sql); if ($res) for ($i=0, $prev="xx" ; $repo=$res->fetchObject() ; $i++, $prev=$repo->main) { - printf ("%s%s%s%s%s\n", + printf ("%s%s%s%s%s\n", ($i%2 ? 'odd' : 'even'), ($repo->main != $prev ? $repo->main : " "), ($repo->main != $prev ? ($repo->active ? "Yes" : "no") : " "), @@ -129,25 +135,10 @@ catch(PDOException $e) { ?>

Script sources

- - "This page", - "all.php" => "All Packages in Fedora", - "rpm.php" => "PHP Extensions in Fedora", - "refresh.php" => "The metadata refresh script launch twice a day by cron", - "zoom.php" => "Package detail"); - - $i=0; - foreach ($pages as $page => $name) if (is_file($page) && is_link($page."s")) { - $stat=stat($page); - printf ("\n", - ($i%2 ? 'odd' : 'even'), $page, $page, $name, date("r", $stat["mtime"])); - $i++; - } -?> +
NameDescriptionDate
%s%s%s
+ +
Repository on github.com
http://github.com/remicollet/rpmphp
Any feedback, RFE and patches are welcome.
-

Any feedback, RFE and patches are welcome.

-- cgit