author | František Kučera <franta-hg@frantovo.cz> |
Sun Mar 14 01:05:35 2010 +0100 (2010-03-14) | |
changeset 67 | fa7e30dee3b3 |
parent 66 | 048531e09c09 |
child 68 | df5aedafb826 |
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@37 | 3 |
xmlns:c="http://java.sun.com/jsp/jstl/core" |
franta-hg@37 | 4 |
xmlns:fmt="http://java.sun.com/jsp/jstl/fmt" |
franta-hg@39 | 5 |
xmlns:fn="http://java.sun.com/jsp/jstl/functions" |
franta-hg@58 | 6 |
xmlns:nk="urn:jsptagdir:/WEB-INF/tags/nekurak" |
franta-hg@66 | 7 |
xmlns:nkfn="/WEB-INF/nekurakFunkce" |
franta-hg@37 | 8 |
version="2.0"> |
franta-hg@37 | 9 |
|
franta-hg@39 | 10 |
<jsp:useBean id="uvod" class="cz.frantovo.nekurak.web.Uvod" scope="request"/> |
franta-hg@39 | 11 |
|
franta-hg@42 | 12 |
<p><fmt:message key="uvod.naposledyPridanePodniky"/>:</p> |
franta-hg@39 | 13 |
|
franta-hg@58 | 14 |
<script type="text/javascript" src="js/fotkyPodniku.js"></script> |
franta-hg@58 | 15 |
|
franta-hg@39 | 16 |
<c:forEach var="p" items="${uvod.podniky}"> |
franta-hg@40 | 17 |
<div class="podnik"> |
franta-hg@58 | 18 |
<!-- Tři bloky vedle sebe --> |
franta-hg@58 | 19 |
|
franta-hg@58 | 20 |
<!-- Název a adresa podniku --> |
franta-hg@58 | 21 |
<div class="adresa"> |
franta-hg@58 | 22 |
<h2><a href="?akce=detail&amp;podnik=${p.id}"><c:out value="${p.nazev}"/></a></h2> |
franta-hg@58 | 23 |
<p><c:out value="${p.popis}"/></p> |
franta-hg@58 | 24 |
<p> |
franta-hg@58 | 25 |
<fmt:message key="uvod.adresa"/>:<br/> |
franta-hg@58 | 26 |
<c:out value="${p.ulice}"/>&#160; |
franta-hg@58 | 27 |
<c:out value="${p.cisloPopisne}"/><br/> |
franta-hg@58 | 28 |
<c:out value="${p.mesto}"/> |
franta-hg@58 | 29 |
</p> |
franta-hg@58 | 30 |
<c:if test="${p.url != null}"> |
franta-hg@58 | 31 |
<p><a href="${fn:escapeXml(p.url)}"><fmt:message key="uvod.www"/></a></p> |
franta-hg@58 | 32 |
</c:if> |
franta-hg@58 | 33 |
</div> |
franta-hg@58 | 34 |
|
franta-hg@58 | 35 |
<!-- Hlasování a graf --> |
franta-hg@58 | 36 |
<div class="hlasovani"> |
franta-hg@58 | 37 |
<nk:hlasovani podnik="${p.id}"/> |
franta-hg@67 | 38 |
|
franta-hg@67 | 39 |
<c:forEach var="fotka" items="${p.fotky}"> |
franta-hg@67 | 40 |
<p>${fotka.id} | ${fotka.popis}</p> |
franta-hg@67 | 41 |
</c:forEach> |
franta-hg@67 | 42 |
|
franta-hg@58 | 43 |
</div> |
franta-hg@58 | 44 |
|
franta-hg@58 | 45 |
<!-- Fotky podniku --> |
franta-hg@58 | 46 |
<div class="fotky"> |
franta-hg@58 | 47 |
<nk:fotkyPodniku podnik="${p.id}"/> |
franta-hg@58 | 48 |
</div> |
franta-hg@58 | 49 |
|
franta-hg@40 | 50 |
</div> |
franta-hg@39 | 51 |
</c:forEach> |
franta-hg@37 | 52 |
|
franta-hg@58 | 53 |
<!-- konec obtékaných bloků --> |
franta-hg@58 | 54 |
<div class="cistic"></div> |
franta-hg@58 | 55 |
|
franta-hg@37 | 56 |
</jsp:root> |