java/nekurak.net-web/web/WEB-INF/casti/uvod.jsp
author František Kučera <franta-hg@frantovo.cz>
Tue Mar 23 01:12:16 2010 +0100 (2010-03-23)
changeset 77 5378f8dc8fa9
parent 68 df5aedafb826
child 106 6209f3d550c5
permissions -rw-r--r--
ClanekREST.java
     1 <?xml version="1.0" encoding="UTF-8"?>
     2 <jsp:root xmlns:jsp="http://java.sun.com/JSP/Page"
     3 	  xmlns:c="http://java.sun.com/jsp/jstl/core"
     4 	  xmlns:fmt="http://java.sun.com/jsp/jstl/fmt"
     5 	  xmlns:fn="http://java.sun.com/jsp/jstl/functions"
     6 	  xmlns:nk="urn:jsptagdir:/WEB-INF/tags/nekurak"
     7 	  version="2.0">
     8 
     9     <jsp:useBean id="uvod" class="cz.frantovo.nekurak.web.Uvod" scope="request"/>
    10 
    11     <nk:stranka>
    12 
    13 	<p><fmt:message key="uvod.naposledyPridanePodniky"/>:</p>
    14 
    15 	<script type="text/javascript" src="js/fotkyPodniku.js"></script>
    16 
    17 	<c:forEach var="p" items="${uvod.podniky}">
    18 	    <div class="podnik">
    19 		<!-- Tři bloky vedle sebe -->
    20 
    21 		<!-- Název a adresa podniku -->
    22 		<div class="adresa">
    23 		    <h2><a href="?akce=detail&amp;amp;podnik=${p.id}"><c:out value="${p.nazev}"/></a></h2>
    24 		    <p><c:out value="${p.popis}"/></p>
    25 		    <p>
    26 			<fmt:message key="uvod.adresa"/>:<br/>
    27 			<c:out value="${p.ulice}"/>&amp;#160;
    28 			<c:out value="${p.cisloPopisne}"/><br/>
    29 			<c:out value="${p.mesto}"/>
    30 		    </p>
    31 		    <c:if test="${p.url != null}">
    32 			<p><a href="${fn:escapeXml(p.url)}"><fmt:message key="uvod.www"/></a></p>
    33 		    </c:if>
    34 		</div>
    35 
    36 		<!-- Hlasování a graf -->
    37 		<div class="hlasovani">
    38 		    <nk:hlasovani podnik="${p.id}"/>
    39 		</div>
    40 
    41 		<!-- Fotky podniku -->
    42 		<div class="fotky">
    43 		    <nk:fotkyPodniku podnik="${p}"/>
    44 		</div>
    45 
    46 	    </div>
    47 	</c:forEach>
    48 
    49 	<!-- konec obtékaných bloků -->
    50 	<div class="cistic"></div>
    51 
    52     </nk:stranka>
    53 
    54 </jsp:root>