summaryrefslogtreecommitdiffstats
path: root/index.php
diff options
context:
space:
mode:
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>