java/nekurak.net-web/web/WEB-INF/tags/nekurak/podnikDetail.tag
author František Kučera <franta-hg@frantovo.cz>
Wed Jul 20 18:55:25 2011 +0200 (2011-07-20)
changeset 191 19128e9f7fb1
parent 185 60658773f604
child 203 ac7c8d18831b
permissions -rw-r--r--
širší mapa + souřadnice a odkaz na OSM vedle ní
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@191
    24
				<p>
franta-hg@179
    25
				Zeměpisná šířka: ${podnik.sirka}<br/>
franta-hg@179
    26
				Zeměpisná délka: ${podnik.delka}<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>