"; } } ?> Abruzzo Turismo | Viaggiare e pernottare in Abruzzo - -
 
Cosa Visitare
Tag-Cloud

$nome
"; $nocat = "Spiacente, non ci sono ancora news per questa categoria"; if ($result1!=0){echo $print;} else {echo $nocat;}; } ?>

Trova strutture a:

L'Aquila

Chieti

Pescara

Teramo




  $d[$contatore] ";} $d = explode("-",$chain); $n = count($d); $testo=$testo."Home"; for ($contatore=0;$contatore < $n; $contatore++) { $result3 = mysql_query("select * from $table_cat where id = '$d[$contatore]' order by nome"); list($id,$nome,$parent,$chain) = mysql_fetch_row($result3); $testo=$testo." > $nome ";} echo"$testo


"; //subdirectory nella categoria -------------------------------- $result4 = mysql_query("select * from $table_cat where parent='$cat' order by nome"); while (list($id,$nome,$parent,$chain) = mysql_fetch_row($result4)){ echo"$nome

"; } //--------------- //inizio lista post $result5 = mysql_query("select * from $table_cat where id='$cat' "); list($id,$nomecat,$parent,$chain) = mysql_fetch_row($result5); if (empty($offset)) {$offset=0;} $result = mysql_query("select count(date) from $table where Cat = '$cat' order by title "); $numrows = mysql_result($result, 0, 0); $resultpost = mysql_query("select * from $table where Cat = '$cat' order by title limit $offset, $limit5"); $numpost = mysql_num_rows($resultpost); if ($numpost > "0"){ //$nomecategoria="Articoli presenti in $nomecat

"; echo"$nomecategoria"; $categoria=$cat; while (list($id,$title,$date,$poster,$imghome,$news, $cat, $subtitle,,,,, $hit) = mysql_fetch_row($resultpost)) { $d = explode(" ",$date); $parte1 = $d[0]; $parte2 = $d[1]; $d2 = explode("-",$parte1); $giorno = $d2[2]; $mese = $d2[1]; $anno = $d2[0]; $thedate = "$giorno/$mese/$anno"; $sql=mysql_query("select * from $table_img where post=$id "); $totale=mysql_num_rows($sql); $row = mysql_fetch_array($sql); $imageid = $row["id"]; $imagename = $row["name"]; $imagepost = $row["post"]; if ($totale==0){$immagine="";} else{ $immagine="
"; } // fa leggere una parte di testo come anteprima //1. Define how many characters you want to display. //2. Find what is the last character displaying. //3. If the last character displaying is not " " (space) then go to next character until we found it. //4. Display your message. //va in loop se il messaggio è piu corto del num di caratteri da visualizzare quindi aggiungo il cliclo di controllo // $position=400; // Define how many characters you want to display. integrato in config $totale_caratteri = strlen($news); // trova il numero tot di caratteri if ($totale_caratteri > $position ){ $message=$news; //$message="You are now joining over 2000 current"; $post = substr($message,$position,1); // Find what is the last character displaying. We find it by getting only last one character from your display message. if($post !=" "){ // In this step, if last character is not " "(space) do this step . // Find until we found that last character is " "(space) // by $position+1 (14+1=15, 15+1=16 until we found " "(space) that mean character 20) while($post !=" "){ $i=1; $position=$position+$i; //$message="You are now joining over 2000 current"; $post = substr($message,$position,1); } } $post = substr($message,0,$position); // Display your message //echo $post; //echo "..."; $puntini=" ..."; $post= "$post $puntini"; } else {$post=$news;} // visualizzazione------------- $print = "
$immagine $title $subtitle
$post
visite $hit | Leggi tutto >>

Tags: "; //parte tag $sqltag3=mysql_query("select * from $table_tag where idpost='$id'"); while( $row2 = mysql_fetch_array($sqltag3)){ $id_termine2= $row2["id"]; $termine2= $row2["tag"]; $print=$print." $termine2"; } $print=$print."

"; // fine parte tag $nocat = "Spiacente, non ci sono ancora news per questa categoria"; if ($resultpost!=0){echo $print;} else {echo $nocat;}; } // NEXT - PREVIOUS LINKS echo"
"; $pages=intval($numrows/$limit5); if ($numrows%$limit5) { $pages++; if($pages > $limit5){ echo"old news
"; } } if ($offset != 0) { $prevoffset=$offset-$limit5; echo "<<   \n"; } if ( $pages != 1 ) { for ($i=1;$i<=$pages;$i++) { $newoffset=$limit5*($i-1); if ( ((($offset)/$limit5)==($i-1)) ) { echo "$i   \n"; } else { echo "$i   \n"; } } } if (!((($offset)/$limit5)+1==$pages) && $pages!=1 && $pages!=0) { $newoffset=$offset+$limit5; echo ">>\n"; } //if ($pages=324){echo "no news ";} echo"
"; } else {echo"non ci sono ancora articoli";} } ?> $d[$contatore] ";} $d = explode("-",$chain); $n = count($d); $testo=$testo."Home"; for ($contatore=0;$contatore < $n; $contatore++) { $result3 = mysql_query("select * from $table_cat where id = '$d[$contatore]' order by nome"); list($id,$nome,$dir,$subdir,$parent,$chain) = mysql_fetch_row($result3); $testo=$testo." > $nome ";} echo"$testo


"; // fine chain $resultpost = mysql_query("select * from $table where ID = '$articolo' order by date DESC"); $numrows = mysql_num_rows($resultpost); $categoria=$archivio; //riutilizzato in next previous page while (list($id,$title,$date,$poster,$imghome,$news, $cat, $subtitle,,,,, $hit) = mysql_fetch_row($resultpost)) { $d = explode(" ",$date); $parte1 = $d[0]; $parte2 = $d[1]; $d2 = explode("-",$parte1); $giorno = $d2[2]; $mese = $d2[1]; $anno = $d2[0]; $thedate = "$giorno/$mese/$anno"; //trova LA CATEGORIA $result1 = mysql_query("select * from $table_cat where id='$cat'"); list($idcat,$nomecat) = mysql_fetch_row($result1); $nomecategoria="+ $nomecat

"; //fine trova cat //trova immagini $sql=mysql_query("select * from $table_img where post=$id "); $totale=mysql_num_rows($sql); while($row = mysql_fetch_array($sql)){ $imageid = $row["id"]; $imagename = $row["name"]; $imagepost = $row["post"]; $immagine=$immagine."

"; } //fine trova immagini // visualizzazione notizia $print = "
$title del $thedate
$subtitle
$googlemap
$news
visite $hit
$immagine

Tags: "; //parte tag $sqltag3=mysql_query("select * from $table_tag where idpost='$id'"); while( $row2 = mysql_fetch_array($sqltag3)){ $id_termine2= $row2["id"]; $termine2= $row2["tag"]; $print=$print." $termine2"; } $print=$print."

"; // fine parte tag $nocat = "Spiacente, non ci sono ancora news per questa categoria"; if ($resultcat!=0){echo $nomecategoria, $print; $sql=mysql_query("update $table set hit=hit+1 where ID='$id'");} else {echo $nocat;}; } } ?>