java/nekurak.net-web/web/WEB-INF/casti/pridatPodnik.jsp
author František Kučera <franta-hg@frantovo.cz>
Fri, 26 Feb 2010 12:45:48 +0100
changeset 44 74bded83c0eb
parent 42 77c8271add7d
child 57 7162ed62c9ab
permissions -rw-r--r--
Tlačítka pro přepínání jazyků.
     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 	  version="2.0">
     7 
     8     <jsp:useBean id="podnik" class="cz.frantovo.nekurak.dto.Podnik" scope="request"/>
     9     <jsp:useBean id="pridatPodnik" class="cz.frantovo.nekurak.web.PridatPodnik" scope="request"/>
    10 
    11     <h1><fmt:message key="pridatPodnik.nadpis"/></h1>
    12 
    13     <c:choose>
    14 	<c:when test="${param.akcePridat == 'pridej'}">
    15 	    <jsp:setProperty name="podnik" property="*"/>
    16 	    <jsp:setProperty name="pridatPodnik" property="podnik" value="${podnik}"/>
    17 	    <c:if test="${pridatPodnik.pridano}">
    18 		<p><fmt:message key="pridatPodnik.bylPridan"/></p>
    19 	    </c:if>
    20 	</c:when>
    21 	<c:otherwise>
    22 	    <form method="post" action="?akce=pridatPodnik&amp;amp;akcePridat=pridej">
    23 		<fieldset>
    24 		    <label><fmt:message key="dto.podnik.nazev"/>: <input type="text" name="nazev" maxlength="255"/></label><br/>
    25 		    <label><fmt:message key="dto.podnik.popis"/>: <input type="text" name="popis" maxlength="255"/></label><br/>
    26 		    <fmt:message key="dto.podnik.url.tip" var="urlTip"/>
    27 		    <label title="${urlTip}"><fmt:message key="dto.podnik.url"/>: <input type="text" name="url" maxlength="255"/></label><br/>
    28 		    <label><fmt:message key="dto.podnik.ulice"/>: <input type="text" name="ulice" maxlength="64"/></label><br/>
    29 		    <fmt:message key="dto.podnik.cisloPopisne.tip" var="cisloPopisneTip"/>
    30 		    <label title="${cisloPopisneTip}"><fmt:message key="dto.podnik.cisloPopisne"/>: <input type="text" name="cisloPopisne" maxlength="5"/></label><br/>
    31 		    <label><fmt:message key="dto.podnik.mesto"/>: <input type="text" name="mesto" maxlength="64"/></label><br/>
    32 		    <button value="submit"><fmt:message key="pridatPodnik.tlacitko"/></button>
    33 		</fieldset>
    34 	    </form>
    35 	</c:otherwise>
    36     </c:choose>
    37 
    38 
    39 
    40 
    41 </jsp:root>