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