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