From af8f60fe7fab642dff85658acc2b560cc0ed6f20 Mon Sep 17 00:00:00 2001 From: canyonknight Date: Wed, 23 May 2012 13:49:43 -0400 Subject: 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 Signed-off-by: Lukas Fleischer --- web/html/tu.php | 25 ++++---- web/template/tu_details.php | 137 ++++++++++++++++++++++---------------------- web/template/tu_list.php | 112 ++++++++++++++++++------------------ 3 files changed, 137 insertions(+), 137 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); ?> -
-

- - - - - - - - - +
+

+ + + + + + + + +
-

-
- -

- -

- +
+

-

-: - -&SeB=m'> - -N/A - -
-" . gmdate("Y-m-d H:i", $row['Submitted']) . "", "" . username_from_id($row['SubmitterID']) . "") ?>
-:

+ +

+ +

+ -

-\n", htmlspecialchars($row['Agenda'])) ?> -

+

+ : + + + + + N/A + + +
+ " . gmdate("Y-m-d H:i", $row['Submitted']) . "", "" . username_from_id($row['SubmitterID']) . "") ?> +
+ : + +

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

+ \n", htmlspecialchars($row['Agenda'])) ?> +

- -
-

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

-
- + -
-
- -
' method='post'> -
- - - - -
-
- - - -
+
+ + +
+
+ " /> + " /> + " /> + +
+
+ + +
diff --git a/web/template/tu_list.php b/web/template/tu_list.php index 7eb6f323..d8acd713 100644 --- a/web/template/tu_list.php +++ b/web/template/tu_list.php @@ -1,60 +1,58 @@ -
+

- - - - - - - - - - - - - - - - - - + + + +
- -
- - '> - + + + + + + + + + + + + + + + + + + + + + + + + + - - - - - -
+ + + + + + " . $row['User'] . ""; - } else { - print "N/A"; - } - ?> - - - - - - - - - -
+ $q = "SELECT * FROM TU_Votes WHERE VoteID = " . $row['ID'] . " AND UserID = " . uid_from_sid($_COOKIE["AURSID"]); + $result_tulist = db_query($q, $dbh); + if ($result_tulist): + $hasvoted = mysql_num_rows($result_tulist); + else: + $hasvoted = 0; + endif; + if ($hasvoted == 0): ?> + + + + +
-- cgit v1.2.3-24-g4f1b