ballotpaper_verify.php
54 istruzioni<?
$lang="en";
include "../head_include.php";
?>
<body>
<?php
include "config.php";
include "index_include.php";
$id = $_REQUEST['id'];
if ($id < 0 || $id > count($candidate_nam)) {
echo "Call Police!";
exit;
}
// create ballotpaper.pdf with the name of $candidates[$id]
// system("lpr ballotpaper.pdf") //ejects only half of the ballotpaper since the rest must
// be left for the confirmation text (if confirmed!)
?>
<div class="sfondoscheda centro">
<h1>You have confirmed your vote for <?=$candidate_nam[$id]?>
<br/>and you can't change it anymore</h1>
<?
if ($id > 0) {
?>
<table><tr>
<td><img alt="picture of di <?=$candidate_nam[$id]?>" src="<?=$candidate_img[$id]?>.gif"/></td>
<td><img alt="symbol of <?=$candidate_prt[$id]?>" src="<?=$candidate_smb[$id]?>.gif"/></td>
</tr></table>
<?
}
?><h2>On your left a ballot paper has been printed for your vote
<br><span class="sfondogiallo">please check if the ballot paper is readable</span>
</h2>
<p> </p>
<form method="POST" action="ballotpaper_readable.php?id=<?=$id?>">
<input id="revote" type="submit" value='YES, the ballot paper is readable'/>
</form>
<p> </p>
<form method="POST" action="ballotpaper_unreadable.php?id=<?=$id?>">
<input id="confirm" type="submit" value="NO, the ballot paper is NOT readable"/>
</form>
</div>
<?
if (file_exists("$_SERVER[DOCUMENT_ROOT]/CONTAMI/phpcounter.php")) {
echo '<br/><div id="contatore" class="centro piccolone">', "\n";
require "$_SERVER[DOCUMENT_ROOT]/CONTAMI/phpcounter.php";
echo "</div>\n";
}
?>
</body>
</html>