1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20
| function addslashes(str) {
return str.replace(/'/g,"\\'");
}
function popimage(img,titre,domaine,sous_domaine,type,centre,locageo,locaferro,gps,locakilometrique,legende,poids,taille_image,id_fichier, date,nom,id_domaine,id_sous_domaile,id_centre,id_loca_geo,mots_cle) {
titre=addslashes(titre)
var w=open("",'image','width=680,height=700,toolbar=no,scrollbars=no,resizable=no');
w.document.write("<body onload='checksize()' /*onblur='window.close()'*/ /*onclick='window.close()'*/ topmargin=0 leftmargin=0 marginwidth=0 marginheight=0>");
w.document.write("<h2 style='float:left;text-transform:uppercase;width:100%;background-color:#6e267b;color:#FFF;font-size:1em;text-align:center;padding:2px 0px;margin:2px 0 -20px 0px;'>"+titre+"</h2><br/>");
w.document.write("<img src='"+img+"' alt='image' width=650px height=450px style='margin-left:15px; margin-top:12px;'/><br/>");
w.document.write("<div style=\"border: 2px groove #6B247B; padding-top:15px; padding-left:45px; padding-bottom:15px; margin-left:15px; margin-top:7px; width=650px\"><span>Date de prise de vue:<span style='color=grey;'>"+date+"</span><br/>Légende: <span style='color=grey;'>"+nom+"</span><br/>Thématique: <span style='color=grey;'><a href='#' onclick=\"opener.redirection('domaine',"+id_domaine+"); window.close();\" style='color:grey;'>"+domaine+"</a></span><br/>Catégorie: <span style='color=grey;'><a href='#' onclick=\"opener.redirection2('domaine',"+id_domaine+","+id_sous_domaile+"); window.close();\" style='color:grey;'>"+sous_domaine+"</a></span><br/>Centre SNCF: <span style='color=grey;'>"+centre+"</span><br/>Localisation géographique: <span style='color=grey;'>"+locageo+"</span><br/>Localisation ferroviaire: <span style='color=grey;'>"+locaferro+"</span><br/>Mots clés: <span style='color=grey;'>"+mots_cle+"</span><br/></span></div>");
w.document.close();
} |
Partager