java/nekurak.net-web/web/WEB-INF/casti/uvod.jsp
author František Kučera <franta-hg@frantovo.cz>
Sun, 15 Aug 2010 22:46:13 +0200
changeset 152 1519f46f9647
parent 145 0efefbf5f8b6
child 154 bf21a4abea9b
permissions -rw-r--r--
dočasně vypnutý chat
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;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}"/>&amp;#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>