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; }