From b76086add9ffb0cbd9ddf54955df51db436ed07a Mon Sep 17 00:00:00 2001 From: "Johan \"Papa\" Cwiklinski" Date: Tue, 25 May 2010 01:05:25 +0200 Subject: Move common header and footer HTML code into separate (and reusable) files, change RPM page layout and validate xhtml 1.0 strict --- _footer.php | 7 ++ _header.php | 14 +++ css/rpmphp.css | 38 +++++++- index.php | 28 ++---- rpm.php | 293 ++++++++++++++++++++++++--------------------------------- 5 files changed, 181 insertions(+), 199 deletions(-) create mode 100644 _footer.php create mode 100644 _header.php diff --git a/_footer.php b/_footer.php new file mode 100644 index 0000000..591540b --- /dev/null +++ b/_footer.php @@ -0,0 +1,7 @@ + diff --git a/_header.php b/_header.php new file mode 100644 index 0000000..63f5850 --- /dev/null +++ b/_header.php @@ -0,0 +1,14 @@ + diff --git a/css/rpmphp.css b/css/rpmphp.css index 1bf4ae9..89ce374 100644 --- a/css/rpmphp.css +++ b/css/rpmphp.css @@ -64,6 +64,11 @@ p{ background: #FFFFFF url(../images/border-right.png) 100% 0 repeat-y; } +#fedora-content{ + margin-right:18px; + position:relative; +} + #header { border-top: 10px solid #337ACC; padding: 1ex 17px; @@ -150,29 +155,52 @@ p{ border-top:1px solid #DDDDDD; } +#filter{ + display:inline-block; + position:absolute; + right:1em; +} + +#filter fieldset{ + padding:.2em; +} + +#count_found{ + text-align:right; + font-size:.9em; + font-style:italic; +} + +#legend{ + margin:0 auto; + list-style:none; + width:20%; + text-align:center; +} + .error { background:url(../images/icon-error.png) no-repeat left; - padding-left: 21px; + padding-left: 21px!important; } .info { background:url(../images/icon-info.png) no-repeat left; - padding-left: 21px; + padding-left: 21px!important; } .attn { background:url(../images/attention.png) no-repeat left; - padding-left: 21px; + padding-left: 21px!important; } .check { background:url(../images/checkmark.png) no-repeat left; - padding-left: 21px; + padding-left: 21px!important; } .cpan { background:url(../images/perl.gif) no-repeat left; - padding-left: 18px; + padding-left: 18px!important; } /*.rt { diff --git a/index.php b/index.php index 863ccdb..c9136f4 100644 --- a/index.php +++ b/index.php @@ -11,21 +11,9 @@
- - +
@@ -88,13 +76,9 @@ try {

You can retrieve the current application sources from my GIT repository on github.com: http://github.com/remicollet/rpmphp.

Feedbacks, RFE and patches are welcome.

- +
diff --git a/rpm.php b/rpm.php index 2da5bfc..7c42c3c 100644 --- a/rpm.php +++ b/rpm.php @@ -3,80 +3,26 @@ $what=(isset($_GET["what"]) ? $_GET["what"] : "%fedora"); $type=(isset($_GET["type"]) ? $_GET["type"] : "pecl"); require "config.inc.php"; -?> - - - <?php echo $type; ?> extensions in Fedora - - - - - - - + + + + <?php echo $type; ?> extensions in Fedora + + + + + - - -
- - -
- +
"; - echo ""; +include '_header.php'; ?> - + + - - - -
- -
- -
-   - Reports home -   - - - - -
-
- - - - -
-
 
-
 
-
- - - - - + +
+ + + + + +
Repositories last updated %s.

", date("r", $row->stamp)); } - Report($db, $type); - echo "

 

"; - +?> +

+ + + + + + + + + + + + + + + + + + + +
PackageOwner(s)Upstream
+getMessage()); +?> +
+
    +
  • Legend:
  • +
  • Upstream: bold if stable.
  • +
  • Repo: bold for latest release.
  • +
  • Lastest released (stable if exists)
  • +
  • Lastest in testing
  • +
  • Lastest not available
  • +
+
- - - - - -
Legend: Upstream: bold if stable. Repo: bold for latest release.
Lastest released (stable if exists)
Lastest in testing
Lastest not available
- - -
-
 
-
 
-
- - - - - - - - -- cgit