java/nekurak.net-web/web/WEB-INF/casti/uvod.jsp
author František Kučera <franta-hg@frantovo.cz>
Sun, 09 Jan 2011 01:35:24 +0100
changeset 157 15ead5a70fdd
parent 156 5f14ce03f518
child 158 e1ac3efcd140
permissions -rw-r--r--
Aktualizace: © 2011
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;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}"/>&amp;#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@157
    36
							<a href="${fn:escapeXml(p.url)}" title="${fn:escapeXml(titulekWwwStranka)}">
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;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>