java/nekurak.net-web/web/WEB-INF/casti/detail.jsp
author František Kučera <franta-hg@frantovo.cz>
Tue Apr 27 22:41:04 2010 +0200 (2010-04-27)
changeset 111 401cc563a0c1
parent 100 01be78803f73
child 126 d47f6a75d20e
permissions -rw-r--r--
Lokalizace (TODO: Javascript).
     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 
    38 
    39     </nk:stranka>
    40 
    41 </jsp:root>