function apriTavola2_old (optconf, startParameters, idmenu) { //alert("apritavola2 coloreBG: ffcc00 - winsize: medium"); document.getElementById(idmenu).style.color= 'white'; //coloreTEXT //document.getElementById(idmenu).style.fontWeight='normal'; document.getElementById(idmenu).style.backgroundColor='#ffcc00'; parent.parent.intestazFrame.titoloFrame.location ="titolo.phtml?optconf=" + optconf; parent.parent.pmapperFrame.location ="frameview.phtml?winsize=medium&optconf=" + optconf + startParameters; } function apriCrediti(parametro) { if (parametro == "grande") { larghw = 450; altezw = 400; } else { larghw = 300; altezw = 350; } var pathCrediti = "tavolaCrediti.phtml"; //alert(pathCrediti); w3 = window.open (pathCrediti, "crediti", "width=" + larghw + ",height=" + altezw + ",location=no,menubar=no,toolbar=no,scrollbars=no,resizable=yes,top=200,left=200,status=no"); w3.window.focus(); } function apriGlossario(fileGlossario) { var pathGlossario = "tavolaGlossario.phtml?namefile=" + fileGlossario; //alert(pathGlossario); w4 = window.open (pathGlossario, "glossario", "width=400,height=200,location=no,menubar=no,toolbar=no,scrollbars=yes,resizable=yes,top=400,left=200,status=no"); w4.window.focus(); } function creditiWebGis() { larghw = 300; altezw = 350; var pathCrediti = "CreditiWebGis.phtml"; //alert(pathCrediti); w1 = window.open (pathCrediti, "crediti", "width=" + larghw + ",height=" + altezw + ",location=no,menubar=no,toolbar=no,scrollbars=no,resizable=yes,top=200,left=200,status=no"); w1.window.focus(); } /*********************************************************** apre immagini dal testo ************************************************************/ function apriLink(tipo, fileImg, didascalia, larg, altez, fotoDi) { var imgWidth = larg; var imgHeight = altez; switch (tipo) { //apre immagine case 1: var pathImg = "data/TESTI/ALLEG_IMMAGINI/" + fileImg; var winlarg = imgWidth + 20; if (fotoDi =='') fotoDi1 = ''; else fotoDi1 = " - (" + fotoDi + ")"; if (winlarg < 400) { var winaltez = imgHeight + 150; var winlarg = 400; }else { var winaltez = imgHeight + 100; } //alert(typeof larg); //alert(typeof imgWidth); //alert (pathImg + "immagine:" + imgWidth + "-" + imgHeight + " finestra:" + winlarg + "-" + winaltez); mywindow = window.open("", "" ,"width=" + winlarg + ",height=" + winaltez + "top=100,left=100,toolbar=0,location=0,status=0,menubar=0,scrollbars=0,resizable=0"); mywindow.document.open(); mywindow.document.write("
"); mywindow.document.write(""); mywindow.document.write("" + didascalia + fotoDi1 + "
"); // mywindow.document.write("" + fotoDi + "
"); mywindow.document.write(""); mywindow.document.close(); mywindow.window.focus(); break; //apre pagina html case 2: //alert("case 2"); if (imgWidth == 0) var imgWidth = 400; if (imgHeight == 0) var imgHeight = 400; var pathImg = "data/TESTI/ALLEG_HTML/" + fileImg; myw1 = window.open(pathImg, "HTML", "width=" + imgWidth + ",height=" + imgHeight + ",top=100,left=100,scrollbars=yes,location=no,resizable=yes,toolbar=no,menubar=no"); myw1.window.focus(); break; //apre pagina tavola 36 da testo case 361: var pathImg = "data/TESTI/EXT_LEGENDA/tav036_B_finestra_ciclo_laguna.phtml"; myw1 = window.open(pathImg, "HTML36", "width=800,height=500,top=100,left=100,scrollbars=no,location=no,resizable=no,toolbar=no,menubar=no"); myw1.window.focus(); break; default: alert("funzione apriLink(): assegnare varialibe 'tipo'!!!"); break; } } /*********************************************************** // apre da info.html allegati contenuti nel DBF del file SHP ***********************************************************/ function apriLink2(tipo, fileImg, didascalia, larg, altez, fotoDi, aliasLink) { //alert ("fileImg:" + fileImg + " - aliaLink:" + aliasLink); switch (tipo) { //apre file PDF case 1: //alert("pdf"); var pathImg = "data/ALLEGATI/PDF/" + fileImg; myw1 = window.open(pathImg, "PDF", "width=700,height=350,location=no,resizable=yes,toolbar=no,menubar=no"); myw1.window.focus(); break; //apre i grafici delle rose dei venti (tav 3) case 2: mywindow = window.open("mod_Alleg_rosaVenti.phtml?fileImg=" + fileImg, "Immagine" ,"width=650,height=600,top=100,left=100,toolbar=0,location=0,status=0,menubar=0,scrollbars=auto,resizable=0"); mywindow.window.focus(); break; //apre i grafici TORTE della tav 36 case 36: mywindow = window.open("mod_Alleg_tav36.phtml?fileImg=" + fileImg, "Immagine" ,"width=650,height=350,top=100,left=100,toolbar=0,location=0,status=0,menubar=0,scrollbars=auto,resizable=0"); mywindow.window.focus(); break; //apre pagina CICLO ANNUALE tavola 36 case 361: var pathImg = fileImg; myw1 = window.open(pathImg, "HTML", "width=800,height=500,top=100,left=100,scrollbars=no,location=no,resizable=no,toolbar=no,menubar=no"); myw1.window.focus(); break; default: if (fileImg=='MANCA') { mywindow = window.open("",fileImg,"width=" + 200 + ",height=" + 200 + "top=100,left=100,toolbar=0,location=0,status=0,menubar=0,scrollbars=auto,resizable=0"); mywindow.document.open(); mywindow.document.write(""); mywindow.document.write(""); mywindow.document.write("" + didascalia + "
"); mywindow.document.write(""); mywindow.document.close(); mywindow.window.focus(); } else { //alert("default "); var pathImg = "data/ALLEGATI/IMMAGINI/" + fileImg; var imgWidth = larg; var imgHeight = altez; var winlarg = imgWidth + 20; if (fotoDi =='') fotoDi1 = ''; else fotoDi1 = " - (" + fotoDi + ")"; if (winlarg < 100) var winaltez = imgHeight + 140; else var winaltez = imgHeight + 80; //alert(typeof larg); //alert(typeof imgWidth); //alert (pathImg + "immagine:" + imgWidth + "-" + imgHeight + " finestra:" + winlarg + "-" + winaltez); mywindow = window.open("", "" ,"width=" + winlarg + ",height=" + winaltez + ",top=100,left=100,toolbar=0,location=0,status=0,menubar=0,scrollbars=auto,resizable=0"); mywindow.document.open(); mywindow.document.write(""); mywindow.document.write(""); mywindow.document.write("" + didascalia + fotoDi1 + "
"); // mywindow.document.write("" + fotoDi + "
"); mywindow.document.write(""); mywindow.document.close(); mywindow.window.focus(); } break; } } /*********************************************************** apre finestre dalla legenda ************************************************************/ function apriLink3(tipo, fileImg, titoloA, titoloB, larg, altez, spiegazione) { var imgWidth = larg; var imgHeight = altez; switch (tipo) { // apre grafici tavole SOLO IMMAGINI case 50: var pathImg = "data/TESTI/EXT_LEGENDA/img/" + fileImg; var winlarg = imgWidth + 30; var winaltez = imgHeight + 30; mywindow = window.open("", titoloA ,"width=" + winlarg + ",height=" + winaltez + ",top=100,left=100,toolbar=0,location=0,status=0,menubar=0,scrollbars=0,resizable=0"); mywindow.document.open(); mywindow.document.write(""); mywindow.document.write(""); mywindow.document.write("" + titoloB + "
" + spiegazione + "
"); mywindow.document.write(""); mywindow.document.close(); mywindow.window.focus(); break; // apre grafici tavole SOLO IMMAGINI case 54: var pathImg = "data/TESTI/EXT_LEGENDA/img/" + fileImg; var winlarg = imgWidth + 10; var winaltez = imgHeight + 70; mywindow = window.open("", titoloA ,"width=" + winlarg + ",height=" + winaltez + ",top=100,left=100,toolbar=0,location=0,status=0,menubar=0,scrollbars=0,resizable=0"); mywindow.document.open(); mywindow.document.write(""); mywindow.document.write(""); mywindow.document.write("" + titoloB + "
" + spiegazione + "
"); mywindow.document.write(""); mywindow.document.close(); mywindow.window.focus(); break; //************************************* // apre triangolo tav 8 case 8: var pathImg = "data/TESTI/EXT_LEGENDA/img/" + fileImg; var winlarg = imgWidth + 20; var winaltez = imgHeight + 100; mywindow = window.open("", titoloA ,"width="+winlarg+",height="+winaltez+",top=100,left=100,toolbar=0,location=0,status=0,menubar=0,scrollbars=0,resizable=0"); mywindow.document.open(); mywindow.document.write(""); mywindow.document.write(""); mywindow.document.write("" + titoloB + "
" + spiegazione + "
"); mywindow.document.write(""); mywindow.document.close(); mywindow.window.focus(); break; default: alert("funzione apriLink3(): assegnare varialibe 'tipo'!!!"); break; } }