java/HrisniciSpameri/web/filtr.jspx
author František Kučera <franta-hg@frantovo.cz>
Sun Mar 01 17:16:53 2009 +0100 (2009-03-01)
changeset 41 d41dc2f3380d
child 43 22cc28d200f3
permissions -rw-r--r--
JSP více modulární – rozdělení na více souborů
franta-hg@41
     1
<?xml version="1.0" encoding="UTF-8"?>
franta-hg@41
     2
<jsp:root xmlns:jsp="http://java.sun.com/JSP/Page"
franta-hg@41
     3
          xmlns:c="http://java.sun.com/jsp/jstl/core"
franta-hg@41
     4
          xmlns:f="http://java.sun.com/jsp/jstl/functions"
franta-hg@41
     5
          version="2.0">
franta-hg@41
     6
franta-hg@41
     7
    <form action="#" method="get">
franta-hg@41
     8
        <fieldset>
franta-hg@41
     9
            <label>Začátek: <input name="zacatek" type="text" value="${denniSouhrn.zacatek}"/></label><br/>
franta-hg@41
    10
            <label title="Pokud konec nezadáte, zobrazí se souhrn za jeden den – začátek">Konec: <input name="konec" type="text" value="${denniSouhrn.konec}"/></label><br/>
franta-hg@41
    11
            <label>Cíl: <select name="cil">
franta-hg@41
    12
                    <option value="0">Všechny cíle</option>
franta-hg@41
    13
                    <c:forEach var="c" items="${denniSouhrn.seznamCilu}">
franta-hg@41
    14
                        <c:choose>
franta-hg@41
    15
                            <c:when test="${c.id == denniSouhrn.cil}">
franta-hg@41
    16
                                <option value="${c.id}" selected="selected"><c:out value="${c.nazev}"/></option>
franta-hg@41
    17
                            </c:when>
franta-hg@41
    18
                            <c:otherwise>
franta-hg@41
    19
                                <option value="${c.id}"><c:out value="${c.nazev}"/></option>
franta-hg@41
    20
                            </c:otherwise>
franta-hg@41
    21
                        </c:choose>
franta-hg@41
    22
                    </c:forEach>
franta-hg@41
    23
            </select></label><br/>
franta-hg@41
    24
            <input name="graf" type="hidden" value="${param.graf}"/>
franta-hg@41
    25
            <button>Zobrazit</button>
franta-hg@41
    26
        </fieldset>
franta-hg@41
    27
    </form>
franta-hg@41
    28
</jsp:root>