Subversion Repositories WebE

Rev

Rev 20 | Go to most recent revision | 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>Ontologie - <decorator:title />
</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>Semantic Web Project</strong><br /> by Michael
              Moos<br /> Thomas 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>