mirror of
https://gitlab.archlinux.org/archlinux/aurweb.git
synced 2025-02-03 10:43:03 +01:00
Remove a boatload of inline table styles
Replacing with CSS styles where appropriate. A previously unused CSS style is tweaked in the stylesheet to match most of what was done via non-CSS styling. Signed-off-by: Dan McGee <dan@archlinux.org> Signed-off-by: Lukas Fleischer <archlinux@cryptocrack.de>
This commit is contained in:
parent
10355ec959
commit
8dc7b37909
8 changed files with 35 additions and 40 deletions
|
@ -244,13 +244,14 @@ table.center {
|
||||||
}
|
}
|
||||||
table.results {
|
table.results {
|
||||||
padding: 0px;
|
padding: 0px;
|
||||||
|
width: 100%;
|
||||||
border-collapse: collapse;
|
border-collapse: collapse;
|
||||||
}
|
}
|
||||||
.results th {
|
.results th {
|
||||||
background-color: #e1e3e6;
|
text-align: center;
|
||||||
border-bottom: 1px solid #46494d;
|
}
|
||||||
border-top: 1px solid #46494d;
|
.results th, .results td {
|
||||||
padding: 0px 5px 0px 0px;
|
padding: 1px;
|
||||||
}
|
}
|
||||||
.results th>a {
|
.results th>a {
|
||||||
text-decoration: none;
|
text-decoration: none;
|
||||||
|
|
|
@ -50,7 +50,7 @@ echo __(
|
||||||
<br />
|
<br />
|
||||||
<?php echo __('Some packages may be provided as binaries in [community].'); ?>
|
<?php echo __('Some packages may be provided as binaries in [community].'); ?>
|
||||||
</p>
|
</p>
|
||||||
<table border='0' cellpadding='0' cellspacing='3' width='90%'>
|
<table>
|
||||||
<tr>
|
<tr>
|
||||||
<td class='boxSoft' valign='top'>
|
<td class='boxSoft' valign='top'>
|
||||||
<?php updates_table($dbh); ?>
|
<?php updates_table($dbh); ?>
|
||||||
|
|
|
@ -449,7 +449,7 @@ html_header("Submit");
|
||||||
|
|
||||||
<form action='pkgsubmit.php' method='post' enctype='multipart/form-data'>
|
<form action='pkgsubmit.php' method='post' enctype='multipart/form-data'>
|
||||||
<div> <input type='hidden' name='pkgsubmit' value='1' /> </div>
|
<div> <input type='hidden' name='pkgsubmit' value='1' /> </div>
|
||||||
<table border='0' cellspacing='5'>
|
<table>
|
||||||
<tr>
|
<tr>
|
||||||
<td class='f4' align='right'><?php print __("Package Category"); ?>:</td>
|
<td class='f4' align='right'><?php print __("Package Category"); ?>:</td>
|
||||||
<td class='f4' align='left'>
|
<td class='f4' align='left'>
|
||||||
|
|
|
@ -35,7 +35,7 @@ function display_account_form($UTYPE,$A,$U="",$T="",$S="",
|
||||||
print "<input type='hidden' name='ID' value='".$UID."' />\n";
|
print "<input type='hidden' name='ID' value='".$UID."' />\n";
|
||||||
}
|
}
|
||||||
print "</fieldset>";
|
print "</fieldset>";
|
||||||
print "<table border='0' cellpadding='0' cellspacing='0' width='80%' style=\"margin:0 auto;\">\n";
|
print "<table>\n";
|
||||||
print "<tr><td colspan='2'> </td></tr>\n";
|
print "<tr><td colspan='2'> </td></tr>\n";
|
||||||
|
|
||||||
print "<tr>";
|
print "<tr>";
|
||||||
|
@ -415,13 +415,7 @@ function search_results_page($UTYPE,$O=0,$SB="",$U="",$T="",
|
||||||
} else {
|
} else {
|
||||||
$num_rows = mysql_num_rows($result);
|
$num_rows = mysql_num_rows($result);
|
||||||
if ($num_rows) {
|
if ($num_rows) {
|
||||||
print "<table border='0' cellpadding='0'";
|
print "<table class='results'>\n";
|
||||||
print " cellspacing='0' width='90%'";
|
|
||||||
print " style=\"margin:0 auto\">\n";
|
|
||||||
print "<tr>";
|
|
||||||
print "<td colspan='2'>";
|
|
||||||
print "<table border='0' cellpadding='0'";
|
|
||||||
print " cellspacing='0' width='100%'>\n";
|
|
||||||
print "<tr>";
|
print "<tr>";
|
||||||
print "<th class='header'>";
|
print "<th class='header'>";
|
||||||
print "<span class='f2'>".__("Username")."</span></th>";
|
print "<span class='f2'>".__("Username")."</span></th>";
|
||||||
|
@ -483,8 +477,8 @@ function search_results_page($UTYPE,$O=0,$SB="",$U="",$T="",
|
||||||
$i++;
|
$i++;
|
||||||
}
|
}
|
||||||
print "</table>\n";
|
print "</table>\n";
|
||||||
print "</td></tr>\n";
|
|
||||||
|
|
||||||
|
print "<table class='results'>\n";
|
||||||
print "<tr>";
|
print "<tr>";
|
||||||
print "<td align='left'>";
|
print "<td align='left'>";
|
||||||
print "<form action='account.php' method='post'>\n";
|
print "<form action='account.php' method='post'>\n";
|
||||||
|
@ -540,7 +534,7 @@ function display_account_info($U="", $T="", $E="", $R="", $I="") {
|
||||||
|
|
||||||
global $SUPPORTED_LANGS;
|
global $SUPPORTED_LANGS;
|
||||||
|
|
||||||
print "<table border='0' cellpadding='0' cellspacing='0' width='33%' style=\"margin:0 auto;\">\n";
|
print "<table>\n";
|
||||||
print " <tr>\n";
|
print " <tr>\n";
|
||||||
print " <td colspan='2'> </td>\n";
|
print " <td colspan='2'> </td>\n";
|
||||||
print " </tr>\n";
|
print " </tr>\n";
|
||||||
|
|
|
@ -12,32 +12,32 @@
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
<table width='100%' cellspacing='0' cellpadding='2'>
|
<table class='results'>
|
||||||
<tr>
|
<tr>
|
||||||
<?php if ($SID): ?>
|
<?php if ($SID): ?>
|
||||||
<th style='border-bottom: #666 1px solid; vertical-align: bottom'> </th>
|
<th class='header'> </th>
|
||||||
<?php endif; ?>
|
<?php endif; ?>
|
||||||
|
|
||||||
<th style='border-bottom: #666 1px solid; vertical-align: bottom'><span class='f2'>
|
<th class='header'><span class='f2'>
|
||||||
<a href='?<?php print mkurl('SB=c&SO=' . $SO_next) ?>'><?php print __("Category") ?></a>
|
<a href='?<?php print mkurl('SB=c&SO=' . $SO_next) ?>'><?php print __("Category") ?></a>
|
||||||
</span></th>
|
</span></th>
|
||||||
<th style='border-bottom: #666 1px solid; vertical-align: bottom; text-align: center;'><span class='f2'>
|
<th class='header'><span class='f2'>
|
||||||
<a href='?<?php print mkurl('SB=n&SO=' . $SO_next) ?>'><?php print __("Name") ?></a>
|
<a href='?<?php print mkurl('SB=n&SO=' . $SO_next) ?>'><?php print __("Name") ?></a>
|
||||||
</span></th>
|
</span></th>
|
||||||
<th style='border-bottom: #666 1px solid; vertical-align: bottom'><span class='f2'>
|
<th class='header'><span class='f2'>
|
||||||
<a href='?<?php print mkurl('SB=v&SO=' . $SO_next) ?>'><?php print __("Votes") ?></a>
|
<a href='?<?php print mkurl('SB=v&SO=' . $SO_next) ?>'><?php print __("Votes") ?></a>
|
||||||
</span></th>
|
</span></th>
|
||||||
|
|
||||||
<?php if ($SID): ?>
|
<?php if ($SID): ?>
|
||||||
<th style='border-bottom: #666 1px solid; vertical-align: bottom'><span class='f2'>
|
<th class='header'><span class='f2'>
|
||||||
<a href='?<?php print mkurl('SB=w&SO=' . $SO_next) ?>'><?php print __("Voted") ?></a>
|
<a href='?<?php print mkurl('SB=w&SO=' . $SO_next) ?>'><?php print __("Voted") ?></a>
|
||||||
</span></th>
|
</span></th>
|
||||||
<th style='border-bottom: #666 1px solid; vertical-align: bottom'><span class='f2'>
|
<th class='header'><span class='f2'>
|
||||||
<a href='?<?php print mkurl('SB=o&SO=' . $SO_next) ?>'><?php print __("Notify") ?></a>
|
<a href='?<?php print mkurl('SB=o&SO=' . $SO_next) ?>'><?php print __("Notify") ?></a>
|
||||||
</span></th>
|
</span></th>
|
||||||
<?php endif; ?>
|
<?php endif; ?>
|
||||||
<th style='border-bottom: #666 1px solid; vertical-align: bottom; text-align: center;'><span class='f2'><?php print __("Description") ?></span></th>
|
<th class='header'><span class='f2'><?php print __("Description") ?></span></th>
|
||||||
<th style='border-bottom: #666 1px solid; vertical-align: bottom'><span class='f2'>
|
<th class='header'><span class='f2'>
|
||||||
<a href='?<?php print mkurl('SB=m&SO=' . $SO_next) ?>'><?php print __("Maintainer") ?></a>
|
<a href='?<?php print mkurl('SB=m&SO=' . $SO_next) ?>'><?php print __("Maintainer") ?></a>
|
||||||
</span></th>
|
</span></th>
|
||||||
</tr>
|
</tr>
|
||||||
|
|
|
@ -1,6 +1,6 @@
|
||||||
<br />
|
<br />
|
||||||
<form action='account.php' method='post'>
|
<form action='account.php' method='post'>
|
||||||
<table border='0' cellpadding='0' cellspacing='0' width='80%' style="margin:0 auto;">
|
<table>
|
||||||
|
|
||||||
<tr>
|
<tr>
|
||||||
<td align='left'><?php print __("Username"); ?>:</td>
|
<td align='left'><?php print __("Username"); ?>:</td>
|
||||||
|
|
|
@ -24,13 +24,13 @@ N/A
|
||||||
<?php print str_replace("\n", "<br />\n", htmlspecialchars($row['Agenda'])) ?>
|
<?php print str_replace("\n", "<br />\n", htmlspecialchars($row['Agenda'])) ?>
|
||||||
</p>
|
</p>
|
||||||
|
|
||||||
<table class="boxSoft" width='100%' cellspacing='0' cellpadding='2'>
|
<table class="boxSoft">
|
||||||
<tr>
|
<tr>
|
||||||
<th style='border-bottom: #666 1px solid; vertical-align: bottom'><span class='f2'><?php print __("Yes") ?></span></th>
|
<th class='boxSoftTitle'><span class='f2'><?php print __("Yes") ?></span></th>
|
||||||
<th style='border-bottom: #666 1px solid; vertical-align: bottom'><span class='f2'><?php print __("No") ?></span></th>
|
<th class='boxSoftTitle'><span class='f2'><?php print __("No") ?></span></th>
|
||||||
<th style='border-bottom: #666 1px solid; vertical-align: bottom'><span class='f2'><?php print __("Abstain") ?></span></th>
|
<th class='boxSoftTitle'><span class='f2'><?php print __("Abstain") ?></span></th>
|
||||||
<th style='border-bottom: #666 1px solid; vertical-align: bottom'><span class='f2'><?php print __("Total") ?></span></th>
|
<th class='boxSoftTitle'><span class='f2'><?php print __("Total") ?></span></th>
|
||||||
<th style='border-bottom: #666 1px solid; vertical-align: bottom'><span class='f2'><?php print __('Voted') ?></span></th>
|
<th class='boxSoftTitle'><span class='f2'><?php print __('Voted') ?></span></th>
|
||||||
</tr>
|
</tr>
|
||||||
<tr>
|
<tr>
|
||||||
<td class='data1'><span class='f5'><span class='blue'><?php print $row['Yes'] ?></span></span></td>
|
<td class='data1'><span class='f5'><span class='blue'><?php print $row['Yes'] ?></span></span></td>
|
||||||
|
|
|
@ -2,17 +2,17 @@
|
||||||
<div class="pgboxtitle" style="text-align:right;">
|
<div class="pgboxtitle" style="text-align:right;">
|
||||||
<span class='f3'><?php print $type ?></span>
|
<span class='f3'><?php print $type ?></span>
|
||||||
</div>
|
</div>
|
||||||
<table width='100%' cellspacing='0' cellpadding='2'>
|
<table class='results'>
|
||||||
<tr>
|
<tr>
|
||||||
<th style='border-bottom: #666 1px solid; vertical-align: bottom'><span class='f2'><?php print __("Proposal") ?></span></th>
|
<th class='header'><span class='f2'><?php print __("Proposal") ?></span></th>
|
||||||
<th style='border-bottom: #666 1px solid; vertical-align: bottom'><span class='f2'>
|
<th class='header'><span class='f2'>
|
||||||
<a href='?off=<?php print $off ?>&by=<?php print $by_next ?>'><?php print __("Start") ?></a>
|
<a href='?off=<?php print $off ?>&by=<?php print $by_next ?>'><?php print __("Start") ?></a>
|
||||||
</span></th>
|
</span></th>
|
||||||
<th style='border-bottom: #666 1px solid; vertical-align: bottom'><span class='f2'><?php print __("End") ?></span></th>
|
<th class='header'><span class='f2'><?php print __("End") ?></span></th>
|
||||||
<th style='border-bottom: #666 1px solid; vertical-align: bottom'><span class='f2'><?php print __("User") ?></span></th>
|
<th class='header'><span class='f2'><?php print __("User") ?></span></th>
|
||||||
<th style='border-bottom: #666 1px solid; vertical-align: bottom'><span class='f2'><?php print __("Yes") ?></span></th>
|
<th class='header'><span class='f2'><?php print __("Yes") ?></span></th>
|
||||||
<th style='border-bottom: #666 1px solid; vertical-align: bottom'><span class='f2'><?php print __("No") ?></span></th>
|
<th class='header'><span class='f2'><?php print __("No") ?></span></th>
|
||||||
<th style='border-bottom: #666 1px solid; vertical-align: bottom'><span class='f2'><?php print __('Voted') ?></span></th>
|
<th class='header'><span class='f2'><?php print __('Voted') ?></span></th>
|
||||||
</tr>
|
</tr>
|
||||||
<?php if (mysql_num_rows($result) == 0) { ?>
|
<?php if (mysql_num_rows($result) == 0) { ?>
|
||||||
<tr><td align='center' colspan='0'><?php print __("No results found.") ?></td></tr>
|
<tr><td align='center' colspan='0'><?php print __("No results found.") ?></td></tr>
|
||||||
|
|
Loading…
Add table
Reference in a new issue