summaryrefslogtreecommitdiffstats
path: root/index.php
diff options
context:
space:
mode:
authorRemi Collet <fedora@famillecollet.com>2010-05-22 15:22:32 +0200
committerRemi Collet <fedora@famillecollet.com>2010-05-22 15:22:32 +0200
commitafa9e729734e8bc78411c866dcd1ba1e2f6c914d (patch)
tree369d21eb1ab3a76cfc44e49438dbc4304cd331ca /index.php
parent1d9140560f969d4545e5b1ba762a90a5385f62f4 (diff)
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
Diffstat (limited to 'index.php')
-rw-r--r--index.php29
1 files changed, 10 insertions, 19 deletions
diff --git a/index.php b/index.php
index 77a6663..358fb41 100644
--- a/index.php
+++ b/index.php
@@ -71,6 +71,12 @@ try {
</div>
<div id="fedora-header-items">
+ <span class="fedora-header-search">
+ <form action='zoom.php' method='get'>
+ Package&nbsp;:&nbsp;
+ <input type='text' name='rpm' size='20' />
+ <input type="image" src='http://docs.fedoraproject.org/images/header-search.png' alt="Search" />
+ </form></span>
</div>
@@ -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 ("<tr class='%s'><td><strong>%s</strong></td><td>%s</td><td>%s</td><td><a href='%srepoview/' alt='Repoview'>%s</a></td><td>%s</td></tr>\n",
+ printf ("<tr class='%s'><td><strong>%s</strong></td><td>%s</td><td>%s</td><td><a href='%s' alt='RPM'>%s</a></td><td>%s</td></tr>\n",
($i%2 ? 'odd' : 'even'),
($repo->main != $prev ? $repo->main : "&nbsp;"),
($repo->main != $prev ? ($repo->active ? "<strong>Yes</strong>" : "no") : "&nbsp;"),
@@ -129,25 +135,10 @@ catch(PDOException $e) {
?>
<h2>Script sources</h2>
-<table id='fedora-list-packages'><tr><th>Name</th><th>Description</th><th>Date</th></tr>
-<?php
- $pages=array(
- "index.php" => "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 ("<tr class='%s'><td><a href='%ss'>%s</a></td><td>%s</td><td>%s</td></tr>\n",
- ($i%2 ? 'odd' : 'even'), $page, $page, $name, date("r", $stat["mtime"]));
- $i++;
- }
-?>
+<table id='fedora-list-packages'><tr><th>Repository on github.com</th></tr>
+<tr class='even'><td><a href='http://github.com/remicollet/rpmphp'>http://github.com/remicollet/rpmphp</a></td></tr>
+<tr class='odd'><td>Any feedback, RFE and patches are welcome.</td></tr>
</table>
-<p>Any feedback, RFE and patches are welcome.</p>
<!-- document END -->
</div>