franta-hg@3: <?xml version="1.0" encoding="UTF-8"?>
franta-hg@10: <jsp:root xmlns:jsp="http://java.sun.com/JSP/Page"
franta-hg@10: 	  xmlns:c="http://java.sun.com/jsp/jstl/core"
franta-hg@30: 	  xmlns:fmt="http://java.sun.com/jsp/jstl/fmt"
franta-hg@10: 	  version="2.0">
franta-hg@3:     <jsp:directive.page contentType="application/xhtml+xml"/>
franta-hg@37:     <jsp:output doctype-system="http://www.w3.org/2002/04/xhtml-math-svg/xhtml-math-svg-flat.dtd"
franta-hg@3: 		doctype-root-element="html"
franta-hg@3: 		omit-xml-declaration="false"/>
franta-hg@3: 
franta-hg@37:     <!-- <lokalizace> -->
franta-hg@37:     <c:if test="${param.jazyk != null}">
franta-hg@42: 	<fmt:setLocale value="${param.jazyk}" scope="session"/>
franta-hg@31:     </c:if>
franta-hg@30:     <fmt:setBundle basename="cz.frantovo.nekurak.preklady" scope="application"/>
franta-hg@37:     <!-- </lokalizace> -->
franta-hg@30: 
franta-hg@41:     <!-- <autentizace> -->
franta-hg@41:     <c:set var="prihlasenyUzivatel" scope="request" value="${pageContext.request.userPrincipal.name}"/>
franta-hg@41:     <c:if test="${param.akce == 'prihlaseni' &amp;&amp; param.odhlasit == 'ano'}">
franta-hg@41: 	<!--
franta-hg@41: 	    Uživatele musíme odhlásit dřív, než vykreslíme nabídku,
franta-hg@41: 	    která závisí na tom, zda je uživatel přihlášený nebo ne.
franta-hg@41: 	    „prihlaseni.jsp?odhlasit=ano“ už vypíše jen hlášku, že byl odhlášen.
franta-hg@41: 	-->
franta-hg@41: 	<jsp:scriptlet>session.invalidate();</jsp:scriptlet>
franta-hg@41: 	<c:set var="prihlasenyUzivatel" scope="request" value="${null}"/>
franta-hg@41:     </c:if>
franta-hg@41:     <!-- </autentizace> -->
franta-hg@41: 
franta-hg@41: 
franta-hg@37:     <html xmlns="http://www.w3.org/1999/xhtml"
franta-hg@37: 	  xmlns:svg="http://www.w3.org/2000/svg"
franta-hg@37: 	  xmlns:xlink="http://www.w3.org/1999/xlink">
franta-hg@3: 	<head>
franta-hg@30: 	    <title><fmt:message key="nazev"/></title>
franta-hg@26: 	    <link href="styl.css" type="text/css" rel="StyleSheet"/>
franta-hg@49: 	    <link rel="alternate" type="application/atom+xml" title="podniky" href="atom/" />
franta-hg@3: 	</head>
franta-hg@3: 	<body>
franta-hg@37: 	    <div class="body">
franta-hg@8: 
franta-hg@37: 		<div id="horniPruh">
franta-hg@37: 		    <h1><fmt:message key="nazev"/></h1>
franta-hg@37: 		</div>
franta-hg@31: 
franta-hg@38: 		<ul id="nabidka">
franta-hg@42: 		    <li><a href="?"><fmt:message key="uvod"/></a></li>
franta-hg@41: 
franta-hg@41: 		    <c:choose>
franta-hg@41: 			<c:when test="${prihlasenyUzivatel == null}">
franta-hg@42: 			    <li><a href="?akce=prihlaseni"><fmt:message key="prihlasitSe"/></a></li>
franta-hg@41: 			</c:when>
franta-hg@41: 			<c:otherwise>
franta-hg@42: 			    <li><a href="?akce=pridatPodnik"><fmt:message key="pridatPodnik"/></a></li>
franta-hg@42: 			    <li id="prihlasenyUzivatel"><fmt:message key="prihlasenyUzivatel"/>: ${prihlasenyUzivatel}</li>
franta-hg@42: 			    <li><a href="?akce=prihlaseni&amp;amp;odhlasit=ano"><fmt:message key="odhlasitSe"/></a></li>
franta-hg@41: 			</c:otherwise>
franta-hg@41: 		    </c:choose>
franta-hg@40: 
franta-hg@38: 		</ul>
franta-hg@38: 
franta-hg@44: 		<jsp:include page="/WEB-INF/casti/prepinaniJazyku.jsp" flush="false"/>
franta-hg@44: 
franta-hg@37: 		<div id="obsah">
franta-hg@10: 
franta-hg@37: 		    <c:choose>
franta-hg@37: 			<c:when test="${param.akce == 'detail'}">
franta-hg@40: 			    <jsp:include page="/WEB-INF/casti/detail.jsp" flush="false"/>
franta-hg@40: 			</c:when>
franta-hg@40: 			<c:when test="${param.akce == 'pridatPodnik'}">
franta-hg@40: 			    <jsp:include page="/WEB-INF/casti/pridatPodnik.jsp" flush="false"/>
franta-hg@37: 			</c:when>
franta-hg@41: 			<c:when test="${param.akce == 'prihlaseni'}">
franta-hg@41: 			    <jsp:include page="/WEB-INF/casti/prihlaseni.jsp" flush="false"/>
franta-hg@41: 			</c:when>
franta-hg@37: 			<c:otherwise>
franta-hg@40: 			    <jsp:include page="/WEB-INF/casti/uvod.jsp" flush="false"/>
franta-hg@37: 			</c:otherwise>
franta-hg@37: 		    </c:choose>
franta-hg@10: 
franta-hg@37: 		</div>
franta-hg@37: 
franta-hg@37: 		<div id="paticka">
franta-hg@37: 		    <p>
franta-hg@44: 			<fmt:message key="licence"/>&amp;#160;
franta-hg@42: 			<a href="nekurak.net-src.zip">nekurak.net-src.zip</a>
franta-hg@42: 			<a href="nekurak.net-src.zip.SHA-512">.</a>
franta-hg@37: 		    </p>
franta-hg@37: 		</div>
franta-hg@37: 
franta-hg@37: 	    </div>
franta-hg@3: 	</body>
franta-hg@3:     </html>
franta-hg@3: 
franta-hg@3: </jsp:root>