summaryrefslogtreecommitdiff
path: root/motions.php
diff options
context:
space:
mode:
authorcommunity.cacert.org <community.cacert.org@d4452222-2f33-11de-9270-010000000000>2009-05-26 03:19:11 +0000
committercommunity.cacert.org <community.cacert.org@d4452222-2f33-11de-9270-010000000000>2009-05-26 03:19:11 +0000
commit2877a513fed891d90878f0f672b67f2582ab48e8 (patch)
tree82c828513c2f140e8696e68a31ec3a887fadb186 /motions.php
parent91afc1bbad9621364b92ae83f9d1c0a2bc7a1594 (diff)
downloadcacert-boardvoting-2877a513fed891d90878f0f672b67f2582ab48e8.tar.gz
cacert-boardvoting-2877a513fed891d90878f0f672b67f2582ab48e8.tar.xz
cacert-boardvoting-2877a513fed891d90878f0f672b67f2582ab48e8.zip
add showvotes functionality and remove notification when people vote
git-svn-id: http://svn.cacert.cl/Software/Voting/vote@40 d4452222-2f33-11de-9270-010000000000
Diffstat (limited to 'motions.php')
-rw-r--r--motions.php11
1 files changed, 11 insertions, 0 deletions
diff --git a/motions.php b/motions.php
index 27d1632..bbf1825 100644
--- a/motions.php
+++ b/motions.php
@@ -43,6 +43,17 @@
<i>Required Votes: <?php echo($row['quorum']); ?></i><br/>
<i>Majority: <?php echo($row['majority']); ?>%</i><br/>
<i>Aye|Naye|Abstain: <?php echo($row['ayes']); ?>|<?php echo($row['nayes']); ?>|<?php echo($row['abstains']); ?></i><br/>
+ <?php
+ if ($row['status'] ==0 || $_REQUEST['showvotes']) {
+ $state = array('Naye','Abstain','Aye');
+ $vstmt = $db->getStatement("list votes");
+ $vstmt->execute(array($row['id']));
+ echo "<i>Votes:</i><br/>";
+ while ($vrow = $vstmt->fetch()) {
+ echo "<i>".$vrow['name']." ".$state[$vrow['vote']+1]."</i><br/>";
+ }
+ }
+ ?>
</td><?php
?><td class="actions">
<?php