java/nekurak.net-web/web/WEB-INF/casti/uvod.jsp
author František Kučera <franta-hg@frantovo.cz>
Sat Mar 13 23:51:43 2010 +0100 (2010-03-13)
changeset 66 048531e09c09
parent 58 e019dbc42723
child 67 fa7e30dee3b3
permissions -rw-r--r--
Knihovna EL funkcí, která umí sestavit odkaz na fotku.
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@37
     3
	  xmlns:c="http://java.sun.com/jsp/jstl/core"
franta-hg@37
     4
	  xmlns:fmt="http://java.sun.com/jsp/jstl/fmt"
franta-hg@39
     5
	  xmlns:fn="http://java.sun.com/jsp/jstl/functions"
franta-hg@58
     6
	  xmlns:nk="urn:jsptagdir:/WEB-INF/tags/nekurak"
franta-hg@66
     7
	  xmlns:nkfn="/WEB-INF/nekurakFunkce"
franta-hg@37
     8
	  version="2.0">
franta-hg@37
     9
franta-hg@39
    10
    <jsp:useBean id="uvod" class="cz.frantovo.nekurak.web.Uvod" scope="request"/>
franta-hg@39
    11
franta-hg@42
    12
    <p><fmt:message key="uvod.naposledyPridanePodniky"/>:</p>
franta-hg@39
    13
franta-hg@58
    14
    <script type="text/javascript" src="js/fotkyPodniku.js"></script>
franta-hg@58
    15
franta-hg@39
    16
    <c:forEach var="p" items="${uvod.podniky}">
franta-hg@40
    17
	<div class="podnik">
franta-hg@58
    18
	    <!-- Tři bloky vedle sebe -->
franta-hg@58
    19
franta-hg@58
    20
	    <!-- Název a adresa podniku -->
franta-hg@58
    21
	    <div class="adresa">
franta-hg@58
    22
		<h2><a href="?akce=detail&amp;amp;podnik=${p.id}"><c:out value="${p.nazev}"/></a></h2>
franta-hg@58
    23
		<p><c:out value="${p.popis}"/></p>
franta-hg@58
    24
		<p>
franta-hg@58
    25
		    <fmt:message key="uvod.adresa"/>:<br/>
franta-hg@58
    26
		    <c:out value="${p.ulice}"/>&amp;#160;
franta-hg@58
    27
		    <c:out value="${p.cisloPopisne}"/><br/>
franta-hg@58
    28
		    <c:out value="${p.mesto}"/>
franta-hg@58
    29
		</p>
franta-hg@58
    30
		<c:if test="${p.url != null}">
franta-hg@58
    31
		    <p><a href="${fn:escapeXml(p.url)}"><fmt:message key="uvod.www"/></a></p>
franta-hg@58
    32
		</c:if>
franta-hg@58
    33
	    </div>
franta-hg@58
    34
franta-hg@58
    35
	    <!-- Hlasování a graf -->
franta-hg@58
    36
	    <div class="hlasovani">
franta-hg@58
    37
		<nk:hlasovani podnik="${p.id}"/>
franta-hg@58
    38
	    </div>
franta-hg@58
    39
franta-hg@58
    40
	    <!-- Fotky podniku -->
franta-hg@58
    41
	    <div class="fotky">
franta-hg@58
    42
		<nk:fotkyPodniku podnik="${p.id}"/>
franta-hg@58
    43
	    </div>
franta-hg@58
    44
franta-hg@40
    45
	</div>
franta-hg@39
    46
    </c:forEach>
franta-hg@37
    47
franta-hg@58
    48
    <!-- konec obtékaných bloků -->
franta-hg@58
    49
    <div class="cistic"></div>
franta-hg@58
    50
franta-hg@37
    51
</jsp:root>