closeVotes(); $page = is_numeric($_REQUEST['page'])?$_REQUEST['page']:1; $user = $db->auth(); if ($_REQUEST['withdrawl'] && $_REQUEST['confirm'] && $_REQUEST['id']) { if (!$user) { header("HTTP/1.0 302 Redirect"); header("Location: denied.php"); exit(); } $stmt = $db->getStatement("get decision"); $stmt->bindParam(":decision",$_REQUEST['id']); if ($stmt->execute() && ($decision=$stmt->fetch())) { $name = $user['name']; $tag = $decision['tag']; $title = $decision['title']; $content = $decision['content']; $body = <<
notify("Re: $tag - $title - withdrawn",$body,$tag); } $stmt = $db->getStatement("close decision"); $status = -2; $stmt->bindParam(":status",$status); $stmt->bindParam(":decision",$_REQUEST['id']); $stmt->execute(); } ?>Status | Motion | Actions |
---|---|---|
">
".$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; } ?> |
'.$row['tag']; ?> Due: UTC Proposed: ( UTC) Vote type: Aye|Naye|Abstain: || getStatement("list votes"); $vstmt->execute(array($row['id'])); echo "Votes: "; while ($vrow = $vstmt->fetch()) { echo "".$vrow['name'].": ".$state[$vrow['vote']+1]." "; } } else { echo 'Show Votes '; } ?> |
|
1) { ?>< 9) { ?>> |
|
|
Motion Withdrawn |