Project

General

Profile

1
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
2

    
3
<%@ page contentType="text/html" %>
4
<%@ taglib prefix="c"  uri="http://java.sun.com/jsp/jstl/core"%>
5
<%@ taglib prefix="fn" uri="http://java.sun.com/jsp/jstl/functions" %>
6
<html>
7

    
8
<%
9
  String pageRequest = request.getParameter("page");
10
  if ( null == pageRequest ) pageRequest = "intro";
11
  request.setAttribute("page", pageRequest);
12
  request.setAttribute("mbConfigUrl", "/mapbuilder/docs/" + pageRequest + ".xml");
13
%>
14

    
15
<head>
16
<title>Mapbuilder User Guide</title>
17
<link rel='StyleSheet' type='text/css' href='/mapbuilder/docs/userGuide.css'>
18

    
19
<%
20
  if ( pageRequest.startsWith("samples/tutorial") ) {
21
%>
22
    <script>
23
      // URL of Mapbuilder configuration file.
24
      var mbConfigUrl='<%= request.getAttribute("mbConfigUrl") %>';
25
      //var language="fr";
26
    </script>
27
    <script type="text/javascript" src="/mapbuilder/lib/Mapbuilder.js"></script>
28
</head>
29
<body onload='mbDoLoad()'>  
30
<% } else { %>
31

    
32
</head>
33
<body>
34
<% } %>
35

    
36
<table width="800" border="0" cellspacing="0" cellpadding="0" summary="Table used for page layout">
37

    
38
  <tr>
39
    <td colspan="3">
40
        <h1>Mapbuilder User Guide</h1>
41
    </td>  
42
  </tr>
43

    
44
  <tr>
45
    <td width="160" valign="top">
46
      <c:import url="/docs/sidebar.html"/>
47
    </td>
48

    
49
    <td width="10"><img src="/mapbuilder/lib/skin/default/images/Spacer.gif"></td>  <!-- gutter -->
50

    
51
    <td width="630" valign="top">
52
      <a name="snav"></a>
53

    
54
      <div > 
55

    
56
        <c:set var="pageBody" value="/docs/${requestScope.page}.html"/>
57

    
58
        <c:if test="${fn:startsWith(requestScope.page, 'samples/tutorial')}">        
59
          <div style="width:100%; font-size:80%; text-align:right; margin:0">
60
            <a href='view-source:http://localhost:8080/mapbuilder/docs/<c:out value="${requestScope.page}"/>.html' target="HtmlSrcWin">view source</a> | <a href='<c:out value="${requestScope.mbConfigUrl}"/>' target="ConfigSrcWin">config file</a>
61
          </div>
62
        </c:if>
63
      </div>
64

    
65
      <c:import url="${pageBody}"/>
66

    
67
      <c:import url="/docs/footer.html"/>
68

    
69
    </td>
70

    
71
  </tr>
72
</table>
73

    
74
</body>
75
</html>
(8-8/9)