=$max_ruota) {$ruota=0;}
else {$ruota++;}
$_SESSION['ruota']=$ruota;
$op=$lista_ruota[$ruota];
}else{
if (isset($_SESSION['ruota'])) unset($_SESSION['ruota']);
}
//fine rotazione pagine
$nometema=$tema;
if (isset($_SESSION['ruota'])){ include("temi/$tema/button.php");tour();
echo " eleonline by l.apolito & r.gigli - www.eleonline.it";} #bottone stop
####################################
function testata(){
####################################
global $nometema,$file,$bgcolor,$sitename,$dbi,$prefix,$blocco,$lang,$siteistat;
if (isset($param['id_comune'])) $id_comune=intval($param['id_comune']); else $id_comune=$siteistat;
$res = mysql_query("SELECT descrizione FROM ".$prefix."_ele_comuni where id_comune='$id_comune' ", $dbi);
list($descr_com) = mysql_fetch_row($res);
// logo
echo '
';
// menu
echo '";
echo '
';
if($blocco==1) echo '
';
}
##################################
function piede(){
##################################
global $nometema,$blocco,$lang;
//echo "
";
// carica i blocchi
if($blocco==1) blocco();
echo "
";
// carica il file foooter
$tmpl_file = "temi/language/$lang/footer.html";
$thefile = implode("", file($tmpl_file));
$thefile = addslashes($thefile);
$thefile = "\$r_file=\"".$thefile."\";";
eval($thefile);
print $r_file;
die();
}
####################################
function blocco(){
####################################
global $name,$blocco,$bgcolor, $nometema,$id_comune,$tipo_cons,$id_cons_gen,$id_cons,$prefix,$dbi, $votog,$votol,$votoc,$circo,$genere,$lang,$op,$id_circ;
if ($blocco==1) echo "
";
echo "
";
// Blocco generale
$tmpl_file = "temi/language/$lang/bloccogen.html";
$thefile = implode("", file($tmpl_file));
$thefile = addslashes($thefile);
$thefile = "\$r_file=\"".$thefile."\";";
eval($thefile);
print $r_file;
caricablocchi();
// Blocco consultazioni
if ($genere>2){
$tmpl_file = "temi/language/$lang/bloccocand.html";
$thefile = implode("", file($tmpl_file));
$thefile = addslashes($thefile);
$thefile = "\$r_file=\"".$thefile."\";";
eval($thefile);
print $r_file;
}else{
if ($genere==0){
//Blocco Referendum
$tmpl_file = "temi/language/$lang/bloccoref.html";
$thefile = implode("", file($tmpl_file));
$thefile = addslashes($thefile);
$thefile = "\$r_file=\"".$thefile."\";";
eval($thefile);
print $r_file;
}
}
// Blocco link
$result = mysql_query("select mid, title, preamble, content,editimage from ".$prefix."_ele_link where id_cons='$id_cons' order by mid ", $dbi);
if (mysql_num_rows($result) == 0) {
//echo "
";
} else {
echo "";
while (list($mid, $title, $preamble,$content, $editimage) = mysql_fetch_row($result)) {
if ($title != "" && $content != "") {
$content = stripslashes($content);
$content = substr($content,0,45);
echo "
$title
$content
";
}
}
}
######## footer ######################################
echo "