"; if ($file=="index") menu(); echo ""; //echo "
"; ##if ($blocco=='1') echo "
"; //"
"; ##else echo ""; echo ""; } function piede(){ global $nometema,$blocco,$lang; $tmpl_file = "temi/language/$lang/footer.html"; $thefile = implode("", file($tmpl_file)); $thefile = addslashes($thefile); $thefile = "\$r_file=\"".$thefile."\";"; eval($thefile); print $r_file; if($blocco==1){ blocco(); echo "
"; echo ""; #container } } 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; //echo "
"; echo "
"; echo "\"NoBlocco\""; // Blocco generale //if ($id_cons_gen){ $tmpl_file = "temi/language/$lang/bloccogen.html"; $thefile = implode("", file($tmpl_file)); $thefile = addslashes($thefile); $thefile = "\$r_file=\"".$thefile."\";"; eval($thefile); print $r_file; // 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"; $sth = $dbi->prepare("$sql"); $sth->execute(); $row = $sth->fetchAll(); if ($sth->rowCount() == 0) { echo ""; echo "
"; //echo ""; return; } else { echo "
"._LINK."

"; foreach($row as $row2) { list($mid, $title,$preamble,$content,$editimage) = explode($row2); if ($title != "" && $content != "") { $content = stripslashes($content); $content = substr($content,0,45); echo " $title
$content
"; } } //echo "

"; } echo ""; echo ""; echo ""; } ?>