java/nekurak.net-web/web/WEB-INF/tags/nekurak/stranka.tag
changeset 73 34c7eb5f2fae
child 107 e8371105fcc8
     1.1 --- /dev/null	Thu Jan 01 00:00:00 1970 +0000
     1.2 +++ b/java/nekurak.net-web/web/WEB-INF/tags/nekurak/stranka.tag	Thu Mar 18 14:22:16 2010 +0100
     1.3 @@ -0,0 +1,79 @@
     1.4 +<?xml version="1.0" encoding="UTF-8"?>
     1.5 +<jsp:root xmlns:jsp="http://java.sun.com/JSP/Page"
     1.6 +	  xmlns:c="http://java.sun.com/jsp/jstl/core"
     1.7 +	  xmlns:fmt="http://java.sun.com/jsp/jstl/fmt"
     1.8 +	  xmlns:fn="http://java.sun.com/jsp/jstl/functions"
     1.9 +	  xmlns:nk="urn:jsptagdir:/WEB-INF/tags/nekurak"
    1.10 +	  xmlns:nkfn="/WEB-INF/nekurakFunkce"
    1.11 +	  version="2.0">
    1.12 +
    1.13 +    <jsp:directive.attribute name="titulek" type="java.lang.String" required="false"/>
    1.14 +    <jsp:directive.tag description="Obaluje všechny stránky – obsahuje XHTML záhlaví a zápatí"/>
    1.15 +
    1.16 +    <jsp:output doctype-system="http://www.w3.org/2002/04/xhtml-math-svg/xhtml-math-svg-flat.dtd"
    1.17 +		doctype-root-element="html"
    1.18 +		omit-xml-declaration="false"/>
    1.19 +
    1.20 +    <html xmlns="http://www.w3.org/1999/xhtml"
    1.21 +	  xmlns:svg="http://www.w3.org/2000/svg"
    1.22 +	  xmlns:xlink="http://www.w3.org/1999/xlink">
    1.23 +	<head>
    1.24 +	    <c:choose>
    1.25 +		<c:when test="${titulek == null}">
    1.26 +		    <title><fmt:message key="nazev"/></title>
    1.27 +		</c:when>
    1.28 +		<c:otherwise>
    1.29 +		    <title>${fn:escapeXml(titulek)} – <fmt:message key="nazev"/></title>
    1.30 +		</c:otherwise>
    1.31 +	    </c:choose>
    1.32 +	    <link href="styl.css" type="text/css" rel="StyleSheet"/>
    1.33 +	    <script type="text/javascript" src="js/jquery.js"></script>
    1.34 +	    <script type="text/javascript" src="js/jquery.bxSlider.js"></script>
    1.35 +	    <link rel="alternate" type="application/atom+xml" title="podniky" href="atom/" />
    1.36 +	</head>
    1.37 +	<body>
    1.38 +	    <div class="body">
    1.39 +
    1.40 +		<div id="horniPruh">
    1.41 +		    <h1><fmt:message key="nazev"/></h1>
    1.42 +		</div>
    1.43 +
    1.44 +		<ul id="nabidka">
    1.45 +		    <li><a href="?"><fmt:message key="uvod"/></a></li>
    1.46 +
    1.47 +		    <c:choose>
    1.48 +			<c:when test="${prihlasenyUzivatel == null}">
    1.49 +			    <li><a href="?akce=prihlaseni"><fmt:message key="prihlasitSe"/></a></li>
    1.50 +			    <li><a href="?akce=registrovatUzivatele"><fmt:message key="registrovatSe"/></a></li>
    1.51 +			</c:when>
    1.52 +			<c:otherwise>
    1.53 +			    <li><a href="?akce=pridatPodnik"><fmt:message key="pridatPodnik"/></a></li>
    1.54 +			    <li id="prihlasenyUzivatel"><fmt:message key="prihlasenyUzivatel"/>: ${prihlasenyUzivatel}</li>
    1.55 +			    <li><a href="?akce=prihlaseni&amp;amp;odhlasit=ano"><fmt:message key="odhlasitSe"/></a></li>
    1.56 +			</c:otherwise>
    1.57 +		    </c:choose>
    1.58 +
    1.59 +		</ul>
    1.60 +
    1.61 +		<nk:prepinaniJazyku/>
    1.62 +
    1.63 +		<div id="obsah">
    1.64 +
    1.65 +		    <!-- Vlastní obsah stránky -->
    1.66 +		    <jsp:doBody/>
    1.67 +
    1.68 +		</div>
    1.69 +
    1.70 +		<div id="paticka">
    1.71 +		    <p>
    1.72 +			<fmt:message key="licence"/>&amp;#160;
    1.73 +			<a href="nekurak.net-src.zip">nekurak.net-src.zip</a>
    1.74 +			<a href="nekurak.net-src.zip.SHA-512">.</a>
    1.75 +		    </p>
    1.76 +		</div>
    1.77 +
    1.78 +	    </div>
    1.79 +	</body>
    1.80 +    </html>
    1.81 +
    1.82 +</jsp:root>
    1.83 \ No newline at end of file