java/nekurak.net-web/web/WEB-INF/tags/nekurak/podnikDetail.tag
author František Kučera <franta-hg@frantovo.cz>
Sun Feb 12 19:42:39 2012 +0100 (2012-02-12)
changeset 203 ac7c8d18831b
parent 191 19128e9f7fb1
permissions -rw-r--r--
mikroformáty: souřadnice podniku
franta-hg@158
     1
<?xml version="1.0" encoding="UTF-8"?>
franta-hg@158
     2
<jsp:root xmlns:jsp="http://java.sun.com/JSP/Page"
franta-hg@158
     3
		  xmlns:c="http://java.sun.com/jsp/jstl/core"
franta-hg@158
     4
		  xmlns:fmt="http://java.sun.com/jsp/jstl/fmt"
franta-hg@158
     5
		  xmlns:fn="http://java.sun.com/jsp/jstl/functions"
franta-hg@158
     6
		  xmlns:nkfn="/WEB-INF/nekurakFunkce"
franta-hg@158
     7
		  version="2.0">
franta-hg@158
     8
franta-hg@179
     9
	<jsp:directive.attribute name="podnik" type="cz.frantovo.nekurak.dto.Podnik" required="true"/>
franta-hg@179
    10
	<jsp:directive.attribute name="mapa" type="java.lang.String" required="true"/>
franta-hg@158
    11
franta-hg@158
    12
	<c:choose>
franta-hg@185
    13
		<c:when test="${mapa == null || mapa == ''}">
franta-hg@158
    14
			<p>
franta-hg@158
    15
				Souřadnice tohoto podniku nejsou známé.<br/>
franta-hg@158
    16
				(možná ještě nebyl proveden jejich výpočet)
franta-hg@158
    17
			</p>
franta-hg@158
    18
		</c:when>
franta-hg@191
    19
		<c:otherwise>			
franta-hg@191
    20
			<p style="float: left;">
franta-hg@191
    21
				<img alt="mapa" src="${fn:escapeXml(mapa)}"/>
franta-hg@191
    22
			</p>
franta-hg@191
    23
			<div style="margin-left: 660px;">
franta-hg@203
    24
				<p class="geo">
franta-hg@203
    25
					Zeměpisná šířka: <span class="latitude">${podnik.sirka}</span><br/>
franta-hg@203
    26
					Zeměpisná délka: <span class="longitude">${podnik.delka}</span><br/>
franta-hg@179
    27
				Loc: ${podnik.sirka}, ${podnik.delka}<br/>
franta-hg@191
    28
				</p>
franta-hg@191
    29
				<p>Odkazy na mapu:</p>
franta-hg@191
    30
				<ul>
franta-hg@191
    31
					<li>
franta-hg@191
    32
						<a href="http://www.openstreetmap.org/?lat=${podnik.sirka}&amp;amp;lon=${podnik.delka}&amp;amp;zoom=18">OpenStreetMap.org</a>
franta-hg@191
    33
					</li>
franta-hg@191
    34
				</ul>
franta-hg@191
    35
			</div>
franta-hg@191
    36
			<div class="cistic"/>
franta-hg@158
    37
		</c:otherwise>
franta-hg@158
    38
	</c:choose>
franta-hg@158
    39
franta-hg@158
    40
franta-hg@158
    41
</jsp:root>