author | František Kučera <franta-hg@frantovo.cz> |
Sun Mar 07 21:19:35 2010 +0100 (2010-03-07) | |
changeset 57 | 7162ed62c9ab |
parent 49 | 9b2a597cc862 |
child 58 | e019dbc42723 |
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@42 | 13 |
<fmt:setLocale value="${param.jazyk}" scope="session"/> |
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@49 | 38 |
<link rel="alternate" type="application/atom+xml" title="podniky" href="atom/" /> |
franta-hg@3 | 39 |
</head> |
franta-hg@3 | 40 |
<body> |
franta-hg@37 | 41 |
<div class="body"> |
franta-hg@8 | 42 |
|
franta-hg@37 | 43 |
<div id="horniPruh"> |
franta-hg@37 | 44 |
<h1><fmt:message key="nazev"/></h1> |
franta-hg@37 | 45 |
</div> |
franta-hg@31 | 46 |
|
franta-hg@38 | 47 |
<ul id="nabidka"> |
franta-hg@42 | 48 |
<li><a href="?"><fmt:message key="uvod"/></a></li> |
franta-hg@41 | 49 |
|
franta-hg@41 | 50 |
<c:choose> |
franta-hg@41 | 51 |
<c:when test="${prihlasenyUzivatel == null}"> |
franta-hg@42 | 52 |
<li><a href="?akce=prihlaseni"><fmt:message key="prihlasitSe"/></a></li> |
franta-hg@51 | 53 |
<li><a href="?akce=registrovatUzivatele"><fmt:message key="registrovatSe"/></a></li> |
franta-hg@41 | 54 |
</c:when> |
franta-hg@41 | 55 |
<c:otherwise> |
franta-hg@42 | 56 |
<li><a href="?akce=pridatPodnik"><fmt:message key="pridatPodnik"/></a></li> |
franta-hg@42 | 57 |
<li id="prihlasenyUzivatel"><fmt:message key="prihlasenyUzivatel"/>: ${prihlasenyUzivatel}</li> |
franta-hg@42 | 58 |
<li><a href="?akce=prihlaseni&amp;odhlasit=ano"><fmt:message key="odhlasitSe"/></a></li> |
franta-hg@41 | 59 |
</c:otherwise> |
franta-hg@41 | 60 |
</c:choose> |
franta-hg@40 | 61 |
|
franta-hg@38 | 62 |
</ul> |
franta-hg@38 | 63 |
|
franta-hg@44 | 64 |
<jsp:include page="/WEB-INF/casti/prepinaniJazyku.jsp" flush="false"/> |
franta-hg@44 | 65 |
|
franta-hg@37 | 66 |
<div id="obsah"> |
franta-hg@10 | 67 |
|
franta-hg@37 | 68 |
<c:choose> |
franta-hg@37 | 69 |
<c:when test="${param.akce == 'detail'}"> |
franta-hg@40 | 70 |
<jsp:include page="/WEB-INF/casti/detail.jsp" flush="false"/> |
franta-hg@40 | 71 |
</c:when> |
franta-hg@40 | 72 |
<c:when test="${param.akce == 'pridatPodnik'}"> |
franta-hg@40 | 73 |
<jsp:include page="/WEB-INF/casti/pridatPodnik.jsp" flush="false"/> |
franta-hg@37 | 74 |
</c:when> |
franta-hg@51 | 75 |
<c:when test="${param.akce == 'registrovatUzivatele'}"> |
franta-hg@51 | 76 |
<jsp:include page="/WEB-INF/casti/registrovatUzivatele.jsp" flush="false"/> |
franta-hg@51 | 77 |
</c:when> |
franta-hg@41 | 78 |
<c:when test="${param.akce == 'prihlaseni'}"> |
franta-hg@41 | 79 |
<jsp:include page="/WEB-INF/casti/prihlaseni.jsp" flush="false"/> |
franta-hg@41 | 80 |
</c:when> |
franta-hg@37 | 81 |
<c:otherwise> |
franta-hg@40 | 82 |
<jsp:include page="/WEB-INF/casti/uvod.jsp" flush="false"/> |
franta-hg@37 | 83 |
</c:otherwise> |
franta-hg@37 | 84 |
</c:choose> |
franta-hg@10 | 85 |
|
franta-hg@37 | 86 |
</div> |
franta-hg@37 | 87 |
|
franta-hg@37 | 88 |
<div id="paticka"> |
franta-hg@37 | 89 |
<p> |
franta-hg@44 | 90 |
<fmt:message key="licence"/>&#160; |
franta-hg@42 | 91 |
<a href="nekurak.net-src.zip">nekurak.net-src.zip</a> |
franta-hg@42 | 92 |
<a href="nekurak.net-src.zip.SHA-512">.</a> |
franta-hg@37 | 93 |
</p> |
franta-hg@37 | 94 |
</div> |
franta-hg@37 | 95 |
|
franta-hg@37 | 96 |
</div> |
franta-hg@3 | 97 |
</body> |
franta-hg@3 | 98 |
</html> |
franta-hg@3 | 99 |
|
franta-hg@3 | 100 |
</jsp:root> |