\n"; $sql="select * from ".$news." where (id_news ='$id')"; if(!($result=mysql_query($sql,$conn))) { echo ("Error selecting data from news_metina table.\n"); }else{ while ($datarecord=mysql_fetch_row ($result)) { $id_news=$datarecord[0]; $data=$datarecord[1]; $titolo=stripslashes($datarecord[2]); $descrizione=stripslashes($datarecord[3]); $testo=stripslashes($datarecord[4]); $tipo=$datarecord[5]; $lingua=$datarecord[6]; $foto=$datarecord[7]; $datain=$datarecord[8]; $dataout=$datarecord[9]; $argomento=$datarecord[10]; $ambito=$datarecord[11]; $importanza=$datarecord[12]; $align=$datarecord[13]; $home_pages=$datarecord[14]; $foto_home=$datarecord[15]; } } echo "

Modifica notizia

"; echo ("
"); echo ("
"); echo (""); $datain=date("d/m/Y",$datain); echo (""); echo (""); echo (""); $dataout=date("d/m/Y",$dataout); echo (""); echo (""); echo (""); if ($tipo_new==b){ if ($tipo=='eventi') {$tt=1;} if ($tipo=='offerte') {$tt=2;} if ($tipo=='lastminute') {$tt=3;} $selt[$tt]=" selected"; echo (""); echo (""); echo ("");} if ($home_pages=='') {$t0=0;} if ($home_pages=='top') {$t0=1;} if ($home_pages=='sx1') {$t0=2;} if ($home_pages=='dx1') {$t0=3;} if ($home_pages=='sx2') {$t0=4;} if ($home_pages=='dx2') {$t0=5;} $sel0[$t0]=" selected"; echo (""); echo (""); echo (""); if ($foto_home=='') { echo (""); echo (""); echo (""); echo (""); echo (""); echo (""); echo (""); echo (""); } else { echo (""); echo (""); echo (""); echo (""); echo (""); echo (""); echo (""); } if ($importanza=='media') {$t1=1;} if ($importanza=='alta') {$t1=2;} if ($importanza=='bassa') {$t1=3;} $sel1[$t1]=" selected"; echo (""); echo (""); echo (""); echo (""); echo (""); echo (""); echo (""); echo (""); echo (""); echo (""); echo (""); echo (""); } else { echo (""); } echo ""; if ($lingue_new=='it-uk-de') { if ($lingua=='it') {$t=1;} if ($lingua=='uk') {$t=2;} if ($lingua=='de') {$t=3;} $sel[$t]=" selected"; echo (""); echo (""); echo (""); } if ($lingue_new=='it-uk-de-fr') { if ($lingua=='it') {$t=1;} if ($lingua=='uk') {$t=2;} if ($lingua=='de') {$t=3;} if ($lingua=='fr') {$t=4;} $sel[$t]=" selected"; echo (""); echo (""); echo (""); } if ($lingue_new=='it-uk-de-fr-dk') { if ($lingua=='it') {$t=1;} if ($lingua=='uk') {$t=2;} if ($lingua=='de') {$t=3;} if ($lingua=='fr') {$t=4;} if ($lingua=='dk') {$t=5;} $sel[$t]=" selected"; echo (""); echo (""); echo (""); } if ($lingue_new=='it-uk') { if ($lingua=='it') {$t=1;} if ($lingua=='uk') {$t=2;} $sel[$t]=" selected"; echo (""); echo (""); echo (""); } if ($foto=='nofoto.gif') { echo (""); echo (""); echo (""); echo (""); echo (""); echo (""); echo (""); echo (""); } else { echo (""); echo (""); echo (""); echo (""); echo (""); echo (""); echo (""); } if (!$align) {$align='sx';} if ($align=='sx') { $sel1="checked"; } else { $sel1=""; } if ($align=='top') { $sel2="checked"; } else { $sel2=""; } if ($align=='dx') { $sel3="checked"; } else { $sel3=""; } echo (""); echo (""); echo ("
DATA IN:"); echo ("
DATA OUT : "); echo ("
SEZIONE DI INSERIMENTO:"); echo ("
POSIZIONE HOMEPAGE:"); echo ("

INSERIMENTO IMMAGINE HOME PAGE"); echo ("
"); echo (""); echo ("(attualmente non c'è nessuna immagine per l'home page)
"); echo ("
"); echo ("SELEZIONA IMMAGINE:
"); echo ("Tipo JPG "); echo ("Tipo GIF

MODIFICA IMMAGINE HOME PAGE
"); echo ("Lascia l'immagine corrente

"); echo ("Elimina l'immagine corrente

"); echo ("Sostituisci l'immagine corrente con:
"); echo ("
"); echo ("SELEZIONA IMMAGINE:
"); echo ("Tipo JPG "); echo ("Tipo GIF
IMPORTANZA:"); echo ("
ARGOMENTO :"); echo ("
AMBITO TERRITORIALE :"); echo ("
TITOLO:
"); echo ("BREVE DESCRIZIONE:"); echo ("
"); echo ("TESTO :"); if ($stato=='on') { //**** AGGIUNTA: pop up finestra formattazione. **** echo ("
Per mandare a capo il testo di due spazi, usare il tasto \"invio\", invece per mandarlo a capo di uno spazio usare il tasto \"shift\" più \"invio\"."); //**** echo ("
"); echo (" "); echo ("
LINGUA:"); echo ("
LINGUA:"); echo ("
LINGUA:"); echo ("
LINGUA:"); echo ("

INSERIMENTO IMMAGINI"); echo ("
"); echo (""); echo ("(attualmente non c'è nessuna immagine a corredo della news)
"); echo ("
"); echo ("SELEZIONA IMMAGINE:
"); echo ("Tipo JPG "); echo ("Tipo GIF

MODIFICA IMMAGINI
"); echo ("Lascia l'immagine corrente

"); echo ("Elimina l'immagine corrente

"); echo ("Sostituisci l'immagine corrente con:
"); echo ("
"); echo ("SELEZIONA IMMAGINE:
"); echo ("Tipo JPG "); echo ("Tipo GIF
"); echo ("ALLINEAMENTO IMMAGINE:
Sinistra CentratoDestro
"); echo ("
"); echo (""); echo "\n"; echo "\n"; echo "\n"; echo "

\n"; echo "\n"; echo "\n"; echo "« BACK\n"; echo "
\n"; mysql_close($conn); } include("down.php"); ?>