patches to stylesheet and pkgfuncs.inc to fix Opera rendering problems

in bug #2912
This commit is contained in:
pjmattal 2005-07-28 13:05:50 +00:00
parent 3f7330d202
commit bcbc3e3fee
2 changed files with 14 additions and 10 deletions

View file

@ -95,11 +95,13 @@
{ {
width: 90%; width: 90%;
background-color: #ddd; background-color: #ddd;
text-align: left;
} }
td.boxSoft td.boxSoft
{ {
background-color: #fff; background-color: #fff;
padding: 10; padding: 10;
text-align: left;
} }
td.boxSoftColumn td.boxSoftColumn
{ {
@ -168,12 +170,14 @@
background-color: #eee; background-color: #eee;
vertical-align: top; vertical-align: top;
padding-left: .3em; padding-left: .3em;
text-align: left;
} }
td.data2 td.data2
{ {
background-color: #ddd; background-color: #ddd;
vertical-align: top; vertical-align: top;
padding-left: .3em; padding-left: .3em;
text-align: left;
} }
td.text td.text
{ {

View file

@ -280,22 +280,22 @@ function package_details($id=0, $SID="") {
print "<center>\n"; print "<center>\n";
print "<table>\n"; print "<table>\n";
print "<tr>\n"; print "<tr>\n";
print " <td colspan='2'><span class='f2'>"; print " <td class='boxSoft' colspan='2'><span class='f2'>";
print $row["Name"] . " " . $row["Version"]."</span></td>\n"; print $row["Name"] . " " . $row["Version"]."</span></td>\n";
print "</tr>\n"; print "</tr>\n";
print "<tr>\n"; print "<tr>\n";
print " <td colspan='2'><span class='f3'>"; print " <td class='boxSoft' colspan='2'><span class='f3'>";
print "<a href='".$row["URL"]."'>".$row["URL"]."</a></span></td>\n"; print "<a href='".$row["URL"]."'>".$row["URL"]."</a></span></td>\n";
print "</tr>\n"; print "</tr>\n";
print "<tr>\n"; print "<tr>\n";
print " <td colspan='2'><span class='f3'>".$row["Description"]; print " <td class='boxSoft' colspan='2'><span class='f3'>".$row["Description"];
print "</a></span></td>\n"; print "</a></span></td>\n";
print "</tr>\n"; print "</tr>\n";
print "<tr>\n"; print "<tr>\n";
print " <td colspan='2'><img src='/images/pad.gif' height='30'></td>"; print " <td class='boxSoft' colspan='2'><img src='/images/pad.gif' height='30'></td>";
print "</tr>\n"; print "</tr>\n";
print "<tr>\n"; print "<tr>\n";
print " <td colspan='2'><span class='f3'>"; print " <td class='boxSoft' colspan='2'><span class='f3'>";
if ($row["Location"] == "unsupported" and $SID) { if ($row["Location"] == "unsupported" and $SID) {
$edit_cat = "<a href='/pkgedit.php?change_Category=1&ID="; $edit_cat = "<a href='/pkgedit.php?change_Category=1&ID=";
$edit_cat .= intval($_REQUEST["ID"])."'>".$row["Category"]."</a>"; $edit_cat .= intval($_REQUEST["ID"])."'>".$row["Category"]."</a>";
@ -308,7 +308,7 @@ function package_details($id=0, $SID="") {
print "</tr>\n"; print "</tr>\n";
print "<tr>\n"; print "<tr>\n";
print " <td colspan='2'><span class='f3'>".__("Maintainer").": "; print " <td class='boxSoft' colspan='2'><span class='f3'>".__("Maintainer").": ";
if ($row["MaintainerUID"]) { if ($row["MaintainerUID"]) {
$maintainer = username_from_id($row["MaintainerUID"]); $maintainer = username_from_id($row["MaintainerUID"]);
if ($SID) { if ($SID) {
@ -324,10 +324,10 @@ function package_details($id=0, $SID="") {
} }
print "</tr>\n"; print "</tr>\n";
print "<tr>\n"; print "<tr>\n";
print " <td colspan='2'><img src='/images/pad.gif' height='15'></td>"; print " <td class='boxSoft' colspan='2'><img src='/images/pad.gif' height='15'></td>";
print "</tr>\n"; print "</tr>\n";
print "<tr>\n"; print "<tr>\n";
print " <td colspan='2'><span class='f3'>"; print " <td class='boxSoft' colspan='2'><span class='f3'>";
if ($row["LocationID"] == 2) { if ($row["LocationID"] == 2) {
print "<a href='".$row['URLPath']."'>".__("Tarball")."</a> :: <a href='".dirname($row['URLPath'])."/".$row['Name']."'>".__("Files")."</a></span></td>"; print "<a href='".$row['URLPath']."'>".__("Tarball")."</a> :: <a href='".dirname($row['URLPath'])."/".$row['Name']."'>".__("Files")."</a></span></td>";
} elseif ($row["LocationID"] == 3) { } elseif ($row["LocationID"] == 3) {
@ -335,7 +335,7 @@ function package_details($id=0, $SID="") {
} }
print "</tr>\n"; print "</tr>\n";
print "<tr>\n"; print "<tr>\n";
print " <td colspan='2'><img src='/images/pad.gif' height='30'></td>"; print " <td class='boxSoft' colspan='2'><img src='/images/pad.gif' height='30'></td>";
print "</tr>\n"; print "</tr>\n";
print "<tr>\n"; print "<tr>\n";
print " <td valign='top' style='padding-right: 10'>"; print " <td valign='top' style='padding-right: 10'>";
@ -445,7 +445,7 @@ function package_details($id=0, $SID="") {
if (!empty($comments)) { if (!empty($comments)) {
while (list($indx, $carr) = each($comments)) { while (list($indx, $carr) = each($comments)) {
print "<tr>\n"; print "<tr>\n";
print " <td colspan='2'>"; print " <td class='boxSoft' colspan='2'>";
print "<img src='/images/pad.gif' height='2'></td></tr>\n"; print "<img src='/images/pad.gif' height='2'></td></tr>\n";
print "<tr>\n"; print "<tr>\n";