mirror of
https://gitlab.archlinux.org/archlinux/aurweb.git
synced 2025-02-03 10:43:03 +01:00
Replace all occurrences of "<?php echo" and "<?php print" by "<?=" to reduce noise in templates. Note that as of PHP 5.4.0, "<?=" is always available and no longer requires "short_open_tag" to be set. Signed-off-by: Lukas Fleischer <archlinux@cryptocrack.de>
76 lines
2 KiB
PHP
76 lines
2 KiB
PHP
<div class="box">
|
|
<h2><?= __("Proposal Details") ?></h2>
|
|
|
|
<?php if ($isrunning == 1): ?>
|
|
<p style="font-weight: bold; color: red">
|
|
<?= __("This vote is still running.") ?>
|
|
</p>
|
|
<?php endif; ?>
|
|
|
|
<p>
|
|
<?= __("User") ?>:
|
|
<b>
|
|
<?php if (!empty($row['User'])): ?>
|
|
<a href="<?= get_uri('/packages/'); ?>?K=<?= $row['User'] ?>&SeB=m"><?= $row['User'] ?></a>
|
|
<?php else: ?>
|
|
N/A
|
|
<?php endif; ?>
|
|
</b>
|
|
<br />
|
|
<?= __("Submitted: %s by %s", "<b>" . gmdate("Y-m-d H:i", $row['Submitted']) . "</b>", "<b>" . username_from_id($row['SubmitterID']) . "</b>") ?>
|
|
<br />
|
|
<?= __("End") ?>:
|
|
<b><?= gmdate("Y-m-d H:i", $row['End']) ?></b>
|
|
</p>
|
|
|
|
<p>
|
|
<?= str_replace("\n", "<br />\n", htmlspecialchars($row['Agenda'])) ?>
|
|
</p>
|
|
|
|
<table>
|
|
<tr>
|
|
<th><?= __("Yes") ?></th>
|
|
<th><?= __("No") ?></th>
|
|
<th><?= __("Abstain") ?></th>
|
|
<th><?= __("Total") ?></th>
|
|
<th><?= __('Voted') ?></th>
|
|
</tr>
|
|
<tr>
|
|
<td><?= $row['Yes'] ?></td>
|
|
<td><?= $row['No'] ?></td>
|
|
<td><?= $row['Abstain'] ?></td>
|
|
<td><?= ($row['Yes'] + $row['No'] + $row['Abstain']) ?></td>
|
|
<td>
|
|
<?php if ($hasvoted == 0): ?>
|
|
<span style="color: red; font-weight: bold"><?= __("No") ?></span>
|
|
<?php else: ?>
|
|
<span style="color: green; font-weight: bold"><?= __("Yes") ?></span>
|
|
<?php endif; ?>
|
|
</td>
|
|
</tr>
|
|
</table>
|
|
</div>
|
|
|
|
<?php if (!$isrunning): ?>
|
|
<div class="box">
|
|
<h2><?= __("Voters"); ?></h2>
|
|
<?= $whovoted; ?>
|
|
</div>
|
|
<?php endif; ?>
|
|
|
|
<div class="box">
|
|
|
|
<?php if ($canvote == 1): ?>
|
|
<form action="<?= get_uri('/tu/'); ?>?id=<?= $row['ID'] ?>" method="post">
|
|
<fieldset>
|
|
<input type="submit" class="button" name="voteYes" value="<?= __("Yes") ?>" />
|
|
<input type="submit" class="button" name="voteNo" value="<?= __("No") ?>" />
|
|
<input type="submit" class="button" name="voteAbstain" value="<?= __("Abstain") ?>" />
|
|
<input type="hidden" name="doVote" value="1" />
|
|
<input type="hidden" name="token" value="<?= htmlspecialchars($_COOKIE['AURSID']) ?>" />
|
|
</fieldset>
|
|
</form>
|
|
<?php else:
|
|
print $errorvote ?>
|
|
<?php endif; ?>
|
|
</div>
|