summaryrefslogtreecommitdiffstats
path: root/web/html
diff options
context:
space:
mode:
authorLukas Fleischer <archlinux@cryptocrack.de>2011-03-11 18:54:44 +0100
committerLukas Fleischer <archlinux@cryptocrack.de>2011-03-11 19:00:50 +0100
commit7f9e498e48c4e5d056ee988a23dedb8ca98b11cd (patch)
tree2207b70001651eca6ac8f9500ec679e8edf98382 /web/html
parentc34bebf42859019998c7ff3c03b570295ae83ebe (diff)
downloadaur-7f9e498e48c4e5d056ee988a23dedb8ca98b11cd.tar.gz
aur-7f9e498e48c4e5d056ee988a23dedb8ca98b11cd.tar.xz
Fix broken XHTML.
Fix a lot of invalid XHTML in the templates and actions. There might still be some legacy code left, but this should cover most of it. Signed-off-by: Lukas Fleischer <archlinux@cryptocrack.de>
Diffstat (limited to 'web/html')
-rw-r--r--web/html/addvote.php16
-rw-r--r--web/html/css/containers.css3
-rw-r--r--web/html/tu.php2
-rw-r--r--web/html/voters.php2
4 files changed, 15 insertions, 8 deletions
diff --git a/web/html/addvote.php b/web/html/addvote.php
index 192b396b..5936d563 100644
--- a/web/html/addvote.php
+++ b/web/html/addvote.php
@@ -73,18 +73,22 @@ if ($atype == "Trusted User" OR $atype == "Developer") {
<div class="pgboxtitle"><?php print __("Submit a proposal to vote on.") ?></div>
<div class="pgboxbody">
<form action='addvote.php' method='post'>
+<p>
<b><?php print __('Applicant/TU') ?></b>
-<input type='text' name='user' value='<?php if (!empty($_POST['user'])) { print htmlentities($_POST['user'], ENT_QUOTES); } ?>'>
+<input type='text' name='user' value='<?php if (!empty($_POST['user'])) { print htmlentities($_POST['user'], ENT_QUOTES); } ?>' />
<?php print __("(empty if not applicable)") ?>
-<br />
+</p>
+<p>
<b><?php print __('Length in days') ?></b>
-<input type='text' name='length' value='<?php if (!empty($_POST['length'])) { print htmlentities($_POST['length'], ENT_QUOTES); } ?>'>
+<input type='text' name='length' value='<?php if (!empty($_POST['length'])) { print htmlentities($_POST['length'], ENT_QUOTES); } ?>' />
<?php print __("(defaults to 7 if empty)") ?>
-<br />
+</p>
+<p>
<b><?php print __('Proposal') ?></b><br />
<textarea name='agenda' rows='25' cols='80'><?php if (!empty($_POST['agenda'])) { print htmlentities($_POST['agenda']); } ?></textarea><br />
-<input type='hidden' name='addVote' value='1'>
-<input type='submit' class='button' value='<?php print __('Submit'); ?>'>
+<input type='hidden' name='addVote' value='1' />
+<input type='submit' class='button' value='<?php print __('Submit'); ?>' />
+</p>
</form>
</div>
</div>
diff --git a/web/html/css/containers.css b/web/html/css/containers.css
index db5bd0a1..237950f5 100644
--- a/web/html/css/containers.css
+++ b/web/html/css/containers.css
@@ -161,6 +161,9 @@ th.header {
border-bottom: #666 1px solid;
vertical-align: bottom;
}
+fieldset {
+ border: none;
+}
input,
textarea,
select {
diff --git a/web/html/tu.php b/web/html/tu.php
index 65f00c0b..941e6eda 100644
--- a/web/html/tu.php
+++ b/web/html/tu.php
@@ -47,7 +47,7 @@ if ($atype == "Trusted User" OR $atype == "Developer") {
$result = db_query($qwhoVoted,$dbh);
if (mysql_num_rows($result) > 0) {
while ($who = mysql_fetch_assoc($result)) {
- $whovoted.= '<a href="account.php?Action=AccountInfo&ID='.$who['UserID'].'">'.$who['Username'].'</a> ';
+ $whovoted.= '<a href="account.php?Action=AccountInfo&amp;ID='.$who['UserID'].'">'.$who['Username'].'</a> ';
}
}
diff --git a/web/html/voters.php b/web/html/voters.php
index a3b24690..f4d72f40 100644
--- a/web/html/voters.php
+++ b/web/html/voters.php
@@ -28,7 +28,7 @@ if ($account == 'Trusted User' || $account == 'Developer') {
$uid = $row['UsersID'];
$username = $row['Username'];
?>
-<a href="account.php?Action=AccountInfo&ID=<?php echo $uid ?>">
+<a href="account.php?Action=AccountInfo&amp;ID=<?php echo $uid ?>">
<?php echo $username ?></a><br />
<?php
}