Advertisement
Guest User

GarciaPL

a guest
Mar 14th, 2013
117
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Java 6.04 KB | None | 0 0
  1. <%@page import="java.util.Iterator"%>
  2. <%@page import="pl.eventoo.mongodb.dao.WydarzenieDaoImpl"%>
  3. <%@page import="pl.eventoo.domain.Koordynaty"%>
  4. <%@page import="java.util.List"%>
  5. <%@ taglib uri="http://java.sun.com/jsp/jstl/core" prefix="c" %>
  6. <%@ page language="java" contentType="text/html; charset=UTF-8" pageEncoding="UTF-8"%>
  7. <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
  8. <html xmlns="http://www.w3.org/1999/xhtml">
  9.     <head>
  10.         <meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
  11.  
  12.         <title>Eventoo</title>
  13.         <meta name="description" content="Eventoo is a multifunctional tool for event management" />
  14.         <meta name="robots" content="index, follow" />
  15.         <meta name="distribution" content="global" />
  16.         <meta name="language" content="en,pl" />
  17.         <meta name="expires" content="never" />
  18.  
  19.         <link href='<%=request.getContextPath()%>/resources/res_jsp2/css/googlefont.css' rel='stylesheet' type='text/css' />
  20.         <link href="<%=request.getContextPath()%>/resources/res_jsp2/css/mobile.css" rel="stylesheet" type="text/css" />
  21.  
  22.         <meta name="viewport" content="width=device-width, initial-scale=1.0, maximum-scale=1.3, user-scalable=yes" />
  23.         <meta name="apple-mobile-web-app-capable" content="yes" />
  24.         <meta name="apple-mobile-web-app-status-bar-style" content="black" />
  25.  
  26.         <script src="<%=request.getContextPath()%>/resources/res_jsp2/js/jquery-1.8.2.min.js" type="text/javascript" ></script>
  27.         <script src="<%=request.getContextPath()%>/resources/res_jsp2/js/accordion.js" type="text/javascript" ></script>
  28.         <script type="text/javascript">
  29.             var contexPath = "<%=request.getContextPath()%>";
  30.         </script>
  31.  
  32.         <!-- Obsluga i parsowanie formularzy -->
  33.         <script type="text/javascript" src="<%=request.getContextPath()%>/resources/res_jsp2/js/user.js"></script>
  34.  
  35.         <style type="text/css">
  36.             #map {
  37.                 <!-- width: 300px;
  38.                 height: 300px; -->
  39.             }
  40.             #map_wrap {
  41.                 position:relative;
  42.                 width: 100%;
  43.                 height:280px;
  44.                 padding-top:0px;
  45.                 border: 1px solid #aaa;
  46.             }
  47.         </style>
  48.  
  49.         <script type="text/javascript" src="http://maps.google.com/maps/api/js?sensor=true"></script>
  50.         <script type="text/javascript">
  51.             var map;
  52.             var markers = [];
  53.  
  54.             function initialize() {
  55.                 var options = {
  56.                     mapTypeControlOptions: {
  57.                         mapTypeIds: [google.maps.MapTypeId.ROADMAP, google.maps.MapTypeId.TERRAIN],
  58.                         style: google.maps.MapTypeControlStyle.DROPDOWN_MENU
  59.                     }
  60.                 };
  61.                
  62.                 var markerBounds = new google.maps.LatLngBounds();
  63.                 <c:forEach items="${coordinatesList}" var="koordynaty">
  64.                     var randomPoint = new google.maps.LatLng(${koordynaty.wysokosc}, ${koordynaty.szerokosc});
  65.                     markerBounds.extend(randomPoint);
  66.                 </c:forEach>
  67.  
  68.                 map = new google.maps.Map(document.getElementById('map'));
  69.                 map.setCenter(new google.maps.LatLng(${centerWysokosc}, ${centerSzerokosc}));
  70.                 map.setZoom(15);
  71.                 map.fitBounds(markerBounds);
  72.                 map.setMapTypeId(google.maps.MapTypeId.ROADMAP);
  73.  
  74.                 <c:forEach items="${coordinatesList}" var="koordynaty">
  75.                     addMarker(new google.maps.LatLng(${koordynaty.wysokosc}, ${koordynaty.szerokosc}), "Eventoo");
  76.                 </c:forEach>
  77.  
  78.                 }
  79.                 function addMarker(latlng, myTitle) {
  80.                     markers.push(new google.maps.Marker({
  81.                         position: latlng,
  82.                         map: map,
  83.                         title: myTitle,
  84.                         icon: "http://maps.google.com/mapfiles/marker" + String.fromCharCode(markers.length + 65) + ".png"
  85.                     }));
  86.                 }
  87.         </script>
  88.  
  89.     </head>
  90.     <body>
  91.         <div id="header">
  92.             <div id="box">
  93.                 <div id="logo_home"><a href="#" id="logo_eventoo"></a>
  94.                 </div>
  95.             </div>
  96.         </div>
  97.  
  98.         <div style="height:150px; width:100%;">&nbsp;</div>
  99.  
  100.         <div class="box justify" style="text-align: center">
  101.             <h1>Koordynaty wydarzenia</h1>
  102.             <p>&nbsp;</p>
  103.         </div>
  104.  
  105.         <p>&nbsp;</p>
  106.         <div id="map_wrap" align="center">
  107.             <div id="map"></div>
  108.         </div>
  109.  
  110.         <div style="height:70px; width:100%;">&nbsp;</div>
  111.  
  112.         <div class="box" align="center">
  113.             <input id="send" name="submit" type="submit" value="Powrót" onclick="loadWydarzeniaPageGET()" class="form_send" />
  114.         </div>
  115.  
  116.         <div style="height:50px; width:100%;">&nbsp;</div>
  117.  
  118.         <div id="footer">
  119.             <div class="box">
  120.                 <div id="footer_content">
  121.                     <a id="facebook_footer" href="http://m.facebook.com" target="_blank"></a>
  122.                     <a id="twitter_footer" href="http://mobile.twitter.com" target="_blank"></a>
  123.                     <a id="googleplus_footer" href="https://plus.google.com" target="_blank"></a>
  124.                     <a id="linkedin_footer" href="http://touch.www.linkedin.com" target="_blank"></a>
  125.                     <a id="lastfm_footer" href="http://www.lastfm.pl" target="_blank"></a><br />
  126.                     <div style="height:15px; width:100%;">&nbsp;</div>
  127.                     <a id="orange_footer" href="http://www.orange.pl" target="_blank"></a>
  128.                 </div>
  129.             </div>
  130.         </div>
  131.  
  132.         <!-- iPhone orientation -->
  133.         <script src="<%=request.getContextPath()%>/resources/res_jsp2/js/orientation.js"></script>
  134.  
  135.         <script type="text/javascript">
  136.                 initialize();
  137.         </script>
  138.     </body>
  139. </html>
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement