java/nekurak.net-web/web/WEB-INF/casti/detail.jsp
author František Kučera <franta-hg@frantovo.cz>
Sun Aug 15 22:20:10 2010 +0200 (2010-08-15)
changeset 151 d7b5099bf65e
parent 126 d47f6a75d20e
child 158 e1ac3efcd140
permissions -rw-r--r--
chat
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>