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