blob: b926615afb84e094ce934b996330e17b60fdf9ac (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
|
<div class="pgbox">
<div class="pgboxtitle"><span class="f3"><?php print _("Proposal Details") ?></span></div>
<div class="pgboxbody">
<?php
if ($isrunning == 1) { ?>
<p style='font-weight: bold; color: red'>
<?php print _("This vote is still running.") ?>
</p>
<?php
} ?>
<p>
<?php echo _('User') ?>: <b>
<?php if (!empty($row['User'])) { ?>
<a href='packages.php?K=<?php print $row['User'] ?>&SeB=m'><?php print $row['User'] ?></a>
<?php } else { ?>
N/A
<?php } ?>
</b><br />
<?php printf(_("Submitted: %s by %s"), "<b>" . gmdate("r", $row['Submitted']) . "</b>", "<b>" . username_from_id($row['SubmitterID']) . "</b>") ?><br />
<?php print _('End') ?>: <b><?php print gmdate("r", $row['End']) ?></b></p>
<p>
<?php print str_replace("\n", "<br />\n", htmlspecialchars($row['Agenda'])) ?>
</p>
<table class="boxSoft" width='100%' cellspacing='0' cellpadding='2'>
<tr>
<th style='border-bottom: #666 1px solid; vertical-align: bottom'><span class='f2'><?php print _("Yes") ?></span></th>
<th style='border-bottom: #666 1px solid; vertical-align: bottom'><span class='f2'><?php print _("No") ?></span></th>
<th style='border-bottom: #666 1px solid; vertical-align: bottom'><span class='f2'><?php print _("Abstain") ?></span></th>
<th style='border-bottom: #666 1px solid; vertical-align: bottom'><span class='f2'><?php print _("Total") ?></span></th>
<th style='border-bottom: #666 1px solid; vertical-align: bottom'><span class='f2'><?php print _('Voted') ?></span></th>
</tr>
<tr>
<td class='data1'><span class='f5'><span class='blue'><?php print $row['Yes'] ?></span></span></td>
<td class='data1'><span class='f5'><span class='blue'><?php print $row['No'] ?></span></span></td>
<td class='data1'><span class='f5'><span class='blue'><?php print $row['Abstain'] ?></span></span></td>
<td class='data1'><span class='f5'><span class='blue'><?php print ($row['Yes'] + $row['No'] + $row['Abstain']) ?></span></span></td>
<td class='data1'><span class='f5'><span class='blue'>
<?php if ($hasvoted == 0) { ?>
<span style='color: red; font-weight: bold'><?php print _("No") ?></span>
<?php } else { ?>
<span style='color: green; font-weight: bold'><?php print _("Yes") ?></span>
<?php } ?>
</span></span></td>
</tr>
</table>
</div></div>
<?php
if (!$isrunning) { ?>
<div class="pgbox">
<div class="pgboxtitle">
<span class="f3"><?php echo _('Voters'); ?></span>
</div>
<div class="pgboxbody">
<?php echo $whovoted; ?>
</div>
</div>
<?php
} ?>
<div class='pgbox'>
<div class='pgboxbody'>
<?php if ($canvote == 1) { ?>
<form action='tu.php?id=<?php print $row['ID'] ?>' method='post'>
<fieldset>
<input type='submit' class='button' name='voteYes' value='<?php print _("Yes") ?>' />
<input type='submit' class='button' name='voteNo' value='<?php print _("No") ?>' />
<input type='submit' class='button' name='voteAbstain' value='<?php print _("Abstain") ?>' />
<input type='hidden' name='doVote' value='1' />
</fieldset>
</form>
<?php } else { ?>
<?php print $errorvote ?>
<?php } ?>
</div></div>
|