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-- |
franta-hg@3 | 1 |
<?xml version="1.0" encoding="UTF-8"?> |
franta-hg@10 | 2 |
<jsp:root xmlns:jsp="http://java.sun.com/JSP/Page" |
franta-hg@10 | 3 |
xmlns:c="http://java.sun.com/jsp/jstl/core" |
franta-hg@30 | 4 |
xmlns:fmt="http://java.sun.com/jsp/jstl/fmt" |
franta-hg@10 | 5 |
version="2.0"> |
franta-hg@3 | 6 |
<jsp:directive.page contentType="application/xhtml+xml"/> |
franta-hg@37 | 7 |
<jsp:output doctype-system="http://www.w3.org/2002/04/xhtml-math-svg/xhtml-math-svg-flat.dtd" |
franta-hg@3 | 8 |
doctype-root-element="html" |
franta-hg@3 | 9 |
omit-xml-declaration="false"/> |
franta-hg@3 | 10 |
|
franta-hg@37 | 11 |
<!-- <lokalizace> --> |
franta-hg@37 | 12 |
<c:if test="${param.jazyk != null}"> |
franta-hg@37 | 13 |
<fmt:setLocale value="${param.jazyk}"/> |
franta-hg@31 | 14 |
</c:if> |
franta-hg@30 | 15 |
<fmt:setBundle basename="cz.frantovo.nekurak.preklady" scope="application"/> |
franta-hg@37 | 16 |
<!-- </lokalizace> --> |
franta-hg@30 | 17 |
|
franta-hg@41 | 18 |
<!-- <autentizace> --> |
franta-hg@41 | 19 |
<c:set var="prihlasenyUzivatel" scope="request" value="${pageContext.request.userPrincipal.name}"/> |
franta-hg@41 | 20 |
<c:if test="${param.akce == 'prihlaseni' && param.odhlasit == 'ano'}"> |
franta-hg@41 | 21 |
<!-- |
franta-hg@41 | 22 |
Uživatele musíme odhlásit dřív, než vykreslíme nabídku, |
franta-hg@41 | 23 |
která závisí na tom, zda je uživatel přihlášený nebo ne. |
franta-hg@41 | 24 |
„prihlaseni.jsp?odhlasit=ano“ už vypíše jen hlášku, že byl odhlášen. |
franta-hg@41 | 25 |
--> |
franta-hg@41 | 26 |
<jsp:scriptlet>session.invalidate();</jsp:scriptlet> |
franta-hg@41 | 27 |
<c:set var="prihlasenyUzivatel" scope="request" value="${null}"/> |
franta-hg@41 | 28 |
</c:if> |
franta-hg@41 | 29 |
<!-- </autentizace> --> |
franta-hg@41 | 30 |
|
franta-hg@41 | 31 |
|
franta-hg@37 | 32 |
<html xmlns="http://www.w3.org/1999/xhtml" |
franta-hg@37 | 33 |
xmlns:svg="http://www.w3.org/2000/svg" |
franta-hg@37 | 34 |
xmlns:xlink="http://www.w3.org/1999/xlink"> |
franta-hg@3 | 35 |
<head> |
franta-hg@30 | 36 |
<title><fmt:message key="nazev"/></title> |
franta-hg@26 | 37 |
<link href="styl.css" type="text/css" rel="StyleSheet"/> |
franta-hg@3 | 38 |
</head> |
franta-hg@3 | 39 |
<body> |
franta-hg@37 | 40 |
<div class="body"> |
franta-hg@8 | 41 |
|
franta-hg@37 | 42 |
<div id="horniPruh"> |
franta-hg@37 | 43 |
<h1><fmt:message key="nazev"/></h1> |
franta-hg@37 | 44 |
</div> |
franta-hg@31 | 45 |
|
franta-hg@38 | 46 |
<ul id="nabidka"> |
franta-hg@40 | 47 |
<li><a href="?">Úvod</a></li> |
franta-hg@41 | 48 |
|
franta-hg@41 | 49 |
<c:choose> |
franta-hg@41 | 50 |
<c:when test="${prihlasenyUzivatel == null}"> |
franta-hg@41 | 51 |
<li><a href="?akce=prihlaseni">Přihlásit se</a></li> |
franta-hg@41 | 52 |
</c:when> |
franta-hg@41 | 53 |
<c:otherwise> |
franta-hg@41 | 54 |
<li><a href="?akce=pridatPodnik">Přidat podnik</a></li> |
franta-hg@41 | 55 |
<li id="prihlasenyUzivatel">Přihlášený uživatel: ${pageContext.request.userPrincipal.name}</li> |
franta-hg@41 | 56 |
<li><a href="?akce=prihlaseni&amp;odhlasit=ano">Odhlásit se</a></li> |
franta-hg@41 | 57 |
</c:otherwise> |
franta-hg@41 | 58 |
</c:choose> |
franta-hg@40 | 59 |
|
franta-hg@38 | 60 |
</ul> |
franta-hg@38 | 61 |
|
franta-hg@37 | 62 |
<div id="obsah"> |
franta-hg@10 | 63 |
|
franta-hg@37 | 64 |
<c:choose> |
franta-hg@37 | 65 |
<c:when test="${param.akce == 'detail'}"> |
franta-hg@40 | 66 |
<jsp:include page="/WEB-INF/casti/detail.jsp" flush="false"/> |
franta-hg@40 | 67 |
</c:when> |
franta-hg@40 | 68 |
<c:when test="${param.akce == 'pridatPodnik'}"> |
franta-hg@40 | 69 |
<jsp:include page="/WEB-INF/casti/pridatPodnik.jsp" flush="false"/> |
franta-hg@37 | 70 |
</c:when> |
franta-hg@41 | 71 |
<c:when test="${param.akce == 'prihlaseni'}"> |
franta-hg@41 | 72 |
<jsp:include page="/WEB-INF/casti/prihlaseni.jsp" flush="false"/> |
franta-hg@41 | 73 |
</c:when> |
franta-hg@37 | 74 |
<c:otherwise> |
franta-hg@40 | 75 |
<jsp:include page="/WEB-INF/casti/uvod.jsp" flush="false"/> |
franta-hg@37 | 76 |
</c:otherwise> |
franta-hg@37 | 77 |
</c:choose> |
franta-hg@10 | 78 |
|
franta-hg@37 | 79 |
</div> |
franta-hg@37 | 80 |
|
franta-hg@37 | 81 |
<div id="paticka"> |
franta-hg@37 | 82 |
<p> |
franta-hg@37 | 83 |
© 2010 nekurak.net. Licence: Affero GPL. |
franta-hg@40 | 84 |
<a href="${pageContext.servletContext.contextPath}/nekurak.net-src.zip">nekurak.net-src.zip</a> |
franta-hg@40 | 85 |
<a href="${pageContext.servletContext.contextPath}/nekurak.net-src.zip.SHA-512">.</a> |
franta-hg@37 | 86 |
</p> |
franta-hg@37 | 87 |
</div> |
franta-hg@37 | 88 |
|
franta-hg@37 | 89 |
</div> |
franta-hg@3 | 90 |
</body> |
franta-hg@3 | 91 |
</html> |
franta-hg@3 | 92 |
|
franta-hg@3 | 93 |
</jsp:root> |