java/nekurak.net-web/web/WEB-INF/tags/nekurak/podnikDetail.tag
author František Kučera <franta-hg@frantovo.cz>
Sun Jul 10 20:17:56 2011 +0200 (2011-07-10)
changeset 185 60658773f604
parent 179 2ed9f3231a28
child 191 19128e9f7fb1
permissions -rw-r--r--
Odkaz na OpenStreetMap
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@158
    19
		<c:otherwise>
franta-hg@158
    20
			<p>
franta-hg@179
    21
				Zeměpisná šířka: ${podnik.sirka}<br/>
franta-hg@179
    22
				Zeměpisná délka: ${podnik.delka}<br/>
franta-hg@179
    23
				Loc: ${podnik.sirka}, ${podnik.delka}<br/>
franta-hg@158
    24
			</p>
franta-hg@158
    25
			<p>
franta-hg@179
    26
				<img alt="mapa" src="${fn:escapeXml(mapa)}"/>
franta-hg@158
    27
			</p>
franta-hg@185
    28
			<p>Odkazy na mapu:</p>
franta-hg@185
    29
			<ul>
franta-hg@185
    30
				<li>
franta-hg@185
    31
					<a href="http://www.openstreetmap.org/?lat=${podnik.sirka}&amp;amp;lon=${podnik.delka}&amp;amp;zoom=18">OpenStreetMap.org</a>
franta-hg@185
    32
				</li>
franta-hg@185
    33
			</ul>
franta-hg@158
    34
		</c:otherwise>
franta-hg@158
    35
	</c:choose>
franta-hg@158
    36
franta-hg@158
    37
franta-hg@158
    38
</jsp:root>