=$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; $sql="SELECT descrizione FROM ".$prefix."_ele_comuni where id_comune='$id_comune' "; $res = $dbi->prepare("$sql"); $res->execute(); list($descr_com) = $res->fetch(PDO::FETCH_NUM); // 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 "\"NoBlocco\""; // Blocco generale if(file_exists("temi/language/$lang/bloccogen.html")){ $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 $sql="select mid, title, preamble, content,editimage from ".$prefix."_ele_link where id_cons='$id_cons' order by mid "; $result = $dbi->prepare("$sql"); $result->execute(); if ($result->rowCount() == 0) { //echo "
"; } else { echo "
"._LINK."

"; while (list($mid, $title, $preamble,$content, $editimage) = $result->fetch(PDO::FETCH_NUM)) { if ($title != "" && $content != "") { $content = stripslashes($content); $content = substr($content,0,45); echo " $title
$content
"; } } } ######## footer ###################################### echo "

Note
Contatti
"; include_once("versione.php"); echo "
[Eleonline $versione - "._GESRIS." ] "; echo '

W3C WAI-AA
W3C CSS
W3C XHTML 1.0
'; echo " "; } include("temi/tour/button.php"); //if (isset($_SESSION['ruota'])){ echo "
Eleonline
";} ?>