author | František Kučera <franta-hg@frantovo.cz> |
Thu, 04 Mar 2010 10:20:28 +0100 | |
changeset 49 | 9b2a597cc862 |
parent 44 | 74bded83c0eb |
child 51 | d01685a7e07d |
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@41 | 53 |
</c:when> |
franta-hg@41 | 54 |
<c:otherwise> |
franta-hg@42 | 55 |
<li><a href="?akce=pridatPodnik"><fmt:message key="pridatPodnik"/></a></li> |
franta-hg@42 | 56 |
<li id="prihlasenyUzivatel"><fmt:message key="prihlasenyUzivatel"/>: ${prihlasenyUzivatel}</li> |
franta-hg@42 | 57 |
<li><a href="?akce=prihlaseni&amp;odhlasit=ano"><fmt:message key="odhlasitSe"/></a></li> |
franta-hg@41 | 58 |
</c:otherwise> |
franta-hg@41 | 59 |
</c:choose> |
franta-hg@40 | 60 |
|
franta-hg@38 | 61 |
</ul> |
franta-hg@38 | 62 |
|
franta-hg@44 | 63 |
<jsp:include page="/WEB-INF/casti/prepinaniJazyku.jsp" flush="false"/> |
franta-hg@44 | 64 |
|
franta-hg@37 | 65 |
<div id="obsah"> |
franta-hg@10 | 66 |
|
franta-hg@37 | 67 |
<c:choose> |
franta-hg@37 | 68 |
<c:when test="${param.akce == 'detail'}"> |
franta-hg@40 | 69 |
<jsp:include page="/WEB-INF/casti/detail.jsp" flush="false"/> |
franta-hg@40 | 70 |
</c:when> |
franta-hg@40 | 71 |
<c:when test="${param.akce == 'pridatPodnik'}"> |
franta-hg@40 | 72 |
<jsp:include page="/WEB-INF/casti/pridatPodnik.jsp" flush="false"/> |
franta-hg@37 | 73 |
</c:when> |
franta-hg@41 | 74 |
<c:when test="${param.akce == 'prihlaseni'}"> |
franta-hg@41 | 75 |
<jsp:include page="/WEB-INF/casti/prihlaseni.jsp" flush="false"/> |
franta-hg@41 | 76 |
</c:when> |
franta-hg@37 | 77 |
<c:otherwise> |
franta-hg@40 | 78 |
<jsp:include page="/WEB-INF/casti/uvod.jsp" flush="false"/> |
franta-hg@37 | 79 |
</c:otherwise> |
franta-hg@37 | 80 |
</c:choose> |
franta-hg@10 | 81 |
|
franta-hg@37 | 82 |
</div> |
franta-hg@37 | 83 |
|
franta-hg@37 | 84 |
<div id="paticka"> |
franta-hg@37 | 85 |
<p> |
franta-hg@44 | 86 |
<fmt:message key="licence"/>&#160; |
franta-hg@42 | 87 |
<a href="nekurak.net-src.zip">nekurak.net-src.zip</a> |
franta-hg@42 | 88 |
<a href="nekurak.net-src.zip.SHA-512">.</a> |
franta-hg@37 | 89 |
</p> |
franta-hg@37 | 90 |
</div> |
franta-hg@37 | 91 |
|
franta-hg@37 | 92 |
</div> |
franta-hg@3 | 93 |
</body> |
franta-hg@3 | 94 |
</html> |
franta-hg@3 | 95 |
|
franta-hg@3 | 96 |
</jsp:root> |