mirror of
https://gitlab.archlinux.org/archlinux/aurweb.git
synced 2025-02-03 10:43:03 +01:00
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 <louipc.ist@gmail.com>
This commit is contained in:
parent
8a54ae0a8c
commit
df75621d23
2 changed files with 27 additions and 1 deletions
|
@ -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.= '<a href="account.php?Action=AccountInfo&ID='.$who['UserID'].'">'.$who['Username'].'</a> ';
|
||||
}
|
||||
}
|
||||
|
||||
$canvote = 1;
|
||||
$errorvote = "";
|
||||
if ($isrunning == 0) {
|
||||
|
|
|
@ -44,7 +44,20 @@ N/A
|
|||
</table>
|
||||
</table>
|
||||
</div></div>
|
||||
<br />
|
||||
|
||||
<?php
|
||||
if (!$isrunning) { ?>
|
||||
<div class="pgbox">
|
||||
<div class="pgboxtitle">
|
||||
<span class="f3"><?php echo __('Voters'); ?></span>
|
||||
</div>
|
||||
<div class="pgboxbody">
|
||||
<?php echo $whovoted; ?>
|
||||
</div>
|
||||
</div>
|
||||
<?php
|
||||
} ?>
|
||||
|
||||
<div class='pgbox'>
|
||||
<div class='pgboxtitle'><span class='f3'><?php print __("Vote Actions") ?></span></div>
|
||||
<div class='pgboxbody'>
|
||||
|
|
Loading…
Add table
Reference in a new issue