Subversion Repositories WebE

Rev

Rev 31 | View as "text/plain" | Blame | Compare with Previous | Last modification | View Log | RSS feed

1
<%@ taglib uri="http://www.opensymphony.com/sitemesh/decorator"
  prefix="decorator"
%>
<%@ taglib uri="http://java.sun.com/jsp/jstl/core" prefix="c"%>
<%@ taglib uri="http://java.sun.com/jsp/jstl/functions" prefix="fn"%>

<c:set var="contextPath" value="${pageContext.request.contextPath}" />
<c:set var="requestURI" value="${pageContext.request.requestURI}" />
<c:set var="isUser" value="${fn:contains(requestURI, '/user/')}" />
<c:set var="isAdmin" value="${fn:contains(requestURI, '/admin/')}" />

<%@ page pageEncoding="UTF-8"%>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN"
  "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">

<html xmlns="http://www.w3.org/1999/xhtml">
  <head>
    <meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
    <title><decorator:title /> &ndash; Ontologie-Editor</title>
    <link rel="stylesheet" type="text/css"
      href="${contextPath}/resources/css/main.css"
    />
  </head>
  <body>
    <%--  Only serves as a container for the different site elements!
        Do not write any text directly into the page-container div! --%>
    <div id="page-container">
      <div id="header">
        <table width="100%" border="0" cellspacing="0" cellpadding="0"
          class="header"
        >
          <tr>
            <td>&nbsp;</td>
            <td
              style="vertical-align: top; font-size: 12pt; text-align: right;"
            >
              <div>
                <strong>Ontologie-Editor</strong><br /> von
                Michael&nbsp;Moos<br /> &amp; Thomas&nbsp;Lahn
              </div></td>
            <td width="56" class="no_padding"><img
              src="${contextPath}/resources/images/ontology_logo.jpg"
              width="56" height="56" alt="logo"
            />
            </td>
          </tr>
        </table>
      </div>
  
      <!-- Load nav bars depending on the location -->
      <c:if test="${isUser}">
        <div id="navbar">
          <%@ include file="/user/nav.jsp"%>
        </div>
      </c:if>
      <c:if test="${isAdmin}">
        <div id="navbar">
          <%@ include file="/admin/nav.jsp"%>
        </div>
      </c:if>
  
      <!-- Content DIV loaded via decorator -->
      <div id="content">
        <decorator:body />
      </div>
  
    </div>
  </body>
</html>