"; 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 $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 ""; echo "
"; //echo ""; return; } else { echo "
"._LINK."

"; 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
"; } } //echo "

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