ballotpaper_unreadable.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&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>Ma la scheda stampata alla tua sinistra è illeggibile.
<br/><span class="bold rosso">la scheda verr&agrave; messa nell'urna senza la stampa di verifica
	<br/>e pertanto non sar&agrave; contata.</span></h2>

<p class="bold">il tuo voto è andato perso, ma PUOI RIVOTARE!</p>
<div class="sinistra">
<form method="POST" action="ballotpaper_badlyprinted.php">
	<ol>
	<li>PRIMA avvisa il presidente di seggio cosicch&egrave; ti faccia votare di nuovo</li>
	<li>POI </span><input id="revote" type="submit" value="clicca qui per votare di nuovo"/></li>
	</ol>
</div>
	</form>
<ul>
</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>