1.1 --- a/java/nekurak.net-web/web/WEB-INF/casti/pridatPodnik.jsp Thu Mar 18 14:22:16 2010 +0100
1.2 +++ b/java/nekurak.net-web/web/WEB-INF/casti/pridatPodnik.jsp Sat Jan 15 23:04:15 2011 +0100
1.3 @@ -1,52 +1,52 @@
1.4 <?xml version="1.0" encoding="UTF-8"?>
1.5 <jsp:root xmlns:jsp="http://java.sun.com/JSP/Page"
1.6 - xmlns:c="http://java.sun.com/jsp/jstl/core"
1.7 - xmlns:fmt="http://java.sun.com/jsp/jstl/fmt"
1.8 - xmlns:fn="http://java.sun.com/jsp/jstl/functions"
1.9 - xmlns:nk="urn:jsptagdir:/WEB-INF/tags/nekurak"
1.10 - version="2.0">
1.11 + xmlns:c="http://java.sun.com/jsp/jstl/core"
1.12 + xmlns:fmt="http://java.sun.com/jsp/jstl/fmt"
1.13 + xmlns:fn="http://java.sun.com/jsp/jstl/functions"
1.14 + xmlns:nk="urn:jsptagdir:/WEB-INF/tags/nekurak"
1.15 + version="2.0">
1.16
1.17 - <jsp:useBean id="podnik" class="cz.frantovo.nekurak.dto.Podnik" scope="request"/>
1.18 - <jsp:useBean id="pridatPodnik" class="cz.frantovo.nekurak.web.PridatPodnik" scope="request"/>
1.19 + <jsp:useBean id="podnik" class="cz.frantovo.nekurak.dto.Podnik" scope="request"/>
1.20 + <jsp:useBean id="pridatPodnik" class="cz.frantovo.nekurak.web.PridatPodnik" scope="request"/>
1.21
1.22 - <fmt:message key="pridatPodnik.nadpis" var="titulekStranky"/>
1.23 - <nk:stranka titulek="${titulekStranky}">
1.24 + <fmt:message key="pridatPodnik.nadpis" var="titulekStranky"/>
1.25 + <nk:stranka titulek="${titulekStranky}">
1.26
1.27 - <h1><c:out value="${titulekStranky}"/></h1>
1.28 + <h1><c:out value="${titulekStranky}"/></h1>
1.29
1.30 - <c:choose>
1.31 - <c:when test="${param.akcePridat == 'pridej'}">
1.32 - <c:catch var="pridatPodnikChyba">
1.33 - <jsp:setProperty name="podnik" property="*"/>
1.34 - <jsp:setProperty name="pridatPodnik" property="podnik" value="${podnik}"/>
1.35 - <c:set var="pridatPodnikOK" value="${pridatPodnik.pridano}"/>
1.36 - </c:catch>
1.37 <c:choose>
1.38 - <c:when test="${pridatPodnikChyba == null}">
1.39 - <p><fmt:message key="pridatPodnik.bylPridan"/></p>
1.40 - </c:when>
1.41 - <c:otherwise>
1.42 - <p class="chybovaHlaska"><fmt:message key="pridatPodnik.nebylPridan"/></p>
1.43 - </c:otherwise>
1.44 + <c:when test="${param.akcePridat == 'pridej'}">
1.45 + <c:catch var="pridatPodnikChyba">
1.46 + <jsp:setProperty name="podnik" property="*"/>
1.47 + <jsp:setProperty name="pridatPodnik" property="podnik" value="${podnik}"/>
1.48 + <c:set var="pridatPodnikOK" value="${pridatPodnik.pridano}"/>
1.49 + </c:catch>
1.50 + <c:choose>
1.51 + <c:when test="${pridatPodnikChyba == null}">
1.52 + <p><fmt:message key="pridatPodnik.bylPridan"/></p>
1.53 + </c:when>
1.54 + <c:otherwise>
1.55 + <p class="chybovaHlaska"><fmt:message key="pridatPodnik.nebylPridan"/></p>
1.56 + </c:otherwise>
1.57 + </c:choose>
1.58 + </c:when>
1.59 + <c:otherwise>
1.60 + <form method="post" action="?akce=pridatPodnik&amp;akcePridat=pridej">
1.61 + <fieldset>
1.62 + <label><fmt:message key="dto.podnik.nazev"/>: <input type="text" name="nazev" maxlength="255"/></label><br/>
1.63 + <label><fmt:message key="dto.podnik.popis"/>: <input type="text" name="popis" maxlength="255"/></label><br/>
1.64 + <fmt:message key="dto.podnik.url.tip" var="urlTip"/>
1.65 + <label title="${urlTip}"><fmt:message key="dto.podnik.url"/>: <input type="text" name="url" maxlength="255"/></label><br/>
1.66 + <label><fmt:message key="dto.podnik.ulice"/>: <input type="text" name="ulice" maxlength="64"/></label><br/>
1.67 + <fmt:message key="dto.podnik.cisloPopisne.tip" var="cisloPopisneTip"/>
1.68 + <label title="${cisloPopisneTip}"><fmt:message key="dto.podnik.cisloPopisne"/>: <input type="text" name="cisloPopisne" maxlength="5"/></label><br/>
1.69 + <label><fmt:message key="dto.podnik.mesto"/>: <input type="text" name="mesto" maxlength="64"/></label><br/>
1.70 + <button value="submit"><fmt:message key="pridatPodnik.tlacitko"/></button>
1.71 + </fieldset>
1.72 + </form>
1.73 + </c:otherwise>
1.74 </c:choose>
1.75 - </c:when>
1.76 - <c:otherwise>
1.77 - <form method="post" action="?akce=pridatPodnik&amp;akcePridat=pridej">
1.78 - <fieldset>
1.79 - <label><fmt:message key="dto.podnik.nazev"/>: <input type="text" name="nazev" maxlength="255"/></label><br/>
1.80 - <label><fmt:message key="dto.podnik.popis"/>: <input type="text" name="popis" maxlength="255"/></label><br/>
1.81 - <fmt:message key="dto.podnik.url.tip" var="urlTip"/>
1.82 - <label title="${urlTip}"><fmt:message key="dto.podnik.url"/>: <input type="text" name="url" maxlength="255"/></label><br/>
1.83 - <label><fmt:message key="dto.podnik.ulice"/>: <input type="text" name="ulice" maxlength="64"/></label><br/>
1.84 - <fmt:message key="dto.podnik.cisloPopisne.tip" var="cisloPopisneTip"/>
1.85 - <label title="${cisloPopisneTip}"><fmt:message key="dto.podnik.cisloPopisne"/>: <input type="text" name="cisloPopisne" maxlength="5"/></label><br/>
1.86 - <label><fmt:message key="dto.podnik.mesto"/>: <input type="text" name="mesto" maxlength="64"/></label><br/>
1.87 - <button value="submit"><fmt:message key="pridatPodnik.tlacitko"/></button>
1.88 - </fieldset>
1.89 - </form>
1.90 - </c:otherwise>
1.91 - </c:choose>
1.92
1.93 - </nk:stranka>
1.94 + </nk:stranka>
1.95
1.96 </jsp:root>