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