summaryrefslogtreecommitdiff
path: root/motion.php
diff options
context:
space:
mode:
authorcommunity.cacert.org <community.cacert.org@d4452222-2f33-11de-9270-010000000000>2009-05-29 08:06:52 +0000
committercommunity.cacert.org <community.cacert.org@d4452222-2f33-11de-9270-010000000000>2009-05-29 08:06:52 +0000
commit9ac3298bf43024f1669f15ee55f6528f8e1b029e (patch)
tree3aef2427f190b022f48dee746e93ac5f6905c0a1 /motion.php
parent1d33c70c0e791bed95138a2d6f2d1f901642ba5e (diff)
downloadcacert-boardvoting-9ac3298bf43024f1669f15ee55f6528f8e1b029e.tar.gz
cacert-boardvoting-9ac3298bf43024f1669f15ee55f6528f8e1b029e.tar.xz
cacert-boardvoting-9ac3298bf43024f1669f15ee55f6528f8e1b029e.zip
add show outstanding votes option for board members
git-svn-id: http://svn.cacert.cl/Software/Voting/vote@47 d4452222-2f33-11de-9270-010000000000
Diffstat (limited to 'motion.php')
-rw-r--r--motion.php12
1 files changed, 10 insertions, 2 deletions
diff --git a/motion.php b/motion.php
index f2accea..96412ce 100644
--- a/motion.php
+++ b/motion.php
@@ -47,7 +47,9 @@
$due = $decision['due']." UTC";
$quorum = $decision['quorum'];
$majority = $decision['majority'];
- $voteurl = "https://".$_SERVER['HTTP_HOST'].":".$_SERVER['SERVER_PORT'].preg_replace('/motion\.php/','vote.php',$_SERVER['REQUEST_URI'])."?motion=".$decision['id'];
+ $baseurl = "https://".$_SERVER['HTTP_HOST'].":".$_SERVER['SERVER_PORT'].preg_replace('/motion\.php/','',$_SERVER['REQUEST_URI']);
+ $voteurl = $baseurl."vote.php?motion=".$decision['id'];
+ $unvoted = $baseurl."motions.php?unvoted=1";
$body = <<<BODY
Dear Board,
@@ -69,6 +71,8 @@ Please be aware, that if you have voted already your vote is still registered an
If this modification has an impact on how you wish to vote, you are responsible for voting
again.
+To see all your outstanding votes : $unvoted
+
Kind regards,
the voting system
BODY;
@@ -106,7 +110,9 @@ BODY;
$due = $decision['due']." UTC";
$quorum = $decision['quorum'];
$majority = $decision['majority'];
- $voteurl = "https://".$_SERVER['HTTP_HOST'].":".$_SERVER['SERVER_PORT'].preg_replace('/motion\.php/','vote.php',$_SERVER['REQUEST_URI'])."?motion=".$decision['id'];
+ $baseurl = "https://".$_SERVER['HTTP_HOST'].":".$_SERVER['SERVER_PORT'].preg_replace('/motion\.php/','',$_SERVER['REQUEST_URI']);
+ $voteurl = $baseurl."vote.php?motion=".$decision['id'];
+ $unvoted = $baseurl."motions.php?unvoted=1";
$body = <<<BODY
Dear Board,
@@ -124,6 +130,8 @@ Aye: $voteurl&vote=1
Naye: $voteurl&vote=-1
Abstain: $voteurl&vote=0
+To see all your outstanding votes : $unvoted
+
Kind regards,
the voting system
BODY;