author | František Kučera <franta-hg@frantovo.cz> |
Sun Jan 09 01:05:59 2011 +0100 (2011-01-09) | |
changeset 156 | 5f14ce03f518 |
parent 154 | bf21a4abea9b |
child 157 | 15ead5a70fdd |
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@156 | 32 |
<c:set var="domena" value="${p.urlDomena}"/> |
franta-hg@156 | 33 |
<c:if test="${domena != null}"> |
franta-hg@156 | 34 |
<p> |
franta-hg@156 | 35 |
<fmt:message key="uvod.www" var="titulekWwwStranka"/> |
franta-hg@156 | 36 |
<a href="${fn:escapeXml(p.url)}" title="${fn:escapeXml(titulekWwwStranka)}" class="ẃebPodniku"> |
franta-hg@156 | 37 |
<c:out value="${domena}"/> |
franta-hg@156 | 38 |
</a> |
franta-hg@156 | 39 |
</p> |
franta-hg@145 | 40 |
</c:if> |
franta-hg@154 | 41 |
|
franta-hg@154 | 42 |
<!-- Kategorie podniku (hospoda, vinárna atd.) --> |
franta-hg@154 | 43 |
<c:if test="${!empty p.kategorie}"> |
franta-hg@154 | 44 |
<ul class="stitky"> |
franta-hg@154 | 45 |
<c:forEach var="k" items="${p.kategorie}"> |
franta-hg@154 | 46 |
<li> |
franta-hg@154 | 47 |
<a href="?akce=kategorie&amp;id=${k.id}" title="${fn:escapeXml(k.popis)}"> |
franta-hg@154 | 48 |
<c:out value="${k.nazev}"/> |
franta-hg@154 | 49 |
</a> |
franta-hg@154 | 50 |
</li> |
franta-hg@154 | 51 |
</c:forEach> |
franta-hg@154 | 52 |
</ul> |
franta-hg@154 | 53 |
</c:if> |
franta-hg@145 | 54 |
</div> |
franta-hg@73 | 55 |
|
franta-hg@145 | 56 |
<!-- Hlasování a graf --> |
franta-hg@145 | 57 |
<div class="hlasovani"> |
franta-hg@145 | 58 |
<nk:hlasovani podnik="${p.id}"/> |
franta-hg@145 | 59 |
</div> |
franta-hg@73 | 60 |
|
franta-hg@145 | 61 |
<!-- Fotky podniku --> |
franta-hg@145 | 62 |
<div class="fotky"> |
franta-hg@145 | 63 |
<nk:fotkyPodniku podnik="${p}"/> |
franta-hg@145 | 64 |
</div> |
franta-hg@73 | 65 |
|
franta-hg@145 | 66 |
</div> |
franta-hg@145 | 67 |
</c:forEach> |
franta-hg@58 | 68 |
|
franta-hg@145 | 69 |
<!-- konec obtékaných bloků --> |
franta-hg@145 | 70 |
<div class="cistic"></div> |
franta-hg@58 | 71 |
|
franta-hg@145 | 72 |
</nk:stranka> |
franta-hg@58 | 73 |
|
franta-hg@37 | 74 |
</jsp:root> |