java/nekurak.net-web/web/index.jsp
author František Kučera <franta-hg@frantovo.cz>
Thu, 25 Feb 2010 08:26:46 +0100
changeset 40 67d332d48562
parent 39 ea342cf8c15a
child 41 2c3451cc396c
permissions -rw-r--r--
Zakládání podniků + HTTP autentizace.
     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}"/>
    14     </c:if>
    15     <fmt:setBundle basename="cz.frantovo.nekurak.preklady" scope="application"/>
    16     <!-- </lokalizace> -->
    17 
    18     <html xmlns="http://www.w3.org/1999/xhtml"
    19 	  xmlns:svg="http://www.w3.org/2000/svg"
    20 	  xmlns:xlink="http://www.w3.org/1999/xlink">
    21 	<head>
    22 	    <title><fmt:message key="nazev"/></title>
    23 	    <link href="styl.css" type="text/css" rel="StyleSheet"/>
    24 	</head>
    25 	<body>
    26 	    <div class="body">
    27 
    28 		<div id="horniPruh">
    29 		    <h1><fmt:message key="nazev"/></h1>
    30 		</div>
    31 
    32 		<ul id="nabidka">
    33 		    <li><a href="?">Úvod</a></li>
    34 		    <li><a href="${pageContext.servletContext.contextPath}/sprava">Správa</a></li>
    35 		    <c:if test="${pageContext.request.userPrincipal.name != null}">
    36 			<li><a href="?akce=pridatPodnik">Přidat podnik</a></li>
    37 			<li id="prihlasenyUzivatel">Přihlášený uživatel: ${pageContext.request.userPrincipal.name}</li>
    38 		    </c:if>
    39 
    40 		</ul>
    41 
    42 		<div id="obsah">
    43 
    44 		    <c:choose>
    45 			<c:when test="${param.akce == 'detail'}">
    46 			    <jsp:include page="/WEB-INF/casti/detail.jsp" flush="false"/>
    47 			</c:when>
    48 			<c:when test="${param.akce == 'pridatPodnik'}">
    49 			    <jsp:include page="/WEB-INF/casti/pridatPodnik.jsp" flush="false"/>
    50 			</c:when>
    51 			<c:otherwise>
    52 			    <jsp:include page="/WEB-INF/casti/uvod.jsp" flush="false"/>
    53 			</c:otherwise>
    54 		    </c:choose>
    55 
    56 		</div>
    57 
    58 		<div id="paticka">
    59 		    <p>
    60 			© 2010 nekurak.net. Licence: Affero GPL.
    61 			<a href="${pageContext.servletContext.contextPath}/nekurak.net-src.zip">nekurak.net-src.zip</a>
    62 			<a href="${pageContext.servletContext.contextPath}/nekurak.net-src.zip.SHA-512">.</a>
    63 		    </p>
    64 		</div>
    65 
    66 	    </div>
    67 	</body>
    68     </html>
    69 
    70 </jsp:root>