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