$news1data = db_query(“SELECT node.nid AS nid,
node.sticky AS node_sticky,
node.created AS node_created, node.*, node_revisions.*
FROM node node LEFT JOIN node_revisions ON (node.nid = node_revisions.nid)
WHERE ((node.status <> 0) AND (node.type = ‘notizie’)) ORDER BY node_sticky DESC, node_created DESC LIMIT 8”);
echo ‘
‘;
if ($news1arr = db_fetch_array($news1data)){
echo ‘
‘;
$datipath = db_query(“SELECT dst FROM url_alias WHERE src = ‘node/”.$news1arr[‘nid’].”‘”);
if ($arrpath = db_fetch_array($datipath)) {
$pathtmp = $arrpath[‘dst’];
}
else $pathtmp = ‘node/’.$news1arr[‘nid’];
echo ‘‘.htmlentities($news1arr[‘title’]).’
‘;
echo $news1arr[‘teaser’];
echo ‘

‘;
echo ”

“;
echo ”

“;
}
else {
echo ” “;
}
echo ‘

‘;
if ($news1arr = db_fetch_array($news1data)){
echo ‘
‘;
$datipath = db_query(“SELECT dst FROM url_alias WHERE src = ‘node/”.$news1arr[‘nid’].”‘”);
if ($arrpath = db_fetch_array($datipath)) {
$pathtmp = $arrpath[‘dst’];
}
else $pathtmp = ‘node/’.$news1arr[‘nid’];
echo ‘‘;
echo htmlentities($news1arr[‘title’]);
echo ‘
‘;
echo $news1arr[‘teaser’];
echo ‘

‘;
echo ”

“;
echo ”

“;
}
else {
echo “<div=\”notizia_home\”>

“;
}
echo ”;
if ($news1arr = db_fetch_array($news1data)){
echo ‘

‘;
$datipath = db_query(“SELECT dst FROM url_alias WHERE src = ‘node/”.$news1arr[‘nid’].”‘”);
if ($arrpath = db_fetch_array($datipath)) {
$pathtmp = $arrpath[‘dst’];
}
else $pathtmp = ‘node/’.$news1arr[‘nid’];
echo ‘‘;
echo htmlentities($news1arr[‘title’]);
echo ‘
‘;
echo $news1arr[‘teaser’];
echo ‘

‘;
echo ”

“;
echo ”

“;
}
else {
echo “<div=\”notizia_home\”>

“;
}
echo ”;
if ($news1arr = db_fetch_array($news1data)){
echo ‘

‘;
$datipath = db_query(“SELECT dst FROM url_alias WHERE src = ‘node/”.$news1arr[‘nid’].”‘”);
if ($arrpath = db_fetch_array($datipath)) {
$pathtmp = $arrpath[‘dst’];
}
else $pathtmp = ‘node/’.$news1arr[‘nid’];
echo ‘‘;
echo htmlentities($news1arr[‘title’]);
echo ‘
‘;
echo $news1arr[‘teaser’];
echo ‘

‘;
echo ”

“;
echo ”

“;
}
else {
echo “<div=\”notizia_home\”>

“;
}
echo “”;
echo ”

“;
?>