54d0a4b5cb
<mina86> it will never scroll [18:09] <mina86> or I should say, unless you have *very* narrow browser window <bkuhn> :) <mina86> the names of the licences will wrap if it's too narrow [18:10] <mina86> and horizontal scroll will appear only if individual words in license names are too long
31 lines
1.3 KiB
PHP
31 lines
1.3 KiB
PHP
<?php
|
|
|
|
function step2_do () {
|
|
global $election;
|
|
global $choices;
|
|
global $vote;
|
|
global $votes_array;
|
|
|
|
$result = "<h2>Step 2/4 - Choose your vote</h2>\n";
|
|
|
|
$result .= "<p>You can vote for as few or as many candidates as you choose. ";
|
|
$result .= "An <a href=\"http://en.wikipedia.org/wiki/Single_transferable_vote\">STV algorithm</a> will be used to count your votes.</p>";
|
|
|
|
$result .= "<p>Clicking on a candidate in the <em>Candidates</em> box adds it in order to the Prefences box. ";
|
|
$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>";
|
|
$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>";
|
|
|
|
$result .= "<p><noscript>Note: This page requires Javascript</noscript></p>";
|
|
|
|
$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>';
|
|
|
|
return $result;
|
|
}
|
|
|
|
?>
|