summaryrefslogtreecommitdiffstats
path: root/web/html
diff options
context:
space:
mode:
authorcanyonknight <canyonknight@gmail.com>2012-05-23 19:49:43 +0200
committerLukas Fleischer <archlinux@cryptocrack.de>2012-07-06 11:26:26 +0200
commitaf8f60fe7fab642dff85658acc2b560cc0ed6f20 (patch)
treea08a8e2f2479dfa5f5dae94321d71a872586eb46 /web/html
parentd2480e8b9d3d0f946d57fa9422811cb37296b8b4 (diff)
downloadaur-af8f60fe7fab642dff85658acc2b560cc0ed6f20.tar.gz
aur-af8f60fe7fab642dff85658acc2b560cc0ed6f20.tar.xz
Overhaul trusted user proposal page to match archweb
* Change all boxes and other CSS to match archweb * General fixups in XHTML formatting * Change results table to match color scheme everywhere else Signed-off-by: canyonknight <canyonknight@gmail.com> Signed-off-by: Lukas Fleischer <archlinux@cryptocrack.de>
Diffstat (limited to 'web/html')
-rw-r--r--web/html/tu.php25
1 files changed, 14 insertions, 11 deletions
diff --git a/web/html/tu.php b/web/html/tu.php
index 9d4fc508..362679a3 100644
--- a/web/html/tu.php
+++ b/web/html/tu.php
@@ -154,17 +154,20 @@ if ($atype == "Trusted User" || $atype == "Developer") {
$qnext = "SELECT ID FROM TU_VoteInfo";
$nextresult = db_query($qnext, $dbh);
?>
-<div class="pgbox">
-<p><a href='addvote.php'><?php print __("Add Proposal") ?></a></p>
-
- <?php if (mysql_num_rows($result)) { $by = htmlentities($by, ENT_QUOTES); ?>
- <?php if ($off != 0) { $back = (($off - $limit) <= 0) ? 0 : $off - $limit; ?>
- <a href='tu.php?off=<?php print $back ?>&amp;by=<?php print $by ?>'><?php print __("Back") ?></a>
- <?php } ?>
- <?php if (($off + $limit) < mysql_num_rows($nextresult)) { $forw = $off + $limit; ?>
- <a href='tu.php?off=<?php print $forw ?>&amp;by=<?php print $by ?>'><?php print __("Next") ?></a>
- <?php } ?>
- <?php } ?>
+<div class="box">
+ <p><a href="addvote.php"><?php print __("Add Proposal") ?></a></p>
+
+ <?php if (mysql_num_rows($result)):
+ $by = htmlentities($by, ENT_QUOTES); ?>
+ <?php if ($off != 0):
+ $back = (($off - $limit) <= 0) ? 0 : $off - $limit; ?>
+ <a href='tu.php?off=<?php print $back ?>&amp;by=<?php print $by ?>'><?php print __("Back") ?></a>
+ <?php endif; ?>
+ <?php if (($off + $limit) < mysql_num_rows($nextresult)):
+ $forw = $off + $limit; ?>
+ <a href="tu.php?off=<?php print $forw ?>&amp;by=<?php print $by ?>"><?php print __("Next") ?></a>
+ <?php endif; ?>
+ <?php endif; ?>
</div>
<?php
}