java/nekurak.net-web/web/WEB-INF/casti/pridatPodnik.jsp
author František Kučera <franta-hg@frantovo.cz>
Sat, 19 Jun 2010 11:19:27 +0200
changeset 142 44ef544460ca
parent 73 34c7eb5f2fae
child 145 0efefbf5f8b6
permissions -rw-r--r--
AJAX komentáře
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@73
     6
	  xmlns:nk="urn:jsptagdir:/WEB-INF/tags/nekurak"
franta-hg@40
     7
	  version="2.0">
franta-hg@40
     8
franta-hg@40
     9
    <jsp:useBean id="podnik" class="cz.frantovo.nekurak.dto.Podnik" scope="request"/>
franta-hg@40
    10
    <jsp:useBean id="pridatPodnik" class="cz.frantovo.nekurak.web.PridatPodnik" scope="request"/>
franta-hg@40
    11
franta-hg@73
    12
    <fmt:message key="pridatPodnik.nadpis" var="titulekStranky"/>
franta-hg@73
    13
    <nk:stranka titulek="${titulekStranky}">
franta-hg@40
    14
franta-hg@73
    15
	<h1><c:out value="${titulekStranky}"/></h1>
franta-hg@40
    16
franta-hg@73
    17
	<c:choose>
franta-hg@73
    18
	    <c:when test="${param.akcePridat == 'pridej'}">
franta-hg@73
    19
		<c:catch var="pridatPodnikChyba">
franta-hg@73
    20
		    <jsp:setProperty name="podnik" property="*"/>
franta-hg@73
    21
		    <jsp:setProperty name="pridatPodnik" property="podnik" value="${podnik}"/>
franta-hg@73
    22
		    <c:set var="pridatPodnikOK" value="${pridatPodnik.pridano}"/>
franta-hg@73
    23
		</c:catch>
franta-hg@73
    24
		<c:choose>
franta-hg@73
    25
		    <c:when test="${pridatPodnikChyba == null}">
franta-hg@73
    26
			<p><fmt:message key="pridatPodnik.bylPridan"/></p>
franta-hg@73
    27
		    </c:when>
franta-hg@73
    28
		    <c:otherwise>
franta-hg@73
    29
			<p class="chybovaHlaska"><fmt:message key="pridatPodnik.nebylPridan"/></p>
franta-hg@73
    30
		    </c:otherwise>
franta-hg@73
    31
		</c:choose>
franta-hg@73
    32
	    </c:when>
franta-hg@73
    33
	    <c:otherwise>
franta-hg@73
    34
		<form method="post" action="?akce=pridatPodnik&amp;amp;akcePridat=pridej">
franta-hg@73
    35
		    <fieldset>
franta-hg@73
    36
			<label><fmt:message key="dto.podnik.nazev"/>: <input type="text" name="nazev" maxlength="255"/></label><br/>
franta-hg@73
    37
			<label><fmt:message key="dto.podnik.popis"/>: <input type="text" name="popis" maxlength="255"/></label><br/>
franta-hg@73
    38
			    <fmt:message key="dto.podnik.url.tip" var="urlTip"/>
franta-hg@73
    39
			<label title="${urlTip}"><fmt:message key="dto.podnik.url"/>: <input type="text" name="url" maxlength="255"/></label><br/>
franta-hg@73
    40
			<label><fmt:message key="dto.podnik.ulice"/>: <input type="text" name="ulice" maxlength="64"/></label><br/>
franta-hg@73
    41
			    <fmt:message key="dto.podnik.cisloPopisne.tip" var="cisloPopisneTip"/>
franta-hg@73
    42
			<label title="${cisloPopisneTip}"><fmt:message key="dto.podnik.cisloPopisne"/>: <input type="text" name="cisloPopisne" maxlength="5"/></label><br/>
franta-hg@73
    43
			<label><fmt:message key="dto.podnik.mesto"/>: <input type="text" name="mesto" maxlength="64"/></label><br/>
franta-hg@73
    44
			<button value="submit"><fmt:message key="pridatPodnik.tlacitko"/></button>
franta-hg@73
    45
		    </fieldset>
franta-hg@73
    46
		</form>
franta-hg@73
    47
	    </c:otherwise>
franta-hg@73
    48
	</c:choose>
franta-hg@40
    49
franta-hg@73
    50
    </nk:stranka>
franta-hg@40
    51
franta-hg@40
    52
</jsp:root>