author | František Kučera <franta-hg@frantovo.cz> |
Sat, 08 Jan 2011 21:51:54 +0100 | |
changeset 155 | 0a2943a82c82 |
parent 154 | bf21a4abea9b |
child 156 | 5f14ce03f518 |
permissions | -rw-r--r-- |
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@39 | 11 |
|
franta-hg@145 | 12 |
<nk:stranka> |
franta-hg@39 | 13 |
|
franta-hg@145 | 14 |
<p><fmt:message key="uvod.naposledyPridanePodniky"/>:</p> |
franta-hg@58 | 15 |
|
franta-hg@145 | 16 |
<script type="text/javascript" src="js/fotkyPodniku.js"></script> |
franta-hg@58 | 17 |
|
franta-hg@145 | 18 |
<c:forEach var="p" items="${uvod.podniky}"> |
franta-hg@145 | 19 |
<div class="podnik"> |
franta-hg@145 | 20 |
<!-- Tři bloky vedle sebe --> |
franta-hg@73 | 21 |
|
franta-hg@145 | 22 |
<!-- Název a adresa podniku --> |
franta-hg@145 | 23 |
<div class="adresa"> |
franta-hg@145 | 24 |
<h2><a href="?akce=detail&amp;podnik=${p.id}"><c:out value="${p.nazev}"/></a></h2> |
franta-hg@145 | 25 |
<p><c:out value="${p.popis}"/></p> |
franta-hg@145 | 26 |
<p> |
franta-hg@145 | 27 |
<fmt:message key="uvod.adresa"/>:<br/> |
franta-hg@145 | 28 |
<c:out value="${p.ulice}"/>&#160; |
franta-hg@145 | 29 |
<c:out value="${p.cisloPopisne}"/><br/> |
franta-hg@145 | 30 |
<c:out value="${p.mesto}"/> |
franta-hg@145 | 31 |
</p> |
franta-hg@145 | 32 |
<c:if test="${p.url != null}"> |
franta-hg@145 | 33 |
<p><a href="${fn:escapeXml(p.url)}"><fmt:message key="uvod.www"/></a></p> |
franta-hg@145 | 34 |
</c:if> |
franta-hg@154 | 35 |
|
franta-hg@154 | 36 |
<!-- Kategorie podniku (hospoda, vinárna atd.) --> |
franta-hg@154 | 37 |
<c:if test="${!empty p.kategorie}"> |
franta-hg@154 | 38 |
<ul class="stitky"> |
franta-hg@154 | 39 |
<c:forEach var="k" items="${p.kategorie}"> |
franta-hg@154 | 40 |
<li> |
franta-hg@154 | 41 |
<a href="?akce=kategorie&amp;id=${k.id}" title="${fn:escapeXml(k.popis)}"> |
franta-hg@154 | 42 |
<c:out value="${k.nazev}"/> |
franta-hg@154 | 43 |
</a> |
franta-hg@154 | 44 |
</li> |
franta-hg@154 | 45 |
</c:forEach> |
franta-hg@154 | 46 |
</ul> |
franta-hg@154 | 47 |
</c:if> |
franta-hg@145 | 48 |
</div> |
franta-hg@73 | 49 |
|
franta-hg@145 | 50 |
<!-- Hlasování a graf --> |
franta-hg@145 | 51 |
<div class="hlasovani"> |
franta-hg@145 | 52 |
<nk:hlasovani podnik="${p.id}"/> |
franta-hg@145 | 53 |
</div> |
franta-hg@73 | 54 |
|
franta-hg@145 | 55 |
<!-- Fotky podniku --> |
franta-hg@145 | 56 |
<div class="fotky"> |
franta-hg@145 | 57 |
<nk:fotkyPodniku podnik="${p}"/> |
franta-hg@145 | 58 |
</div> |
franta-hg@73 | 59 |
|
franta-hg@145 | 60 |
</div> |
franta-hg@145 | 61 |
</c:forEach> |
franta-hg@58 | 62 |
|
franta-hg@145 | 63 |
<!-- konec obtékaných bloků --> |
franta-hg@145 | 64 |
<div class="cistic"></div> |
franta-hg@58 | 65 |
|
franta-hg@145 | 66 |
</nk:stranka> |
franta-hg@58 | 67 |
|
franta-hg@37 | 68 |
</jsp:root> |