java/nekurak.net-web/web/WEB-INF/casti/detail.jsp
author František Kučera <franta-hg@frantovo.cz>
Sun Jan 09 01:35:24 2011 +0100 (2011-01-09)
changeset 157 15ead5a70fdd
parent 126 d47f6a75d20e
child 158 e1ac3efcd140
permissions -rw-r--r--
Aktualizace: © 2011
franta-hg@40
     1
<?xml version="1.0" encoding="UTF-8"?>
franta-hg@40
     2
<jsp:root xmlns:jsp="http://java.sun.com/JSP/Page"
franta-hg@145
     3
		  xmlns:c="http://java.sun.com/jsp/jstl/core"
franta-hg@145
     4
		  xmlns:fmt="http://java.sun.com/jsp/jstl/fmt"
franta-hg@145
     5
		  xmlns:fn="http://java.sun.com/jsp/jstl/functions"
franta-hg@145
     6
		  xmlns:nk="urn:jsptagdir:/WEB-INF/tags/nekurak"
franta-hg@145
     7
		  version="2.0">
franta-hg@40
     8
franta-hg@145
     9
	<jsp:useBean id="detail" class="cz.frantovo.nekurak.web.Detail" scope="request"/>
franta-hg@100
    10
franta-hg@145
    11
	<jsp:setProperty name="detail" property="id" value="${param.podnik}"/>
franta-hg@100
    12
franta-hg@145
    13
	<nk:stranka titulek="${fn:escapeXml(detail.podnik.nazev)}">
franta-hg@100
    14
franta-hg@145
    15
		<h1><c:out value="${detail.podnik.nazev}" /></h1>
franta-hg@100
    16
franta-hg@100
    17
franta-hg@145
    18
		<c:choose>
franta-hg@145
    19
			<c:when test="${detail.mapa == null}">
franta-hg@145
    20
				<p>
franta-hg@145
    21
					Souřadnice tohoto podniku nejsou známé.<br/>
franta-hg@145
    22
					(možná ještě nebyl proveden jejich výpočet)
franta-hg@145
    23
				</p>
franta-hg@145
    24
			</c:when>
franta-hg@145
    25
			<c:otherwise>
franta-hg@145
    26
				<p>
franta-hg@145
    27
					Zeměpisná šířka: ${detail.podnik.sirka}<br/>
franta-hg@145
    28
					Zeměpisná délka: ${detail.podnik.delka}<br/>
franta-hg@145
    29
					Loc: ${detail.podnik.sirka}, ${detail.podnik.delka}<br/>
franta-hg@145
    30
				</p>
franta-hg@145
    31
				<p>
franta-hg@145
    32
					<img alt="mapa" src="${fn:escapeXml(detail.mapa)}"/>
franta-hg@145
    33
				</p>
franta-hg@145
    34
			</c:otherwise>
franta-hg@145
    35
		</c:choose>
franta-hg@100
    36
franta-hg@145
    37
		<nk:komentareVypis podnik="${detail.podnik}"/>
franta-hg@100
    38
franta-hg@145
    39
	</nk:stranka>
franta-hg@40
    40
franta-hg@40
    41
</jsp:root>