ballotpaper_readable.php

54 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&ugrave; 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>Hai detto che la scheda appena stampata alla tua sinistra è leggibile.
<br/><span class="sfondogiallo">verifica che sulla scheda ci sia scritto "<?=$candidate_nam[$id]?>"</span>
</h2>
<p>&nbsp</p>
<form method="POST" action="vote_count.php?id=<?=$id?>">
	<input id="confirm" type="submit" value="Si sulla scheda è scritto <?=$candidate_nam[$id]?>"/>
		</form>
<p>&nbsp</p>
<form method="POST" action="call_police.php?id=<?=$id?>">
	<input id="confirm" type="submit" value="NO sulla scheda NON è scritto <?=$candidate_nam[$id]?>"/>
<br/><span class="rosso">se questa affermazione NON risulterà vera perderai il diritto al voto e sarai passibile di arresto</span>
		</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>