author | František Kučera <franta-hg@frantovo.cz> |
Sun Jan 09 16:27:44 2011 +0100 (2011-01-09) | |
changeset 158 | e1ac3efcd140 |
child 163 | 5f0d5e1305b3 |
permissions | -rw-r--r-- |
franta-hg@158 | 1 |
<?xml version="1.0" encoding="UTF-8"?> |
franta-hg@158 | 2 |
<jsp:root xmlns:jsp="http://java.sun.com/JSP/Page" |
franta-hg@158 | 3 |
xmlns:c="http://java.sun.com/jsp/jstl/core" |
franta-hg@158 | 4 |
xmlns:fmt="http://java.sun.com/jsp/jstl/fmt" |
franta-hg@158 | 5 |
xmlns:fn="http://java.sun.com/jsp/jstl/functions" |
franta-hg@158 | 6 |
xmlns:nk="urn:jsptagdir:/WEB-INF/tags/nekurak" |
franta-hg@158 | 7 |
xmlns:nkfn="/WEB-INF/nekurakFunkce" |
franta-hg@158 | 8 |
version="2.0"> |
franta-hg@158 | 9 |
|
franta-hg@158 | 10 |
<jsp:directive.attribute name="podnik" type="cz.frantovo.nekurak.dto.Podnik" required="true"/> |
franta-hg@158 | 11 |
<jsp:directive.attribute name="detailPodniku" type="Boolean" required="true" description="true = záhlaví podniku na stránce detail | false = výpis jednoho podniku na stránce s přehledem podniků"/> |
franta-hg@158 | 12 |
|
franta-hg@158 | 13 |
<div class="podnik oddelovac"> |
franta-hg@158 | 14 |
<!-- Tři bloky vedle sebe --> |
franta-hg@158 | 15 |
|
franta-hg@158 | 16 |
<!-- Název a adresa podniku --> |
franta-hg@158 | 17 |
<div class="adresa"> |
franta-hg@158 | 18 |
<c:if test="${!detailPodniku}"> |
franta-hg@158 | 19 |
<h2><a href="?akce=detail&amp;podnik=${podnik.id}"><c:out value="${podnik.nazev}"/></a></h2> |
franta-hg@158 | 20 |
</c:if> |
franta-hg@158 | 21 |
<p><c:out value="${podnik.popis}"/></p> |
franta-hg@158 | 22 |
<p> |
franta-hg@158 | 23 |
<fmt:message key="uvod.adresa"/>:<br/> |
franta-hg@158 | 24 |
<c:out value="${podnik.ulice}"/>&#160; |
franta-hg@158 | 25 |
<c:out value="${podnik.cisloPopisne}"/><br/> |
franta-hg@158 | 26 |
<c:out value="${podnik.mesto}"/> |
franta-hg@158 | 27 |
</p> |
franta-hg@158 | 28 |
<c:set var="domena" value="${podnik.urlDomena}"/> |
franta-hg@158 | 29 |
<c:if test="${domena != null}"> |
franta-hg@158 | 30 |
<p> |
franta-hg@158 | 31 |
<fmt:message key="uvod.www" var="titulekWwwStranka"/> |
franta-hg@158 | 32 |
<a href="${fn:escapeXml(podnik.url)}" title="${fn:escapeXml(titulekWwwStranka)}"> |
franta-hg@158 | 33 |
<c:out value="${domena}"/> |
franta-hg@158 | 34 |
</a> |
franta-hg@158 | 35 |
</p> |
franta-hg@158 | 36 |
</c:if> |
franta-hg@158 | 37 |
|
franta-hg@158 | 38 |
<!-- Kategorie podniku (hospoda, vinárna atd.) --> |
franta-hg@158 | 39 |
<c:if test="${!empty podnik.kategorie}"> |
franta-hg@158 | 40 |
<ul class="stitky"> |
franta-hg@158 | 41 |
<c:forEach var="k" items="${podnik.kategorie}"> |
franta-hg@158 | 42 |
<li> |
franta-hg@158 | 43 |
<a href="?akce=kategorie&amp;id=${k.id}" title="${fn:escapeXml(k.popis)}"> |
franta-hg@158 | 44 |
<c:out value="${k.nazev}"/> |
franta-hg@158 | 45 |
</a> |
franta-hg@158 | 46 |
</li> |
franta-hg@158 | 47 |
</c:forEach> |
franta-hg@158 | 48 |
</ul> |
franta-hg@158 | 49 |
</c:if> |
franta-hg@158 | 50 |
</div> |
franta-hg@158 | 51 |
|
franta-hg@158 | 52 |
<!-- Hlasování a graf --> |
franta-hg@158 | 53 |
<div class="hlasovani"> |
franta-hg@158 | 54 |
<nk:hlasovani podnik="${podnik.id}"/> |
franta-hg@158 | 55 |
</div> |
franta-hg@158 | 56 |
|
franta-hg@158 | 57 |
<!-- Fotky podniku --> |
franta-hg@158 | 58 |
<div class="fotky"> |
franta-hg@158 | 59 |
<nk:fotkyPodniku podnik="${podnik}"/> |
franta-hg@158 | 60 |
</div> |
franta-hg@158 | 61 |
|
franta-hg@158 | 62 |
</div> |
franta-hg@158 | 63 |
|
franta-hg@158 | 64 |
<c:if test="${detailPodniku}"> |
franta-hg@158 | 65 |
<!-- konec obtékaných bloků --> |
franta-hg@158 | 66 |
<div class="cistic oddelovac"></div> |
franta-hg@158 | 67 |
</c:if> |
franta-hg@158 | 68 |
|
franta-hg@158 | 69 |
|
franta-hg@158 | 70 |
</jsp:root> |