java/nekurak.net-web/web/index.jsp
author František Kučera <franta-hg@frantovo.cz>
Fri Feb 26 15:26:23 2010 +0100 (2010-02-26)
changeset 46 5ffc9524c73e
parent 42 77c8271add7d
child 49 9b2a597cc862
permissions -rw-r--r--
Webová aplikace nebude v rootu serveru (aspoň ne pro vývoj).
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' &amp;&amp; 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@42
    47
		    <li><a href="?"><fmt:message key="uvod"/></a></li>
franta-hg@41
    48
franta-hg@41
    49
		    <c:choose>
franta-hg@41
    50
			<c:when test="${prihlasenyUzivatel == null}">
franta-hg@42
    51
			    <li><a href="?akce=prihlaseni"><fmt:message key="prihlasitSe"/></a></li>
franta-hg@41
    52
			</c:when>
franta-hg@41
    53
			<c:otherwise>
franta-hg@42
    54
			    <li><a href="?akce=pridatPodnik"><fmt:message key="pridatPodnik"/></a></li>
franta-hg@42
    55
			    <li id="prihlasenyUzivatel"><fmt:message key="prihlasenyUzivatel"/>: ${prihlasenyUzivatel}</li>
franta-hg@42
    56
			    <li><a href="?akce=prihlaseni&amp;amp;odhlasit=ano"><fmt:message key="odhlasitSe"/></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@44
    62
		<jsp:include page="/WEB-INF/casti/prepinaniJazyku.jsp" flush="false"/>
franta-hg@44
    63
franta-hg@37
    64
		<div id="obsah">
franta-hg@10
    65
franta-hg@37
    66
		    <c:choose>
franta-hg@37
    67
			<c:when test="${param.akce == 'detail'}">
franta-hg@40
    68
			    <jsp:include page="/WEB-INF/casti/detail.jsp" flush="false"/>
franta-hg@40
    69
			</c:when>
franta-hg@40
    70
			<c:when test="${param.akce == 'pridatPodnik'}">
franta-hg@40
    71
			    <jsp:include page="/WEB-INF/casti/pridatPodnik.jsp" flush="false"/>
franta-hg@37
    72
			</c:when>
franta-hg@41
    73
			<c:when test="${param.akce == 'prihlaseni'}">
franta-hg@41
    74
			    <jsp:include page="/WEB-INF/casti/prihlaseni.jsp" flush="false"/>
franta-hg@41
    75
			</c:when>
franta-hg@37
    76
			<c:otherwise>
franta-hg@40
    77
			    <jsp:include page="/WEB-INF/casti/uvod.jsp" flush="false"/>
franta-hg@37
    78
			</c:otherwise>
franta-hg@37
    79
		    </c:choose>
franta-hg@10
    80
franta-hg@37
    81
		</div>
franta-hg@37
    82
franta-hg@37
    83
		<div id="paticka">
franta-hg@37
    84
		    <p>
franta-hg@44
    85
			<fmt:message key="licence"/>&amp;#160;
franta-hg@42
    86
			<a href="nekurak.net-src.zip">nekurak.net-src.zip</a>
franta-hg@42
    87
			<a href="nekurak.net-src.zip.SHA-512">.</a>
franta-hg@37
    88
		    </p>
franta-hg@37
    89
		</div>
franta-hg@37
    90
franta-hg@37
    91
	    </div>
franta-hg@3
    92
	</body>
franta-hg@3
    93
    </html>
franta-hg@3
    94
franta-hg@3
    95
</jsp:root>