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

Source for file confirm.tpl.php

Documentation is available at confirm.tpl.php

  1. <?php response_header('Vote :: ' htmlspecialchars($info['purpose']))?>
  2. <h1>Vote in PEAR Election :: <?php echo htmlspecialchars($info['purpose'])?></h1>
  3.  
  4. <?php if (isset($error))?>
  5. <div class="errors"><?php echo $error?></div>
  6. <?php endif; // if (isset($error)): ?>
  7. <h2>Detail on the election</h2>
  8. <?php echo $info['detail']?>
  9. <h2>Your Vote (PLEASE CONFIRM BELOW, YOUR VOTE IS NOT SAVED):</h2>
  10. <form action="/election/info.php" method="post">
  11. <input type="hidden" name="election" value="<?php echo $info['id']?>" />
  12. <table>
  13.  <tr>
  14.   <td class="form-input">
  15.    <table>
  16.     <?php foreach ($info['choices'as $choice)?>
  17.     <tr>
  18.      <?php if (in_array($choice['choice']$info['vote']true))?>
  19.      <input type="hidden" name="vote[]" value="<?php echo $choice['choice']?>" />
  20.      <td><strong>X</strong></td>
  21.      <?php else: // if (in_array($choice['choice'], $info['vote'], true)): ?>
  22.      <td>&nbsp;</td>
  23.      <?php endif; // if (in_array($choice['choice'], $info['vote'], true)): ?>
  24.     <td>
  25.      <?php echo htmlspecialchars($choice['summary'])?>
  26.     </td>
  27.    </tr>
  28.    <?php endforeach; // foreach ($info['choices'] as $choice): ?>
  29.    </table>
  30.   </td>
  31.  </tr>
  32. </table>
  33. <?php if ($info['abstain'])?>
  34. <p><strong>(ABSTAIN)</strong></p>
  35. <input type="hidden" name="abstain" value="1" />
  36. <h1>are you SURE you wish to abstain?</h1>
  37. <?php endif; ?>
  38. <table border="0" width="400">
  39.  <tr>
  40.   <td><input type="submit" name="finalvote" value="<?php echo $info['abstain''Abstain' 'Confirm Vote'?>" /></td>
  41.   <td align="center"><input type="button" name="abstain" value="<< Back" onclick="javascript:back()"/></td>
  42.  </tr>
  43. </table>
  44. </form>

Documentation generated on Mon, 11 Mar 2019 15:34:35 -0400 by phpDocumentor 1.4.4. PEAR Logo Copyright © PHP Group 2004.