1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28
| <script type="text/javascript">
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) {
//var titres=titre;
var w=open("",'image','width=680,height=670,toolbar=no,scrollbars=no,resizable=no');
//w.document.write("<script type='text/javascript'>function checksize() { if (document.images[0].complete) { window.resizeTo(500,500); window.focus();} else { settimeout('checksize()',250) } }</"+"script>");
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;'>"+sous_domaine+"</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/></span><br/></div>");
w.document.close();
}
function redirection(quoi,parametre)
{
if(quoi=='domaine')
{
window.location = "index.php?page=parcourir&categorie="+parametre;
}
}
</script> |
Partager