java/nekurak.net-web/web/index.jsp
author František Kučera <franta-hg@frantovo.cz>
Tue, 09 Mar 2010 20:26:41 +0100
changeset 59 4330f48457bb
parent 58 e019dbc42723
child 61 ddb7b4415234
permissions -rw-r--r--
Added tag 8. díl for changeset e019dbc42723
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@58
    38
	    <script type="text/javascript" src="js/jquery.js"></script>
franta-hg@58
    39
	    <script type="text/javascript" src="js/jquery.bxSlider.js"></script>
franta-hg@49
    40
	    <link rel="alternate" type="application/atom+xml" title="podniky" href="atom/" />
franta-hg@3
    41
	</head>
franta-hg@3
    42
	<body>
franta-hg@37
    43
	    <div class="body">
franta-hg@8
    44
franta-hg@37
    45
		<div id="horniPruh">
franta-hg@37
    46
		    <h1><fmt:message key="nazev"/></h1>
franta-hg@37
    47
		</div>
franta-hg@31
    48
franta-hg@38
    49
		<ul id="nabidka">
franta-hg@42
    50
		    <li><a href="?"><fmt:message key="uvod"/></a></li>
franta-hg@41
    51
franta-hg@41
    52
		    <c:choose>
franta-hg@41
    53
			<c:when test="${prihlasenyUzivatel == null}">
franta-hg@42
    54
			    <li><a href="?akce=prihlaseni"><fmt:message key="prihlasitSe"/></a></li>
franta-hg@51
    55
			    <li><a href="?akce=registrovatUzivatele"><fmt:message key="registrovatSe"/></a></li>
franta-hg@41
    56
			</c:when>
franta-hg@41
    57
			<c:otherwise>
franta-hg@42
    58
			    <li><a href="?akce=pridatPodnik"><fmt:message key="pridatPodnik"/></a></li>
franta-hg@42
    59
			    <li id="prihlasenyUzivatel"><fmt:message key="prihlasenyUzivatel"/>: ${prihlasenyUzivatel}</li>
franta-hg@42
    60
			    <li><a href="?akce=prihlaseni&amp;amp;odhlasit=ano"><fmt:message key="odhlasitSe"/></a></li>
franta-hg@41
    61
			</c:otherwise>
franta-hg@41
    62
		    </c:choose>
franta-hg@40
    63
franta-hg@38
    64
		</ul>
franta-hg@38
    65
franta-hg@44
    66
		<jsp:include page="/WEB-INF/casti/prepinaniJazyku.jsp" flush="false"/>
franta-hg@44
    67
franta-hg@37
    68
		<div id="obsah">
franta-hg@10
    69
franta-hg@37
    70
		    <c:choose>
franta-hg@37
    71
			<c:when test="${param.akce == 'detail'}">
franta-hg@40
    72
			    <jsp:include page="/WEB-INF/casti/detail.jsp" flush="false"/>
franta-hg@40
    73
			</c:when>
franta-hg@40
    74
			<c:when test="${param.akce == 'pridatPodnik'}">
franta-hg@40
    75
			    <jsp:include page="/WEB-INF/casti/pridatPodnik.jsp" flush="false"/>
franta-hg@37
    76
			</c:when>
franta-hg@51
    77
			<c:when test="${param.akce == 'registrovatUzivatele'}">
franta-hg@51
    78
			    <jsp:include page="/WEB-INF/casti/registrovatUzivatele.jsp" flush="false"/>
franta-hg@51
    79
			</c:when>
franta-hg@41
    80
			<c:when test="${param.akce == 'prihlaseni'}">
franta-hg@41
    81
			    <jsp:include page="/WEB-INF/casti/prihlaseni.jsp" flush="false"/>
franta-hg@41
    82
			</c:when>
franta-hg@37
    83
			<c:otherwise>
franta-hg@40
    84
			    <jsp:include page="/WEB-INF/casti/uvod.jsp" flush="false"/>
franta-hg@37
    85
			</c:otherwise>
franta-hg@37
    86
		    </c:choose>
franta-hg@10
    87
franta-hg@37
    88
		</div>
franta-hg@37
    89
franta-hg@37
    90
		<div id="paticka">
franta-hg@37
    91
		    <p>
franta-hg@44
    92
			<fmt:message key="licence"/>&amp;#160;
franta-hg@42
    93
			<a href="nekurak.net-src.zip">nekurak.net-src.zip</a>
franta-hg@42
    94
			<a href="nekurak.net-src.zip.SHA-512">.</a>
franta-hg@37
    95
		    </p>
franta-hg@37
    96
		</div>
franta-hg@37
    97
franta-hg@37
    98
	    </div>
franta-hg@3
    99
	</body>
franta-hg@3
   100
    </html>
franta-hg@3
   101
franta-hg@3
   102
</jsp:root>