ballotpaper_verify.php
55 istruzioni<?
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!)
?>
<center>
<div class="sfondoscheda">
<h1>Hai confermato il tuo voto per <?=$candidate_nam[$id]?><br/>e non puoi più cambiare tale scelta</h1>
<?
if ($id > 0) {
?>
<table><tr>
<td><img alt="immagine di <?=$candidate_nam[$id]?>" src="<?=$candidate_img[$id]?>.gif"/></td>
<td><img alt="simbolo di <?=$candidate_prt[$id]?>" src="<?=$candidate_smb[$id]?>.gif"/></td>
</tr></table>
<?
}
?><h2>Alla tua sinistra è stata stampata una scheda
<br><span class="sfondogiallo">verifica se la scheda appena stampata è leggibile</span>
</h2>
<p> </p>
<form method="POST" action="ballotpaper_readable.php?id=<?=$id?>">
<input id="revote" type="submit" value='SI, la scheda è leggibile'/>
</form>
<p> </p>
<form method="POST" action="ballotpaper_unreadable.php?id=<?=$id?>">
<input id="confirm" type="submit" value="NO, la scheda NON è leggibile"/>
</form>
</div>
</center>
<?
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>