From 8094fd2df48244899e0e76fc4cce4c586aa1ce67 Mon Sep 17 00:00:00 2001 From: "community.cacert.org" Date: Fri, 29 May 2009 03:21:23 +0000 Subject: [PATCH] add withdrawl motion option git-svn-id: http://svn.cacert.cl/Software/Voting/vote@43 d4452222-2f33-11de-9270-010000000000 --- motions.php | 42 ++++++++++++++++++++++++++++++++++++++---- styles.css | 3 +++ 2 files changed, 41 insertions(+), 4 deletions(-) diff --git a/motions.php b/motions.php index fe91f39..7784e23 100644 --- a/motions.php +++ b/motions.php @@ -18,23 +18,33 @@ Actions getStatement("close decision"); + $status = -2; + $stmt->bindParam(":status",$status); + $stmt->bindParam(":decision",$_REQUEST['id']); + $stmt->execute(); + } + if ($_REQUEST['motion']) { $stmt = $db->getStatement("list decision"); - $stmt->execute(array($_REQUEST['id'])); + $stmt->execute(array($_REQUEST['motion'])); } else { $stmt = $db->getStatement("list decisions"); $stmt->execute(array($page)); } $items = 0; + $id = -1; while ($row = $stmt->fetch()) { $items++; + $id = $row['id']; ?> - "> + "> ".$row['due']." UTC"; break; case 1: echo "Approved
".$row['modified']." UTC"; break; case -1: echo "Declined
".$row['modified']." UTC"; break; + case -2: echo "Withdrawn
".$row['modified']." UTC"; break; } ?> @@ -58,7 +68,7 @@ echo "".$vrow['name']." ".$state[$vrow['vote']+1]."
"; } } else { - echo 'Show Votes
'; + echo 'Show Votes
'; } ?> @@ -72,6 +82,7 @@
  • Naye
  • Proxy Vote
  • Modify
  • +
  • Withdrawl
  • + + + + + Motion Withdrawn + +
    + +
    + + + + diff --git a/styles.css b/styles.css index 0610148..1cf3d72 100644 --- a/styles.css +++ b/styles.css @@ -16,6 +16,9 @@ td.approved { td.declined { color:red; } +td.withdrawn { + color:red; +} td.pending { color:blue; }