Source for file results.tpl.php
Documentation is available at results.tpl.php
<p><a href="index.php?oldones=1">View Old Election Results</a></p>
<p><a href="index.php">View Current Election Results</a></p>
<?php endif; // if (!$this->old) ?>
<?php if (count($completedelections)): ?>
<h2>Election Results for Completed Elections:</h2>
<th class="form-label_top">Election Issue</th>
<th class="form-label_top">Election dates</th>
<th class="form-label_top">Did you vote?</th>
foreach ($completedelections as $election):
$class = 'vote-inactive';
if ($election['voted'] == 'yes') {
$class = 'vote-complete';
<td class=" <?php echo $class; ?>"><a href="/election/info.php?election= <?php
echo $election['id']; ?>&results=1"> <?php echo htmlspecialchars($election['purpose']); ?></a></td>
<td class=" <?php echo $class; ?>"> <?php echo $election['votestart'] . ' until ' .
$election['voteend']; ?></td>
<td class=" <?php echo $class; ?>"> <?php echo $election['voted']; ?></td>
endforeach; // foreach ($completedelections as $election):
<?php endif; // if (count($completedelections)): ?>
Documentation generated on Mon, 11 Mar 2019 15:34:36 -0400 by phpDocumentor 1.4.4. PEAR Logo Copyright © PHP Group 2004.
|