java/nekurak.net-web/web/WEB-INF/casti/pridatPodnik.jsp
author František Kučera <franta-hg@frantovo.cz>
Thu, 04 Mar 2010 10:20:28 +0100
changeset 49 9b2a597cc862
parent 42 77c8271add7d
child 57 7162ed62c9ab
permissions -rw-r--r--
Atom syndikace, slovenština, ověřování uživatelů proti DB.
franta-hg@40
     1
<?xml version="1.0" encoding="UTF-8"?>
franta-hg@40
     2
<jsp:root xmlns:jsp="http://java.sun.com/JSP/Page"
franta-hg@40
     3
	  xmlns:c="http://java.sun.com/jsp/jstl/core"
franta-hg@40
     4
	  xmlns:fmt="http://java.sun.com/jsp/jstl/fmt"
franta-hg@40
     5
	  xmlns:fn="http://java.sun.com/jsp/jstl/functions"
franta-hg@40
     6
	  version="2.0">
franta-hg@40
     7
franta-hg@40
     8
    <jsp:useBean id="podnik" class="cz.frantovo.nekurak.dto.Podnik" scope="request"/>
franta-hg@40
     9
    <jsp:useBean id="pridatPodnik" class="cz.frantovo.nekurak.web.PridatPodnik" scope="request"/>
franta-hg@40
    10
franta-hg@42
    11
    <h1><fmt:message key="pridatPodnik.nadpis"/></h1>
franta-hg@40
    12
franta-hg@40
    13
    <c:choose>
franta-hg@40
    14
	<c:when test="${param.akcePridat == 'pridej'}">
franta-hg@40
    15
	    <jsp:setProperty name="podnik" property="*"/>
franta-hg@40
    16
	    <jsp:setProperty name="pridatPodnik" property="podnik" value="${podnik}"/>
franta-hg@40
    17
	    <c:if test="${pridatPodnik.pridano}">
franta-hg@42
    18
		<p><fmt:message key="pridatPodnik.bylPridan"/></p>
franta-hg@40
    19
	    </c:if>
franta-hg@40
    20
	</c:when>
franta-hg@40
    21
	<c:otherwise>
franta-hg@40
    22
	    <form method="post" action="?akce=pridatPodnik&amp;amp;akcePridat=pridej">
franta-hg@40
    23
		<fieldset>
franta-hg@42
    24
		    <label><fmt:message key="dto.podnik.nazev"/>: <input type="text" name="nazev" maxlength="255"/></label><br/>
franta-hg@42
    25
		    <label><fmt:message key="dto.podnik.popis"/>: <input type="text" name="popis" maxlength="255"/></label><br/>
franta-hg@42
    26
		    <fmt:message key="dto.podnik.url.tip" var="urlTip"/>
franta-hg@42
    27
		    <label title="${urlTip}"><fmt:message key="dto.podnik.url"/>: <input type="text" name="url" maxlength="255"/></label><br/>
franta-hg@42
    28
		    <label><fmt:message key="dto.podnik.ulice"/>: <input type="text" name="ulice" maxlength="64"/></label><br/>
franta-hg@42
    29
		    <fmt:message key="dto.podnik.cisloPopisne.tip" var="cisloPopisneTip"/>
franta-hg@42
    30
		    <label title="${cisloPopisneTip}"><fmt:message key="dto.podnik.cisloPopisne"/>: <input type="text" name="cisloPopisne" maxlength="5"/></label><br/>
franta-hg@42
    31
		    <label><fmt:message key="dto.podnik.mesto"/>: <input type="text" name="mesto" maxlength="64"/></label><br/>
franta-hg@42
    32
		    <button value="submit"><fmt:message key="pridatPodnik.tlacitko"/></button>
franta-hg@40
    33
		</fieldset>
franta-hg@40
    34
	    </form>
franta-hg@40
    35
	</c:otherwise>
franta-hg@40
    36
    </c:choose>
franta-hg@40
    37
franta-hg@40
    38
franta-hg@40
    39
franta-hg@40
    40
franta-hg@40
    41
</jsp:root>