summaryrefslogtreecommitdiffstats
path: root/index.php
diff options
context:
space:
mode:
authorJohan "Papa" Cwiklinski <trasher@odysseus.(none)>2010-05-24 23:20:47 +0200
committerJohan "Papa" Cwiklinski <trasher@odysseus.(none)>2010-05-24 23:20:47 +0200
commit423564807cbf345a16840acf31ef4bad3a527092 (patch)
tree5d919b567d8427d2a0d549804313d769c69b78cd /index.php
parent19484877126497f350cecb920ef64c5fe305bf31 (diff)
Main page has not been commited previously...
Diffstat (limited to 'index.php')
-rw-r--r--index.php219
1 files changed, 79 insertions, 140 deletions
diff --git a/index.php b/index.php
index 358fb41..863ccdb 100644
--- a/index.php
+++ b/index.php
@@ -1,162 +1,101 @@
-<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01//EN" "http://www.w3.org/TR/html4/strict.dtd">
-<html>
+<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">
+<html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en">
<head>
<title>Packages in Fedora</title>
- <meta http-equiv="Content-Type" content="text/html; charset=utf-8">
- <link rel="stylesheet" type="text/css" media="print" href="http://docs.fedoraproject.org/css/print.css">
- <style type="text/css" media="screen">
- @import url("http://docs.fedoraproject.org/css/layout.css");
- @import url("http://docs.fedoraproject.org/css/content.css");
- @import url("http://docs.fedoraproject.org/css/docbook.css");
-
-body {
- background-image:none;
-}
-.error {
- background:url(http://fedoraproject.org/wikidata/kindofblue/img/icon-error.png) no-repeat left;
- padding-left: 21px;
-}
-
-.info {
- background:url(http://fedoraproject.org/wikidata/kindofblue/img/icon-info.png) no-repeat left;
- padding-left: 21px;
-}
-
-.attn {
- background:url(http://fedoraproject.org/wikidata/kindofblue/img/attention.png) no-repeat left;
- padding-left: 21px;
-}
-
-.check {
- background:url(http://fedoraproject.org/wikidata/kindofblue/img/checkmark.png) no-repeat left;
- padding-left: 21px;
-}
-
-.cpan {
- background:url(http://www.perl.com/favicon.ico) no-repeat left;
- padding-left: 18px;
-}
-
-.rt {
- background:url(/img/rt.png) no-repeat left;
- padding-left: 18px;
-}
-
-.bz {
- background:url(/img/bz.png) no-repeat left;
- padding-left: 18px;
-}
-
-<?php
-
-require "config.inc.php";
-
-
-try {
- $db = new PDO ("mysql:dbname=" . MYBASE . ";host=" . MYHOST, MYUSER, MYPASS);
-?>
- </style>
-
- <meta name="MSSmartTagsPreventParsing" content="TRUE">
- <link rel="shortcut icon" href="http://docs.fedoraproject.org//images/favicon.ico">
- <link rel="icon" href="http://docs.fedoraproject.org//images/favicon.ico">
+ <meta http-equiv="Content-Type" content="text/html; charset=utf-8"/>
+ <link rel="stylesheet" type="text/css" media="screen" href="css/rpmphp.css"/>
+ <!--<link rel="stylesheet" type="text/css" media="print" href="css/rpmphp-print.css">-->
+ <link rel="shortcut icon" href="images/favicon.ico"/>
+ <link rel="icon" href="images/favicon.ico"/>
</head>
<body>
- <!-- header BEGIN -->
- <div id="fedora-header">
- <div id="fedora-header-logo">
-
- <a href="http://fedoraproject.org"><img src="http://docs.fedoraproject.org//images/header-fedora_logo01.png" alt="Fedora Project"></a>
- </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 id="wrapper">
+ <div id="header">
+ <h1>
+ <a href="http://fedoraproject.org"><img src="images/fedora-logo.png" alt="Fedora Project"/></a>
+ </h1>
+ <div id="headsearch">
+ <form action='zoom.php' method='get'>
+ <div>
+ <label for="rpm">Package&nbsp;: </label>
+ <input type="text" name="rpm" id="rpm" size="20" />
+ <input type="submit" value="Search" />
+ </div>
+ </form>
+ </div>
</div>
- </div>
-
- <div id="fedora-nav"></div>
- &nbsp;<img src='http://docs.fedoraproject.org/images/link-offsite-side.png' />
- Reports home
- <!-- header END -->
-
- <!-- leftside BEGIN -->
- <div id="fedora-side-left">
- </div>
-
- <!-- leftside END -->
-
- <!-- content BEGIN -->
- <div id="fedora-middle-one">
- <div class="fedora-corner-tr">&nbsp;</div>
- <div class="fedora-corner-tl">&nbsp;</div>
- <div id="fedora-content">
-
- <!-- document BEGIN -->
-
- <h1>Packages in Fedora repositories</h1>
- <h2>Package reports</h2>
- <ul>
- <li><a href='rpm.php?type=pecl'>PECL Extensions in Fedora</a> with upstream information</li>
- <li><a href='rpm.php?type=pear'>PEAR Extensions in Fedora</a> with upstream information</li>
- <li><a href='rpm.php?type=R'>R Extensions in Fedora</a> with upstream information</li>
- <li><a href='all.php'>All Packages in Fedora</a></li>
- </ul>
- <h2>Analysed repositories</h2>
-
-
+ <!-- content BEGIN -->
+ <div id="fedora-content">
+ <div id="ariane">
+ <p>You are here: </p>
+ <ul>
+ <li><a href="#">Reports home</a></li>
+ </ul>
+ </div>
+ <h1>Packages in Fedora repositories</h1>
+ <h2>Package reports</h2>
+ <ul id="reports">
+ <li><a href="rpm.php?type=pecl">PECL Extensions in Fedora</a> with upstream information</li>
+ <li><a href="rpm.php?type=pear">PEAR Extensions in Fedora</a> with upstream information</li>
+ <li><a href="rpm.php?type=R">R Extensions in Fedora</a> with upstream information</li>
+ <li><a href="all.php">All Packages in Fedora</a></li>
+ </ul><!-- /reports -->
+ <table id="list-packages">
+ <caption><strong>Analysed repositories</strong></caption>
+ <thead>
+ <tr>
+ <th>Main</th>
+ <th>Active</th>
+ <th>Sub</th>
+ <th>Url</th>
+ <th>Last update</th>
+ </tr>
+ </thead>
+ <tbody>
<?php
- echo "<table id='fedora-list-packages'>\n";
- echo "<tr class='odd'><th>Main</th><th>Active</th><th>Sub<th>Url</th><th>Last update</th></tr>\n";
+require "config.inc.php";
+try {
+ $db = new PDO ("mysql:dbname=" . MYBASE . ";host=" . MYHOST, MYUSER, MYPASS);
$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='%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;"),
+ printf ("<tr class='%s'><td><strong>%s</strong></td><td>%s</td><td>%s</td><td><a href='%s'>%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;"),
$repo->sub, $repo->url, $repo->url, date("r", $repo->stamp));
}
- echo "</table>\n";
-
-}
-catch(PDOException $e) {
+} catch(PDOException $e) {
+?>
+ <tr>
+ <td colspan="5">
+<?php
printf("%s ERREUR : %s\n", date("r"), $e->getMessage());
+?>
+ </td>
+ </tr>
+<?php
}
?>
-
-<h2>Script sources</h2>
-<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>
-
- <!-- document END -->
- </div>
- <div class="fedora-corner-br">&nbsp;</div>
- <div class="fedora-corner-bl">&nbsp;</div>
- </div>
-
- <!-- content END -->
-
- <!-- footer BEGIN -->
-
- <div id="fedora-footer">
- <br/>The Fedora Project is maintained and driven by the community and sponsored by Red Hat.
- <br/><a href="http://fedoraproject.org/wiki/Legal">Legal</a> | <a href="http://fedoraproject.org/wiki/Legal/TrademarkGuidelines">Trademark Guidelines</a>
- <br>
+ </tbody>
+ </table><!-- /list-pacakges -->
+
+ <h2>Script sources</h2>
+ <p>You can retrieve the current application sources from my GIT repository on github.com: <a href='http://github.com/remicollet/rpmphp'>http://github.com/remicollet/rpmphp</a>.</p>
+ <p>Feedbacks, RFE and patches are welcome.</p>
+ </div><!-- /fedora-content -->
+ <div id="footer">
+ <p class="disclaimer">The Fedora Project is maintained and driven by the community and sponsored by Red Hat. This is a community maintained site. Red Hat is not responsible for content.</p>
+ <ul>
+ <li><a href="http://fedoraproject.org/wiki/Legal:Main">Legal</a></li>
+ <li><a href="http://fedoraproject.org/wiki/Legal:Trademark_guidelines">Trademark Guidelines</a></li>
+ </ul>
+ </div><!-- /footer -->
</div>
-
- <!-- footer END -->
</body>
</html>