From 8f6f256d8538e9ae9dde38fa38ed11b3c6c3e9cb Mon Sep 17 00:00:00 2001 From: "Johan \"Papa\" Cwiklinski" Date: Tue, 25 May 2010 07:51:33 +0200 Subject: There are no text filter ; styling table legend --- css/rpmphp.css | 4 ++++ rpm.php | 6 ++---- 2 files changed, 6 insertions(+), 4 deletions(-) diff --git a/css/rpmphp.css b/css/rpmphp.css index 89ce374..f312290 100644 --- a/css/rpmphp.css +++ b/css/rpmphp.css @@ -176,6 +176,10 @@ p{ list-style:none; width:20%; text-align:center; + background-color:#E5E5E5; + -moz-border-radius:5px 5px 5px 5px; + -webkit-border-radius:5px 5px 5px 5px; + padding:.5em 2em; } .error { diff --git a/rpm.php b/rpm.php index 7c42c3c..54eeda8 100644 --- a/rpm.php +++ b/rpm.php @@ -161,7 +161,7 @@ include '_header.php';
Filter packages - +
- - +
-- cgit From 449959fe84ca08bcfcd5507d91114ec11c34120a Mon Sep 17 00:00:00 2001 From: "Johan \"Papa\" Cwiklinski" Date: Tue, 25 May 2010 08:24:17 +0200 Subject: Change all page layout and validate xhtml 1.0 strict --- all.php | 289 +++++++++++++++++++++++++-------------------------------- css/rpmphp.css | 4 + rpm.php | 1 - 3 files changed, 130 insertions(+), 164 deletions(-) diff --git a/all.php b/all.php index 2dfe2f4..08e6618 100644 --- a/all.php +++ b/all.php @@ -1,68 +1,33 @@ - - - - Packages in Fedora - - - - - - - + + + + Packages in Fedora + + + + + - -
- - -
- +
+ +
+
+

You are here:

+ +
+
- + query($sql); if ($res)while ($start = $res->fetchObject()) { - printf("", $start->init, ($what==$start->init ? "selected='1'" : ""), substr($start->init,1)); + printf("\t\t\t\t\t\t\t\t\t\n", $start->init, ($what==$start->init ? " selected=\"selected\"" : ""), substr($start->init,1)); } else { - echo ""; + echo "\t\t\t\t\t\t\t\t\t\n"; } ?> - - + + query($sql); if ($res)while ($owner = $res->fetchObject()) { - printf("", $owner->owner, ($what==$owner->owner ? "selected='1'" : ""), $owner->owner); + printf("\t\t\t\t\t\t\t\t\t\n", $owner->owner, ($what==$owner->owner ? " selected=\"selected\"" : ""), $owner->owner); } else { - echo ""; + echo "\t\t\t\t\t\t\t\t\t\n"; } ?> - - - -
- -
- -
- -
-   - Reports home -   - All packages - - - -
-
- - - - -
-
 
-
 
-
- - - - - + + + + + +
query($sql); if ($res && $row=$res->fetchObject()) { printf("

Repositories last updated %s.

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

Choose a criteria from the search menu

"; +?> +

Packages in Fedora

+ + + + + + + + + + + + +"; //echo "
"; print_r($rpms); echo "
"; - -} -catch(PDOException $e) { +} catch(PDOException $e) { +?> + + + + -

 

- -
PackageOwner(s)Upstream

Choose a criteria from the filter menu

+getMessage()); +?> +
- - - - -
Legend: Repo: bold for latest release.
Lastest released (as in rawhide)
Lastest in testing
Lastest not available
- - -
-
 
-
 
-
- - - - - - +
- - diff --git a/css/rpmphp.css b/css/rpmphp.css index f312290..4aea4b7 100644 --- a/css/rpmphp.css +++ b/css/rpmphp.css @@ -155,6 +155,10 @@ p{ border-top:1px solid #DDDDDD; } +#list-packages h2{ + text-align:center; +} + #filter{ display:inline-block; position:absolute; diff --git a/rpm.php b/rpm.php index 54eeda8..edad029 100644 --- a/rpm.php +++ b/rpm.php @@ -218,7 +218,6 @@ foreach ( $repos_k as $r ) { - -- cgit From 886b1ca73cc20b7c266dd0a7da0e863b722c47df Mon Sep 17 00:00:00 2001 From: "Johan \"Papa\" Cwiklinski" Date: Tue, 25 May 2010 20:00:16 +0200 Subject: Change zoom page layout and validate xhtml 1.0 strict ; apply some minor graphical changes (thanks to Pingou) --- css/rpmphp.css | 33 ++++++++-- zoom.php | 187 ++++++++++++++++----------------------------------------- 2 files changed, 81 insertions(+), 139 deletions(-) diff --git a/css/rpmphp.css b/css/rpmphp.css index 4aea4b7..33e7f64 100644 --- a/css/rpmphp.css +++ b/css/rpmphp.css @@ -22,18 +22,21 @@ input{ input[type='submit']:hover{ background-color:#bbb; color:#fff; + cursor:pointer; } h1{ color:#3C6EB4; padding:.2em; margin:.2em 0; + font-size:1.6em; } h2{ color:#666666; padding:.1em; margin:.3em 1em; + font-size:1.4em; } a{ @@ -133,15 +136,20 @@ p{ border-collapse:collapse; } -#list-packages caption{ +#list-packages caption, +#upstream caption{ background-color:#2963A6; color:white; padding:.1em 0; + -moz-border-radius:5px 5px 0 0; + -webkit-border-radius:5px 5px 0 0; + font-weight:bold; } #list-packages td, #list-packages th{ padding:.2em; + background-color:white; } #list-packages thead th{ @@ -175,17 +183,32 @@ p{ font-style:italic; } -#legend{ - margin:0 auto; +#legend, #upstream{ + margin:.5em 1em; list-style:none; - width:20%; - text-align:center; + width:20em; + /*text-align:center;*/ background-color:#E5E5E5; -moz-border-radius:5px 5px 5px 5px; -webkit-border-radius:5px 5px 5px 5px; padding:.5em 2em; } +#upstream { + -moz-border-radius:0 0 5px 5px; + -webkit-border-radius:0 0 5px 5px; + width:90%; + margin:.5em auto; +} + +#upstream th{ + text-align:right; +} +#upstream td{ + padding-left:1em; + text-align:left; +} + .error { background:url(../images/icon-error.png) no-repeat left; padding-left: 21px!important; diff --git a/zoom.php b/zoom.php index 4e1fb75..f3c8bf8 100644 --- a/zoom.php +++ b/zoom.php @@ -1,52 +1,3 @@ - - - - Packages in Fedora - - - - - - - + + + + Packages in Fedora + + + + + - -
- - -
- -
- Package :  - - -
-
- -
- -
-   - Reports home -   - Package detail - - - -
-
- - - - -
-
 
-
 
-
- - - +
+ +
+
+

You are here:

+ +
Enter a package name\n"; } else { try { $db = new PDO ("mysql:dbname=" . MYBASE . ";host=" . MYHOST, MYUSER, MYPASS); - - $sql = "SELECT rpm.* + + $sql = "SELECT rpm.* FROM rpm INNER JOIN repo ON (repo.main=rpm.repo_main AND repo.sub=rpm.repo_sub) WHERE rpm.name='$name' ORDER BY repo.id DESC"; $resrpm = $db->query($sql); $rpm = ($resrpm ? $resrpm->fetchObject() : false); - + $sql = "SELECT * FROM upstream WHERE name = '$name'"; $resup=$db->query($sql); $up = ($resup ? $resup->fetchObject() : false); - + $sql = "SELECT * FROM acls WHERE name = '$name'"; $resown=$db->query($sql); $owner = ($resown ? $resown->fetchObject() : false); - + if (!$rpm) { echo "

$name not found

\n"; } else { echo "

Package: $name

\n"; - echo "\n"; - echo "\n"; + echo "
Upstream info
\n"; + echo "\n"; $i=0; - + if ($rpm->summary) { - echo "\n"; + echo "\n"; } else if ($owner->summary) { - echo "\n"; + echo "\n"; } if ($rpm->url) { - echo "\n"; + echo "\n"; } if ($up && $up->type) { - echo "\n"; + echo "\n"; } if ($up && $up->channel) { - echo "\n"; + echo "\n"; } if ($up && $up->stable) { - echo "\n"; + echo "\n"; } if ($up && $up->unstable && $up->stable!=$up->unstable) { - echo "\n"; } if ($owner && $owner->owner) { - echo "\n"; } - echo ""; $i++; - echo ""; $i++; + echo "\n"; echo "
Upstream info
"; $i++; - echo "Summary". $rpm->summary . "
"; $i++; + echo "Summary: ". $rpm->summary . "
"; $i++; - echo "Summary". $owner->summary . "
"; $i++; + echo "Summary: ". $owner->summary . "
"; $i++; - echo "URL". $rpm->url . "
"; $i++; + echo "URL: ". $rpm->url . "
"; $i++; - echo "Type". $up->type . "
"; $i++; + echo "Type: ". $up->type . "
"; $i++; - echo "Channel". $up->channel . "
"; $i++; + echo "Channel: ". $up->channel . "
"; $i++; - echo "Stable version". $up->stable . "
"; $i++; + echo "Stable version: ". $up->stable . "
"; $i++; - echo "Unstable version". $up->unstable . ""; + echo "
"; $i++; + echo "Unstable version: ". $up->unstable . ""; if ($up->state) { echo " (". $up->state . ")\n"; } echo "
"; $i++; - echo "Owner". $owner->owner . ""; + echo "
"; $i++; + echo "Owner: ". $owner->owner . ""; if ($owner->cc) { echo " (". $owner->cc . ")\n"; } echo "
ViewVChttp://cvs.fedoraproject.org/viewvc/rpms/$name/"; + echo "
ViewVC: http://cvs.fedoraproject.org/viewvc/rpms/$name/"; echo "
"; - - echo "
\n"; - echo "\n"; + + echo "
Packages available in Fedora Repositories
\n"; + echo "\n"; $prev=false; do { echo ""; $i++; @@ -200,21 +128,12 @@ if (!$name) { - -
 
-
 
- - - - - - -- cgit
Packages available in Fedora Repositories