author | František Kučera <franta-hg@frantovo.cz> |
Sat, 15 Jan 2011 00:06:34 +0100 | |
changeset 169 | 15f172a772a4 |
parent 168 | 8149f05fe816 |
child 170 | 56deca862adc |
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@164 | 13 |
<jsp:useBean id="zahlavi" class="cz.frantovo.nekurak.web.Zahlavi" scope="request"/> |
franta-hg@164 | 14 |
<jsp:setProperty name="zahlavi" property="podnik" value="${podnik}"/> |
franta-hg@164 | 15 |
|
franta-hg@158 | 16 |
<div class="podnik oddelovac"> |
franta-hg@158 | 17 |
<!-- Tři bloky vedle sebe --> |
franta-hg@158 | 18 |
|
franta-hg@158 | 19 |
<!-- Název a adresa podniku --> |
franta-hg@158 | 20 |
<div class="adresa"> |
franta-hg@158 | 21 |
<c:if test="${!detailPodniku}"> |
franta-hg@158 | 22 |
<h2><a href="?akce=detail&amp;podnik=${podnik.id}"><c:out value="${podnik.nazev}"/></a></h2> |
franta-hg@158 | 23 |
</c:if> |
franta-hg@158 | 24 |
<p><c:out value="${podnik.popis}"/></p> |
franta-hg@158 | 25 |
<p> |
franta-hg@164 | 26 |
<fmt:message key="uvod.adresa"/>:<br/> |
franta-hg@168 | 27 |
<c:out value="${podnik.ulice}"/>&#160;<c:out value="${podnik.cisloPopisne}"/><br/> |
franta-hg@164 | 28 |
<c:out value="${podnik.mesto}"/> |
franta-hg@158 | 29 |
</p> |
franta-hg@158 | 30 |
<c:set var="domena" value="${podnik.urlDomena}"/> |
franta-hg@158 | 31 |
<c:if test="${domena != null}"> |
franta-hg@158 | 32 |
<p> |
franta-hg@164 | 33 |
<fmt:message key="uvod.www" var="titulekWwwStranka"/> |
franta-hg@164 | 34 |
<a href="${fn:escapeXml(podnik.url)}" title="${fn:escapeXml(titulekWwwStranka)}"> |
franta-hg@164 | 35 |
<c:out value="${domena}"/> |
franta-hg@164 | 36 |
</a> |
franta-hg@158 | 37 |
</p> |
franta-hg@158 | 38 |
</c:if> |
franta-hg@158 | 39 |
|
franta-hg@164 | 40 |
<ul class="stitky"> |
franta-hg@164 | 41 |
<!-- Kategorie podniku (hospoda, vinárna atd.) --> |
franta-hg@164 | 42 |
<c:forEach var="k" items="${podnik.kategorie}"> |
franta-hg@166 | 43 |
<li class="normalni"> |
franta-hg@164 | 44 |
<fmt:message key="dto.kategorie.${k.id}.popis" var="popisKategorie"/> |
franta-hg@164 | 45 |
<a href="?akce=kategorie&amp;id=${k.id}" title="${popisKategorie}"> |
franta-hg@164 | 46 |
<fmt:message key="dto.kategorie.${k.id}.nazev"/> |
franta-hg@164 | 47 |
</a> |
franta-hg@164 | 48 |
</li> |
franta-hg@164 | 49 |
</c:forEach> |
franta-hg@164 | 50 |
|
franta-hg@164 | 51 |
<!-- Kuřáckost podniku --> |
franta-hg@166 | 52 |
<c:choose> |
franta-hg@166 | 53 |
<c:when test="${podnik.kurackost.id == 2}"><c:set var="cssKurackost" value="kladny"/></c:when> |
franta-hg@166 | 54 |
<c:otherwise><c:set var="cssKurackost" value="nevyrazny"/></c:otherwise> |
franta-hg@166 | 55 |
</c:choose> |
franta-hg@166 | 56 |
<li class="${cssKurackost}"> |
franta-hg@164 | 57 |
<fmt:message key="dto.podnik.kurackost.${podnik.kurackost.id}.popis" var="popisKurackosti"/> |
franta-hg@164 | 58 |
<a href="?akce=kurackost&amp;id=${podnik.kurackost.id}" title="${popisKurackosti}"> |
franta-hg@164 | 59 |
<fmt:message key="dto.podnik.kurackost.${podnik.kurackost.id}.nazev"/> |
franta-hg@164 | 60 |
</a> |
franta-hg@164 | 61 |
</li> |
franta-hg@164 | 62 |
|
franta-hg@164 | 63 |
<!-- Spokojenost--> |
franta-hg@164 | 64 |
<c:set var="spokojenost" value="${zahlavi.vysledek.spokojenost}"/> |
franta-hg@166 | 65 |
<c:choose> |
franta-hg@166 | 66 |
<c:when test="${spokojenost}"><c:set var="cssSpokojenost" value="kladny"/></c:when> |
franta-hg@166 | 67 |
<c:otherwise><c:set var="cssSpokojenost" value="nevyrazny"/></c:otherwise> |
franta-hg@166 | 68 |
</c:choose> |
franta-hg@166 | 69 |
<li class="${cssSpokojenost}"> |
franta-hg@164 | 70 |
<fmt:message key="dto.podnik.spokojenost.${spokojenost}.popis" var="popisSpokojenosti"/> |
franta-hg@164 | 71 |
<a href="?akce=spokojenost&amp;id=${spokojenost}" title="${popisSpokojenosti}"> |
franta-hg@164 | 72 |
<fmt:message key="dto.podnik.spokojenost.${spokojenost}.nazev"/> |
franta-hg@164 | 73 |
</a> |
franta-hg@164 | 74 |
</li> |
franta-hg@164 | 75 |
</ul> |
franta-hg@158 | 76 |
</div> |
franta-hg@158 | 77 |
|
franta-hg@158 | 78 |
<!-- Hlasování a graf --> |
franta-hg@158 | 79 |
<div class="hlasovani"> |
franta-hg@164 | 80 |
<nk:hlasovani podnik="${podnik.id}" hlasuAno="${zahlavi.vysledek.hlasuAno}" hlasuNe="${zahlavi.vysledek.hlasuNe}"/> |
franta-hg@158 | 81 |
</div> |
franta-hg@158 | 82 |
|
franta-hg@158 | 83 |
<!-- Fotky podniku --> |
franta-hg@158 | 84 |
<div class="fotky"> |
franta-hg@158 | 85 |
<nk:fotkyPodniku podnik="${podnik}"/> |
franta-hg@158 | 86 |
</div> |
franta-hg@158 | 87 |
|
franta-hg@158 | 88 |
</div> |
franta-hg@164 | 89 |
|
franta-hg@158 | 90 |
<c:if test="${detailPodniku}"> |
franta-hg@158 | 91 |
<!-- konec obtékaných bloků --> |
franta-hg@158 | 92 |
<div class="cistic oddelovac"></div> |
franta-hg@158 | 93 |
</c:if> |
franta-hg@158 | 94 |
|
franta-hg@158 | 95 |
|
franta-hg@158 | 96 |
</jsp:root> |