java/nekurak.net-web/web/WEB-INF/casti/pridatPodnik.jsp
author František Kučera <franta-hg@frantovo.cz>
Thu, 25 Feb 2010 09:10:01 +0100
changeset 41 2c3451cc396c
parent 40 67d332d48562
child 42 77c8271add7d
permissions -rw-r--r--
Formulářová autentizace + odhlašování.
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@40
    11
    <h1>Přidání nového podniku</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@40
    18
		<p>Podnik byl přidán.</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@40
    24
		    <label>Název: <input type="text" name="nazev" maxlength="255"/></label><br/>
franta-hg@40
    25
		    <label>Popis: <input type="text" name="popis" maxlength="255"/></label><br/>
franta-hg@41
    26
		    <label title="www stránka">URL: <input type="text" name="url" maxlength="255"/></label><br/>
franta-hg@40
    27
		    <label>Ulice: <input type="text" name="ulice" maxlength="64"/></label><br/>
franta-hg@41
    28
		    <label title="číslo popisné">č.p.: <input type="text" name="cisloPopisne" maxlength="5"/></label><br/>
franta-hg@40
    29
		    <label>Město: <input type="text" name="mesto" maxlength="64"/></label><br/>
franta-hg@40
    30
		    <button value="submit">Přidat podnik</button>
franta-hg@40
    31
		</fieldset>
franta-hg@40
    32
	    </form>
franta-hg@40
    33
	</c:otherwise>
franta-hg@40
    34
    </c:choose>
franta-hg@40
    35
franta-hg@40
    36
franta-hg@40
    37
franta-hg@40
    38
franta-hg@40
    39
</jsp:root>