function totalVoters() { $total = 0; for ($i = GETnumberOfChoices(); $i; $i--) { $total = $total + tallyVotesFor($i); } $total = $total + tallyVotesFor(""); return $total; }
echo $i; } else { echo "' '"; } if ($i != GETnumberOfChoices()) { echo ","; } } ?> ]); pie.Draw(); } </script> <?php echo "</br>" . tallyVotesFor(""); if (tallyVotesFor("") == 1) { echo " Voter is still undecided."; } else { echo " Voters are still undecided."; } ?> <script language="javascript" type="text/javascript">setTimeout("location.reload();",2000);</script> </body> <?php } } } ?> </html>
</select><span class="arrow"></ span> </li> <?php if (GETactive()) { ?> <!-- Buttons being enabled/disabled can be dictated by the 'disabled="disabled" tag --> <li class="button"><input name="startStop" type="submit" value="Start Vote" disabled="disabled"/></li> <li class="button"><input name="startStop" type="submit" value="Stop Vote" /></li> </ul> <ul class="graytitle"> <?php echo "</br>" . tallyVotesFor("") . " voter(s) undecided."; ?> <br> <?php echo "</br>" . tallyVotesFor(!"") . " vote(s) total."; ?> </ul> <?php } else { ?> <!-- Buttons being enabled/disabled can be dictated by the 'disabled="disabled" tag --> <li class="button"><input name="startStop" type="submit" value="Start Vote" /></li> <li class="button"><input name="startStop" type="submit" value="Stop Vote" disabled="disabled"/></li> <?php } ?> </form>