$var) $$key = $var; //VARS setlocale(LC_ALL,"it_IT"); $res2sw=$_REQUEST["res2sw"]; $rivista=$_REQUEST["rivista"]; $anno=$_REQUEST["anno"]; $numero=$_REQUEST["numero"]; $lastPrintNum=3; //NEW LEFT BAR define ("AREECLOSE",true); //HEADER include ("../include/header.php"); $content=getContent("index","riviste"); ?>

*":"

*

"; echo str_replace("*",html_entity_decode((($lang != 'ita' && $row['titolo_'.$lang]!= "")? $row['titolo_'.$lang]:$row["titolo"] )),$tit_out); //PRENDO I NUMERI DEGLI ANNI PRECEDENTI $n_query="SELECT YEAR(data) anno FROM numeri_testate WHERE id_testa='".$_REQUEST['rivista']."' AND online='S' GROUP BY anno ORDER BY anno DESC "; $n_res=db_exec($n_query); if (!$n_res) db_error($n_query); if (db_NumRows($n_res)) { echo "   ".$txt['old_numbers'].": "; while ($n_row=db_FetchArray($n_res)) { echo " ".$n_row["anno"]." "; } } //FINE echo "

"; $text_padding=0; if ($row["immagine"]!="" && file_exists($config["root"].$config["img_teste"].$row["immagine"])) { $info=getimagesize($config["root"].$config["img_teste"].$row["immagine"]); $text_padding=$info[0]+8; ?>" width="" height="" border="0" align="left" class="img_border" /> \r\n"; if ($anno!="") { $t_query="SELECT * FROM numeri_testate WHERE ".($prvw?"1":"online='S'")." AND id_testa='".$rivista."' AND YEAR(data)='".$anno."' ORDER BY data DESC, id DESC"; $t_res=db_exec($t_query); if (!$t_res) db_error($t_query); while ($t_row=db_FetchArray($t_res)) { if ($t_row["old"]=="S") $t_row["testo"]=html_entity_decode((($lang != 'ita' && nl2br($row['testo_'.$lang])!= "")? nl2br($row['testo_'.$lang]):nl2br($row["testo"]))); list ($y,$m,$d)=explode("-",$t_row["data"]); $num_titolo="Num. ".$t_row["numero"].", "; if ($d!=0) $num_titolo.=(int)$d." "; if ($m!=0) $num_titolo.=strftime("%B",mktime(0,0,0,$m,1,2001)); $num_titolo.=" ".$y; if ($numero==$t_row["id"]) { //$num_testo="".$num_titolo." <-- ???

".$t_row["testo"]; $num_testo=html_entity_decode((($lang != 'ita' && $t_row['testo_'.$lang]!= "")? $t_row['testo_'.$lang]:$t_row["testo"])); } if ($numero==$t_row["id"]) { ?>
&anno=&numero=" style="color: #333; font-style: italic;">


\r\n"; if ($numero!="") { echo ($num_testo); } else { echo (html_entity_decode((($lang != 'ita' && $row['descrizione_'.$lang]!= "")? $row['descrizione_'.$lang]:$row["descrizione"] ))); } echo "

"; } else { ?>indice rivistepx; display: block; float: left; font-size: 10px;"> ">" width="140" height="" border="0" class="img_border" />
">".$num_titolo; ?>
\r\n"; } } ?>