From df75621d232405c0ac3c6211f4c72ffd851bee67 Mon Sep 17 00:00:00 2001 From: Angel 'angvp' Velasquez Date: Fri, 13 Feb 2009 15:27:05 -0500 Subject: List TUs that voted on a proposal. This patch lists who voted on a proposal after the proposal is closed. Signed-off-by: Loui Chang --- web/html/tu.php | 13 +++++++++++++ 1 file changed, 13 insertions(+) (limited to 'web/html/tu.php') diff --git a/web/html/tu.php b/web/html/tu.php index 67addfb..b400777 100644 --- a/web/html/tu.php +++ b/web/html/tu.php @@ -38,6 +38,19 @@ if ($atype == "Trusted User" OR $atype == "Developer") { $qvoted.= "UserID = " . uid_from_sid($_COOKIE["AURSID"]); $hasvoted = mysql_num_rows(db_query($qvoted, $dbh)); + # List voters of a proposal. + $qwhoVoted = "SELECT tv.UserID,U.Username + FROM TU_Votes tv, Users U + WHERE tv.VoteID = {$row['ID']} + AND tv.UserID = U.ID + ORDER BY Username"; + $result = db_query($qwhoVoted,$dbh); + if (mysql_num_rows($result) > 0) { + while ($who = mysql_fetch_assoc($result)) { + $whovoted.= ''.$who['Username'].' '; + } + } + $canvote = 1; $errorvote = ""; if ($isrunning == 0) { -- cgit v1.2.3-54-g00ecf