From cf0718bd43f12c0038e73c63f246a6732823ec49 Mon Sep 17 00:00:00 2001 From: canyonknight Date: Wed, 23 May 2012 13:43:43 -0400 Subject: voters.php: Overhaul to match archweb * Currently voters.php has no navigation links and/or styling. This patch adds the appropriate styling * User PHP alternative syntax for control structures * Change a variable name to more frequently used "atype" * General clean-up of XHTML Signed-off-by: canyonknight Signed-off-by: Lukas Fleischer --- web/html/voters.php | 32 +++++++++++++++++--------------- 1 file changed, 17 insertions(+), 15 deletions(-) (limited to 'web/html') diff --git a/web/html/voters.php b/web/html/voters.php index 02abe29..cf119a6 100644 --- a/web/html/voters.php +++ b/web/html/voters.php @@ -15,26 +15,28 @@ $SID = $_COOKIE['AURSID']; $pkgid = intval($_GET['ID']); $votes = getvotes($pkgid); -$account = account_from_sid($SID); +$atype = account_from_sid($SID); -if ($account == 'Trusted User' || $account == 'Developer') { +html_header(__("Voters")); + +if ($atype == 'Trusted User' || $atype== 'Developer'): ?> - - -

-

Votes for

+ +
+

Votes for

+
+ - -
- - - +
+ +
+
+