Source for file showresults.tpl.php
Documentation is available at showresults.tpl.php
<?php response_header ('Results'); ?>
<h2>Election Results for <?php echo $info['purpose'] ?>:</h2>
<th class="form-label_left">Election Issue</td>
<td class="form-input"> <?php echo $info['detail'] ?></td>
<th class="form-label_left">Eligible Voters</td>
<td class="form-input"> <?php echo $info['eligiblevoters'] == 1 ?
'PEAR Developers' : 'General PHP Public' ?></td>
<th class="form-label_left">Election dates</th>
<td class="form-input"> <?php echo $info['votestart'] . ' until ' .
$info['voteend']; ?></td>
<th class="form-label_left">Voter turnout</th>
<td class="form-input"> <?php echo number_format($info['turnout'] * 100 , 2 ) ?>%</td>
if ($voteEnd < $currentDate) {
<th class="form-label_left">Results ( <?php echo count($info['winners']) ?> winners)</th>
<tr><th>Vote percentage</th><th>Choice</th><th>Votes</th></td></tr>
foreach ($info['results'] as $i => $result) {
if (in_array($result['choice'], $info['winners'])) {
echo '<tr><td class="vote-winner">' . number_format($result['votepercent'] * 100 , 2 ) .
'%</td><td class="vote-winner"><a href="' . $result['summary_link'] . '">' .
'</a></td><td class="vote-winner">' . number_format($result['votetotal']) .
echo '<tr><td>' . number_format($result['votepercent'] * 100 , 2 ) .
'%</td><td><a href="' . $result['summary_link'] . '">' .
<tr><td> <?php echo number_format($info['abstain'] * 100 , 2 ) ?>%</td><td>Abstained</td><td> <?php echo number_format($info['abstaincount']) ?></td></tr>
if ($voteEnd > $currentDate) {
<th class="form-label_left">Status</th>
<td class="form-input">In Progress until : <?php echo date(DateTime ::RSS , $voteEnd); ?></td>
<a href="/election/"><< Back to elections list</a>
Documentation generated on Mon, 11 Mar 2019 15:34:36 -0400 by phpDocumentor 1.4.4. PEAR Logo Copyright © PHP Group 2004.
|