Source for file new-step2.tpl.php
Documentation is available at new-step2.tpl.php
response_header ('Election :: ' . ucfirst($new));
<h1> <?php echo ucfirst($new) ?> Election [Step 2]</h1>
foreach ($error as $err) {
<form name="newelection" action="/election/ <?php echo $new ?>.php" method="post">
<input type="hidden" name="step" value="3" />
<?php if ($new == 'edit'): ?>
<input type="hidden" name="election_id" value=" <?php echo $election_id ?>" />
<?php endif; // if ($new == 'edit'): ?>
<input type="hidden" name="choices" value=" <?php echo $info['choices'] ?>" />
<?php for ($i = 1; $i <= $info['choices']; $i++ ): ?>
<th class="form-label_left">Choice # <?php echo $i ?></th>
Summary:<br /><input name="summary <?php echo $i ?>" value=" <?php echo htmlspecialchars($info['summary' . $i]) ?>" size="100" maxlength="100" /><br />
Link to more info:<br /><input name="summary_link <?php echo $i ?>" value=" <?php echo htmlspecialchars($info['summary_link' . $i]) ?>" size="100" maxlength="255" />
<?php endfor; // for ($i = 1; $i < $info['choices']; $i++): ?>
<input type="submit" name="add1choice" value="Add another choice" />
<?php if ($info['choices'] > 2 ): ?>
<input type="submit" name="delete1choice" value="Remove last choice" />
<th class="form-label_left" colspan="2">Entered data (can be edited later)</th>
<th class="form-label_left">Eligible Voters</th>
<input type="hidden" name="eligiblevoters" value=" <?php echo $info['eligiblevoters'] ?>" />
<?php if ($info['eligiblevoters'] == 1 ) {
echo 'General PHP Public';
<th class="form-label_left">Election Purpose</th>
<input type="hidden" name="purpose" value=" <?php echo htmlspecialchars($info['purpose']); ?>" />
<th class="form-label_left">Election detail</th>
<input type="hidden" name="detail" value=" <?php echo htmlspecialchars($info['detail']); ?>" />
<th class="form-label_left">Election start date</th>
<input type="hidden" name="year" value=" <?php echo date('Y', strtotime($info['year'])) ?>" />
<input type="hidden" name="month" value=" <?php echo date('m', strtotime($info['year'] . '-' . $info['month'] . '-' . $info['day'])) ?>" />
<input type="hidden" name="day" value=" <?php echo date('d',
strtotime($info['year'] . '-' . $info['month'] . '-' . $info['day'])); ?>" />
<?php echo $info['year'] . '-' . $info['month'] . '-' . $info['day'] ?>
<th class="form-label_left">Length of election in days</th>
<input type="hidden" name="length" value=" <?php echo $info['length'] ?>" />
<?php echo $info['length']; ?>
<th class="form-label_left">Minimum votes needed</th>
<input type="hidden" name="minimum" value=" <?php echo $info['minimum'] ?>" />
<?php echo $info['minimum'] ?>
<th class="form-label_left">Maximum votes allowed</th>
<input type="hidden" name="maximum" value=" <?php echo $info['maximum'] ?>" />
<?php echo $info['maximum'] ?>
<input type="submit" name="newelection" value="Save Election" />
Documentation generated on Mon, 11 Mar 2019 15:34:35 -0400 by phpDocumentor 1.4.4. PEAR Logo Copyright © PHP Group 2004.
|