author | František Kučera <franta-hg@frantovo.cz> |
Thu Feb 25 08:26:46 2010 +0100 (2010-02-25) | |
changeset 40 | 67d332d48562 |
child 41 | 2c3451cc396c |
permissions | -rw-r--r-- |
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 |
|
franta-hg@40 | 18 |
<p>Název: ${pridatPodnik.podnik.nazev} / ${param.nazev}</p> |
franta-hg@40 | 19 |
<p>Popis: ${pridatPodnik.podnik.popis}</p> |
franta-hg@40 | 20 |
<p>URL: ${pridatPodnik.podnik.url}</p> |
franta-hg@40 | 21 |
<p>Ulice: ${pridatPodnik.podnik.ulice}</p> |
franta-hg@40 | 22 |
<p>č.p.: ${pridatPodnik.podnik.cisloPopisne}</p> |
franta-hg@40 | 23 |
<p>Město: ${pridatPodnik.podnik.mesto}</p> |
franta-hg@40 | 24 |
|
franta-hg@40 | 25 |
|
franta-hg@40 | 26 |
<c:if test="${pridatPodnik.pridano}"> |
franta-hg@40 | 27 |
<p>Podnik byl přidán.</p> |
franta-hg@40 | 28 |
</c:if> |
franta-hg@40 | 29 |
</c:when> |
franta-hg@40 | 30 |
<c:otherwise> |
franta-hg@40 | 31 |
<form method="post" action="?akce=pridatPodnik&amp;akcePridat=pridej"> |
franta-hg@40 | 32 |
<fieldset> |
franta-hg@40 | 33 |
<label>Název: <input type="text" name="nazev" maxlength="255"/></label><br/> |
franta-hg@40 | 34 |
<label>Popis: <input type="text" name="popis" maxlength="255"/></label><br/> |
franta-hg@40 | 35 |
<label>URL: <input type="text" name="url" maxlength="255"/></label><br/> |
franta-hg@40 | 36 |
<label>Ulice: <input type="text" name="ulice" maxlength="64"/></label><br/> |
franta-hg@40 | 37 |
<label>č.p.: <input type="text" name="cisloPopisne" maxlength="5"/></label><br/> |
franta-hg@40 | 38 |
<label>Město: <input type="text" name="mesto" maxlength="64"/></label><br/> |
franta-hg@40 | 39 |
<button value="submit">Přidat podnik</button> |
franta-hg@40 | 40 |
</fieldset> |
franta-hg@40 | 41 |
</form> |
franta-hg@40 | 42 |
</c:otherwise> |
franta-hg@40 | 43 |
</c:choose> |
franta-hg@40 | 44 |
|
franta-hg@40 | 45 |
|
franta-hg@40 | 46 |
|
franta-hg@40 | 47 |
|
franta-hg@40 | 48 |
</jsp:root> |