java/nekurak.net-web/web/index.jsp
author František Kučera <franta-hg@frantovo.cz>
Sat Mar 13 23:51:43 2010 +0100 (2010-03-13)
changeset 66 048531e09c09
parent 58 e019dbc42723
child 73 34c7eb5f2fae
permissions -rw-r--r--
Knihovna EL funkcí, která umí sestavit odkaz na fotku.
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@61
     5
	  xmlns:nk="urn:jsptagdir:/WEB-INF/tags/nekurak"
franta-hg@10
     6
	  version="2.0">
franta-hg@3
     7
    <jsp:directive.page contentType="application/xhtml+xml"/>
franta-hg@37
     8
    <jsp:output doctype-system="http://www.w3.org/2002/04/xhtml-math-svg/xhtml-math-svg-flat.dtd"
franta-hg@3
     9
		doctype-root-element="html"
franta-hg@3
    10
		omit-xml-declaration="false"/>
franta-hg@3
    11
franta-hg@37
    12
    <!-- <lokalizace> -->
franta-hg@37
    13
    <c:if test="${param.jazyk != null}">
franta-hg@42
    14
	<fmt:setLocale value="${param.jazyk}" scope="session"/>
franta-hg@31
    15
    </c:if>
franta-hg@30
    16
    <fmt:setBundle basename="cz.frantovo.nekurak.preklady" scope="application"/>
franta-hg@37
    17
    <!-- </lokalizace> -->
franta-hg@30
    18
franta-hg@41
    19
    <!-- <autentizace> -->
franta-hg@41
    20
    <c:set var="prihlasenyUzivatel" scope="request" value="${pageContext.request.userPrincipal.name}"/>
franta-hg@41
    21
    <c:if test="${param.akce == 'prihlaseni' &amp;&amp; param.odhlasit == 'ano'}">
franta-hg@41
    22
	<!--
franta-hg@41
    23
	    Uživatele musíme odhlásit dřív, než vykreslíme nabídku,
franta-hg@41
    24
	    která závisí na tom, zda je uživatel přihlášený nebo ne.
franta-hg@41
    25
	    „prihlaseni.jsp?odhlasit=ano“ už vypíše jen hlášku, že byl odhlášen.
franta-hg@41
    26
	-->
franta-hg@41
    27
	<jsp:scriptlet>session.invalidate();</jsp:scriptlet>
franta-hg@41
    28
	<c:set var="prihlasenyUzivatel" scope="request" value="${null}"/>
franta-hg@41
    29
    </c:if>
franta-hg@41
    30
    <!-- </autentizace> -->
franta-hg@41
    31
franta-hg@41
    32
franta-hg@37
    33
    <html xmlns="http://www.w3.org/1999/xhtml"
franta-hg@37
    34
	  xmlns:svg="http://www.w3.org/2000/svg"
franta-hg@37
    35
	  xmlns:xlink="http://www.w3.org/1999/xlink">
franta-hg@3
    36
	<head>
franta-hg@30
    37
	    <title><fmt:message key="nazev"/></title>
franta-hg@26
    38
	    <link href="styl.css" type="text/css" rel="StyleSheet"/>
franta-hg@58
    39
	    <script type="text/javascript" src="js/jquery.js"></script>
franta-hg@58
    40
	    <script type="text/javascript" src="js/jquery.bxSlider.js"></script>
franta-hg@49
    41
	    <link rel="alternate" type="application/atom+xml" title="podniky" href="atom/" />
franta-hg@3
    42
	</head>
franta-hg@3
    43
	<body>
franta-hg@37
    44
	    <div class="body">
franta-hg@8
    45
franta-hg@37
    46
		<div id="horniPruh">
franta-hg@37
    47
		    <h1><fmt:message key="nazev"/></h1>
franta-hg@37
    48
		</div>
franta-hg@31
    49
franta-hg@38
    50
		<ul id="nabidka">
franta-hg@42
    51
		    <li><a href="?"><fmt:message key="uvod"/></a></li>
franta-hg@41
    52
franta-hg@41
    53
		    <c:choose>
franta-hg@41
    54
			<c:when test="${prihlasenyUzivatel == null}">
franta-hg@42
    55
			    <li><a href="?akce=prihlaseni"><fmt:message key="prihlasitSe"/></a></li>
franta-hg@51
    56
			    <li><a href="?akce=registrovatUzivatele"><fmt:message key="registrovatSe"/></a></li>
franta-hg@41
    57
			</c:when>
franta-hg@41
    58
			<c:otherwise>
franta-hg@42
    59
			    <li><a href="?akce=pridatPodnik"><fmt:message key="pridatPodnik"/></a></li>
franta-hg@42
    60
			    <li id="prihlasenyUzivatel"><fmt:message key="prihlasenyUzivatel"/>: ${prihlasenyUzivatel}</li>
franta-hg@42
    61
			    <li><a href="?akce=prihlaseni&amp;amp;odhlasit=ano"><fmt:message key="odhlasitSe"/></a></li>
franta-hg@41
    62
			</c:otherwise>
franta-hg@41
    63
		    </c:choose>
franta-hg@40
    64
franta-hg@38
    65
		</ul>
franta-hg@38
    66
franta-hg@61
    67
		<nk:prepinaniJazyku/>
franta-hg@44
    68
franta-hg@37
    69
		<div id="obsah">
franta-hg@10
    70
franta-hg@37
    71
		    <c:choose>
franta-hg@37
    72
			<c:when test="${param.akce == 'detail'}">
franta-hg@40
    73
			    <jsp:include page="/WEB-INF/casti/detail.jsp" flush="false"/>
franta-hg@40
    74
			</c:when>
franta-hg@40
    75
			<c:when test="${param.akce == 'pridatPodnik'}">
franta-hg@40
    76
			    <jsp:include page="/WEB-INF/casti/pridatPodnik.jsp" flush="false"/>
franta-hg@37
    77
			</c:when>
franta-hg@51
    78
			<c:when test="${param.akce == 'registrovatUzivatele'}">
franta-hg@51
    79
			    <jsp:include page="/WEB-INF/casti/registrovatUzivatele.jsp" flush="false"/>
franta-hg@51
    80
			</c:when>
franta-hg@41
    81
			<c:when test="${param.akce == 'prihlaseni'}">
franta-hg@41
    82
			    <jsp:include page="/WEB-INF/casti/prihlaseni.jsp" flush="false"/>
franta-hg@41
    83
			</c:when>
franta-hg@37
    84
			<c:otherwise>
franta-hg@40
    85
			    <jsp:include page="/WEB-INF/casti/uvod.jsp" flush="false"/>
franta-hg@37
    86
			</c:otherwise>
franta-hg@37
    87
		    </c:choose>
franta-hg@10
    88
franta-hg@37
    89
		</div>
franta-hg@37
    90
franta-hg@37
    91
		<div id="paticka">
franta-hg@37
    92
		    <p>
franta-hg@44
    93
			<fmt:message key="licence"/>&amp;#160;
franta-hg@42
    94
			<a href="nekurak.net-src.zip">nekurak.net-src.zip</a>
franta-hg@42
    95
			<a href="nekurak.net-src.zip.SHA-512">.</a>
franta-hg@37
    96
		    </p>
franta-hg@37
    97
		</div>
franta-hg@37
    98
franta-hg@37
    99
	    </div>
franta-hg@3
   100
	</body>
franta-hg@3
   101
    </html>
franta-hg@3
   102
franta-hg@3
   103
</jsp:root>