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/template/tu_details.php | 137 ++++++++++++++++++++++---------------------- web/template/tu_list.php | 112 ++++++++++++++++++------------------ 2 files changed, 123 insertions(+), 126 deletions(-) (limited to 'web/template') diff --git a/web/template/tu_details.php b/web/template/tu_details.php index 45c7f9a..33e87a8 100644 --- a/web/template/tu_details.php +++ b/web/template/tu_details.php @@ -1,76 +1,75 @@ -
-

-
- -

- -

- +
+

-

-: - -&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 7eb6f32..d8acd71 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-54-g00ecf