java/nekurak.net-web/web/WEB-INF/casti/uvod.jsp
author František Kučera <franta-hg@frantovo.cz>
Sat Jan 15 00:57:45 2011 +0100 (2011-01-15)
changeset 170 56deca862adc
parent 158 e1ac3efcd140
child 171 e619057bad66
permissions -rw-r--r--
Filtrování podniků podle kategorie.
franta-hg@37
     1
<?xml version="1.0" encoding="UTF-8"?>
franta-hg@37
     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@154
     7
		  xmlns:nkfn="/WEB-INF/nekurakFunkce"
franta-hg@145
     8
		  version="2.0">
franta-hg@37
     9
franta-hg@145
    10
	<jsp:useBean id="uvod" class="cz.frantovo.nekurak.web.Uvod" scope="request"/>
franta-hg@170
    11
	<jsp:setProperty name="uvod" property="kategorie"/>
franta-hg@39
    12
franta-hg@145
    13
	<nk:stranka>
franta-hg@39
    14
franta-hg@170
    15
		<p>
franta-hg@170
    16
			<c:choose>
franta-hg@170
    17
				<c:when test="${uvod.kategorie == null}">
franta-hg@170
    18
					<fmt:message key="uvod.naposledyPridanePodniky"/>:		
franta-hg@170
    19
				</c:when>
franta-hg@170
    20
				<c:otherwise>
franta-hg@170
    21
					<fmt:message key="uvod.podnikyKategorie"/>:
franta-hg@170
    22
					<fmt:message key="dto.kategorie.${uvod.kategorie}.nazev"/>.
franta-hg@170
    23
				</c:otherwise>
franta-hg@170
    24
			</c:choose>
franta-hg@170
    25
franta-hg@170
    26
		</p>
franta-hg@58
    27
franta-hg@145
    28
		<c:forEach var="p" items="${uvod.podniky}">
franta-hg@158
    29
			<nk:podnikZahlavi podnik="${p}" detailPodniku="false"/>
franta-hg@145
    30
		</c:forEach>
franta-hg@58
    31
franta-hg@145
    32
		<!-- konec obtékaných bloků -->
franta-hg@145
    33
		<div class="cistic"></div>
franta-hg@58
    34
franta-hg@145
    35
	</nk:stranka>
franta-hg@58
    36
franta-hg@37
    37
</jsp:root>