java/nekurak.net-web/web/WEB-INF/tags/nekurak/podnikDetail.tag
author František Kučera <franta-hg@frantovo.cz>
Sun Jan 09 16:27:44 2011 +0100 (2011-01-09)
changeset 158 e1ac3efcd140
child 179 2ed9f3231a28
permissions -rw-r--r--
vylepšen detail podniku, modularizace, značky, css
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@158
     9
	<jsp:directive.attribute name="detail" type="cz.frantovo.nekurak.web.Detail" required="true"/>
franta-hg@158
    10
franta-hg@158
    11
	<c:choose>
franta-hg@158
    12
		<c:when test="${detail.mapa == null}">
franta-hg@158
    13
			<p>
franta-hg@158
    14
				Souřadnice tohoto podniku nejsou známé.<br/>
franta-hg@158
    15
				(možná ještě nebyl proveden jejich výpočet)
franta-hg@158
    16
			</p>
franta-hg@158
    17
		</c:when>
franta-hg@158
    18
		<c:otherwise>
franta-hg@158
    19
			<p>
franta-hg@158
    20
				Zeměpisná šířka: ${detail.podnik.sirka}<br/>
franta-hg@158
    21
				Zeměpisná délka: ${detail.podnik.delka}<br/>
franta-hg@158
    22
				Loc: ${detail.podnik.sirka}, ${detail.podnik.delka}<br/>
franta-hg@158
    23
			</p>
franta-hg@158
    24
			<p>
franta-hg@158
    25
				<img alt="mapa" src="${fn:escapeXml(detail.mapa)}"/>
franta-hg@158
    26
			</p>
franta-hg@158
    27
		</c:otherwise>
franta-hg@158
    28
	</c:choose>
franta-hg@158
    29
franta-hg@158
    30
franta-hg@158
    31
</jsp:root>