2005-10-24 17:59:15 +00:00
< ? php
function step2_do () {
global $election ;
2005-10-24 18:25:43 +00:00
global $choices ;
2005-10-24 17:59:15 +00:00
global $vote ;
global $votes_array ;
$result = " <h2>Step 2/4 - Choose your vote</h2> \n " ;
2009-06-04 18:15:43 +00:00
$result .= " <p>You can vote for as few or as many candidates as you choose. " ;
2014-02-10 22:14:18 +00:00
$result .= " An <a href= \" http://en.wikipedia.org/wiki/Single_transferable_vote \" >STV algorithm</a> will be used to count your votes.</p> " ;
2005-10-24 17:59:15 +00:00
2014-02-10 22:41:31 +00:00
$result .= " <p>Clicking on a candidate in the <em>Candidates</em> box adds it in order to the Prefences box. " ;
2014-02-10 23:11:09 +00:00
$result .= " If you want to change a selection you've already made, you can click on the candidate in the <em>Preferences</em> box, and that candidate will move back to the <em>Candidates</em> box.</p> " ;
2014-02-10 22:41:31 +00:00
$result .= " <p>Once you have a <em>Preferences</em> box that you like, use the button at the bottom to continue to the next step. You can review and confirm " ;
$result .= " your ballot on the next page.</p> " ;
2009-06-04 18:15:43 +00:00
$result .= " <p><noscript>Note: This page requires Javascript</noscript></p> " ;
2005-10-24 17:59:15 +00:00
2014-02-10 22:09:45 +00:00
$result .= '<table>' ;
$result .= ' <tr>' ;
$result .= ' <td class="canddata"><h3>Candidates</h3><ul id="candidates"></ul></td>' ;
$result .= ' <td class="prefdata"><h3>Preferences</h3><ol id="preferences"></ol></td>' ;
$result .= ' </tr>' ;
$result .= '</table>' ;
2005-10-24 17:59:15 +00:00
return $result ;
}
?>