pearweb_election
[ class tree: pearweb_election ] [ index: pearweb_election ] [ all elements ]

Source for file results.tpl.php

Documentation is available at results.tpl.php

  1. <?php if (!$old)?>
  2. <p><a href="index.php?oldones=1">View Old Election Results</a></p>
  3. <?php else: ?>
  4. <p><a href="index.php">View Current Election Results</a></p>
  5. <?php endif; // if (!$this->old) ?>
  6. <?php if (count($completedelections))?>
  7. <h2>Election Results for Completed Elections:</h2>
  8. <table>
  9.  <tr>
  10.   <th class="form-label_top">Election Issue</th>
  11.   <th class="form-label_top">Election dates</th>
  12.   <th class="form-label_top">Did you vote?</th>
  13.  </tr>
  14. <?php
  15. foreach ($completedelections as $election):
  16.     $class 'vote-inactive';
  17.     if ($election['voted'== 'yes'{
  18.         $class 'vote-complete';
  19.     }
  20. ?>
  21. <tr>
  22.  <td class="<?php echo $class?>"><a href="/election/info.php?election=<?php
  23.     echo $election['id']?>&results=1"><?php echo htmlspecialchars($election['purpose'])?></a></td>
  24.  <td class="<?php echo $class?>"><?php echo $election['votestart'' until ' .
  25.     $election['voteend']?></td>
  26.  <td class="<?php echo $class?>"><?php echo $election['voted']?></td>
  27. </tr>
  28. <?php
  29. endforeach; // foreach ($completedelections as $election):
  30. ?>
  31. </table>
  32. <?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.