"; while ($row=db_FetchArray($res)) { if ($row["titolo"]=="#-#") //separator { if ($last!="#-#") { echo "
  •  
  • "; } $last=$row["titolo"]; continue; } $last=$row["titolo"]; $link="javascript:void(0)"; if (file_exists($config["root"]."/areetematiche/".$row["id"]."/index.php")) $link=$config["urlroot"]."/areetematiche/".$row["id"]."/index.php"; echo "
  • ".html_entity_decode((($lang != 'ita' && $row['titolo_'.$lang]!= "")? $row['titolo_'.$lang]:$row["titolo"] ))."
  • \r\n"; //PRINT SUB printSiteMapAree ($row["id"]); } echo ""; } } function printAllDocuments () { global $config,$lang; $db_query="SELECT d.id, d.data, d.testata, n.natura, c.titolo argomento FROM (documenti_categorie dc LEFT JOIN documenti d ON dc.id_documento = d.id LEFT JOIN nature n ON d.id_natura=n.id) LEFT JOIN categorie c ON d.id_categoria=c.id WHERE d.stato='A' GROUP BY d.id ORDER BY d.data DESC"; $res=db_exec($db_query); if (!$res) db_error($db_query); echo "