ingo@572: <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN"
ingo@572: "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
ingo@572: <%@ taglib uri="http://jakarta.apache.org/struts/tags-bean" prefix="bean" %>
ingo@585: <%
ingo@585:     String serverPath  = (String) request.getAttribute("mapserver");
ingo@585:     String mapfilePath = (String) request.getAttribute("mapfile");
ingo@585:     String layerName   = (String) request.getAttribute("layer");
ingo@680:     String timeToLive  = (String) request.getAttribute("ttl");
ingo@585: %>
ingo@585: 
ingo@572: <html xmlns="http://www.w3.org/1999/xhtml">
ingo@572:     <head>
ingo@572:         <title>
ingo@572:             <bean:message key="gnviewer.app.title"/>
ingo@572:         </title>
ingo@572:         <meta http-equiv="content-type" content="text/html; charset=UTF-8"/>
ingo@572:         <meta http-equiv="Content-Script-Type" content="text/javascript"/>
ingo@572:         <meta http-equiv="Content-Style-Type" content="text/css"/>
ingo@572:         <meta http-equiv="Expires" content="Mon, 01 Jan 1990 00:00:01 GMT"/>
ingo@572:         <meta http-equiv="pragma" content="no-cache"/>
ingo@572:         <meta http-equiv="cache-control" content="no-cache"/>
ingo@572:         <meta name="robots" content="noindex"/>
ingo@710:         <link href="styles/gnv.css" rel="stylesheet" type="text/css"/>
ingo@697:         <script type="text/javascript" src="http://www.openlayers.org/api/OpenLayers.js"></script>
ingo@572:         <script type="text/javascript">
ingo@572:             var lon  = 5;
ingo@572:             var lat  = 55;
ingo@572:             var zoom = 5;
ingo@572:             var map, layer;
ingo@572: 
ingo@572:             function init() {
tim@677:                 <%if(request.getAttribute("wms_published") != null){ %>
ingo@585:                 map        = new OpenLayers.Map('map');
ingo@707:                 var server = '<%=serverPath%>';
ingo@697:                 var back1 = new OpenLayers.Layer.WMS(
ingo@697:                     "Background1",
ingo@697:                     "http://gdisrv.bsh.de/arcgis/services/Background/Background/MapServer/WMSServer?",
ingo@585:                     {
hans@698:                         layers: '0',
ingo@697:                         format: 'image/png',
ingo@697:                         transparent: false
ingo@697:                     },
ingo@697:                     {
ingo@697:                         isBaseLayer: 'true',
ingo@697:                         singleTile: 'true'
ingo@697:                     }
ingo@697:                 );
ingo@697: 
ingo@697:                 layer      = new OpenLayers.Layer.WMS(
ingo@697:                     "MyWMS",
ingo@697:                     server,
ingo@697:                     {
ingo@697:                         layers: '<%=layerName%>',
ingo@697:                         format: 'image/png',
ingo@697:                         transparent: 'true'
ingo@697:                     },
ingo@697:                     {
ingo@697:                         singleTile: 'true'
ingo@697:                     }
ingo@697:                 );
ingo@697: 
hans@698:                 map.addLayers([back1, layer]);
ingo@585:                 map.setCenter(new OpenLayers.LonLat(lon, lat), zoom);
tim@677:                 <%}%>
ingo@572:             }
ingo@695: 
ingo@695:             function toggle(element) {
ingo@695:                 var ele = document.getElementById(element);
ingo@695:                 var vis = ele.style.visibility;
ingo@695:                 if (vis != "visible") {
ingo@695:                     ele.style.visibility = "visible";
ingo@695:                 }
ingo@695:                 else {
ingo@695:                     ele.style.visibility = "hidden";
ingo@695:                 }
ingo@695:             }
ingo@697: 
ingo@572:         </script>
ingo@572:     </head>
ingo@572: 
ingo@572:     <body id="gnviewerbody" onLoad="init()">
ingo@572:     <div id="overlay"></div>
ingo@710:     <div style="width:100%;left:0;top:0;width:100%;height:100%;position:absolute;visibility:hidden;">
ingo@572:         <div id="overlayContent">
ingo@572:             <p>
ingo@572:                 <bean:message key="gnviewer.productselection.overlay.title"/>
ingo@572:             </p>
ingo@572:         </div>
ingo@572:     </div>
ingo@572:     <div id="page">
ingo@694:         <div id="headerElement">
ingo@694:             <jsp:include page="header.jsp" />
ingo@694:         </div>
ingo@697:         <div id="contentElement" class="contentElement">
ingo@694:             <jsp:include page="index.jsp" />
ingo@694:          </div>
ingo@694:          <br>
ingo@694:          <div id="footerElement">
ingo@694:             <jsp:include page="footer.jsp" />
ingo@585:         </div>
ingo@572:     </div>
ingo@572:     </body>
ingo@572: </html>