java/nekurak.net-web/web/WEB-INF/casti/uvod.jsp
author František Kučera <franta-hg@frantovo.cz>
Sat Jan 15 01:12:36 2011 +0100 (2011-01-15)
changeset 171 e619057bad66
parent 170 56deca862adc
permissions -rw-r--r--
Filtrování podniků podle kuřáckosti.
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@171
    12
	<jsp:setProperty name="uvod" property="kurackost"/>
franta-hg@39
    13
franta-hg@145
    14
	<nk:stranka>
franta-hg@39
    15
franta-hg@170
    16
		<p>
franta-hg@170
    17
			<c:choose>
franta-hg@171
    18
				<!-- TODO: předělat, lepší filtrování, více podmínek současně -->
franta-hg@171
    19
				<c:when test="${uvod.kategorie != null &amp;&amp; uvod.kurackost == null}">
franta-hg@171
    20
					<fmt:message key="uvod.podnikyKategorie"/>:
franta-hg@171
    21
					<fmt:message key="dto.kategorie.${uvod.kategorie}.nazev"/>.
franta-hg@171
    22
				</c:when>
franta-hg@171
    23
				<c:when test="${uvod.kategorie == null &amp;&amp; uvod.kurackost != null}">
franta-hg@171
    24
					<fmt:message key="uvod.podnikyKategorie"/>:
franta-hg@171
    25
					<fmt:message key="dto.podnik.kurackost.${uvod.kurackost}.nazev"/>.
franta-hg@170
    26
				</c:when>
franta-hg@170
    27
				<c:otherwise>
franta-hg@171
    28
					<fmt:message key="uvod.naposledyPridanePodniky"/>:
franta-hg@170
    29
				</c:otherwise>
franta-hg@170
    30
			</c:choose>
franta-hg@170
    31
franta-hg@170
    32
		</p>
franta-hg@58
    33
franta-hg@145
    34
		<c:forEach var="p" items="${uvod.podniky}">
franta-hg@158
    35
			<nk:podnikZahlavi podnik="${p}" detailPodniku="false"/>
franta-hg@145
    36
		</c:forEach>
franta-hg@58
    37
franta-hg@145
    38
		<!-- konec obtékaných bloků -->
franta-hg@145
    39
		<div class="cistic"></div>
franta-hg@58
    40
franta-hg@145
    41
	</nk:stranka>
franta-hg@58
    42
franta-hg@37
    43
</jsp:root>