PageRenderTime 17ms CodeModel.GetById 8ms app.highlight 3ms RepoModel.GetById 1ms app.codeStats 0ms

/alaspatial/src/main/webapp/WEB-INF/views/index.jsp

http://alageospatialportal.googlecode.com/
JavaServer Pages | 139 lines | 119 code | 19 blank | 1 comment | 18 complexity | 32ab043f2c7fb901f73e1125ab47b02d MD5 | raw file
  1<%-- 
  2    Document   : index
  3    Created on : 22/02/2010, 12:38:56 PM
  4    Author     : ajayr
  5--%>
  6
  7<%@page contentType="text/html" pageEncoding="windows-1252"%>
  8<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN"
  9    "http://www.w3.org/TR/html4/loose.dtd">
 10
 11<html>
 12    <head>
 13        <meta http-equiv="Content-Type" content="text/html; charset=windows-1252">
 14        <title>JSP Page</title>
 15        <style type="text/css">
 16            body {
 17
 18                margin: 0;
 19                padding: 0;
 20                font-family: Verdana;
 21                font-size: small;
 22            }
 23            #header {
 24                margin: 10px;
 25}
 26            #display {
 27                width: 100%;
 28                height: 800px;
 29            }
 30            #navlist
 31            {
 32                border-bottom: 1px solid #ccc;
 33                margin: 0;
 34                padding-bottom: 19px;
 35                padding-left: 10px;
 36            }
 37
 38            #navlist ul, #navlist li
 39            {
 40                display: inline;
 41                list-style-type: none;
 42                margin: 0;
 43                padding: 0;
 44            }
 45
 46            #navlist a:link, #navlist a:visited
 47            {
 48                background: #E8EBF0;
 49                border: 1px solid #ccc;
 50                color: #666;
 51                float: left;
 52                font-size: small;
 53                font-weight: normal;
 54                line-height: 14px;
 55                margin-right: 8px;
 56                padding: 2px 10px 2px 10px;
 57                text-decoration: none;
 58            }
 59
 60            #navlist a:link.current, #navlist a:visited.current
 61            {
 62                background: #fff;
 63                border-bottom: 1px solid #fff;
 64                color: #000;
 65            }
 66
 67            #navlist a:hover { color: #f00; }
 68
 69            #navlist ul a:hover { color: #f00 !important; }
 70
 71            #contents
 72            {
 73                background: #fff;
 74                border: 1px solid #ccc;
 75                border-top: none;
 76                clear: both;
 77                margin: 0px;
 78                padding: 15px;
 79            } 
 80        </style>
 81        <script type="text/javascript">
 82            //var methodList = new Array("mfilter", "msample", "mmaxent");
 83
 84            var mfilterUrl = "speciesList.zul";
 85            var msampleUrl = "sampling.zul";
 86            var malocUrl = "ALOC.zul";
 87            var mjobsUrl = "jobs.zul";
 88            var mgdmUrl = "gdm.zul";
 89            var mmaxentUrl = "maxent2";
 90
 91            function menuClick(method) {
 92                var murl = "";
 93
 94                if (method == 'mfilter') murl = mfilterUrl;
 95                else if (method == 'msample') murl = msampleUrl;
 96                else if (method == 'maloc') murl = malocUrl;
 97                else if (method == 'mjobs') murl = mjobsUrl;
 98                else if (method == 'mgdm') murl = mgdmUrl;
 99                else if (method == 'mmaxent') murl = mmaxentUrl;
100                else alert("Please select a method from the list");
101
102                document.getElementById('display').src = murl;
103            }
104        </script>
105    </head>
106    <body>
107        <div id="header">
108            <h1>ALA Spatial Analysis Toolkit</h1>
109            <p>Please select a method to start.</p>
110
111        </div>
112        <div id="navcontainer">
113            <ul id="navlist">
114                <!-- <li id="active"><a href="#" id="current">Item one</a></li> -->
115                <li><a id="mfilter" href="#" onclick="menuClick(this.id);return false;">Filtering</a></li>
116                <li><a id="msample" href="#" onclick="menuClick(this.id);return false;">Sampling</a></li>
117                <li><a id="mmaxent" href="#" onclick="menuClick(this.id);return false;">Maxent</a></li>
118                <li><a id="maloc" href="#" onclick="menuClick(this.id);return false;">ALOC</a></li>
119                <li><a id="mgdm" href="#" onclick="menuClick(this.id);return false;">GDM</a></li>
120                <li><a id="mjobs" href="#" onclick="menuClick(this.id);return false;">Admin</a></li>
121            </ul>
122        </div>
123
124        <div id="contents">
125            <iframe id="display" width="100%" height="100%" frameborder="0" scrolling="no" />
126        </div>
127
128        <!--
129        <p><a href="species">Species</a></p>
130        <p><a href="maxent">Maxent</a></p>
131        <p><a href="tabulation.zul">Sampling</a></p>
132        <p><a href="filtering_cl.html">Filtering (A)</a></p>
133        <p><a href="filtering_svr.zul">Filtering (B)</a></p>
134        -->
135
136
137
138    </body>
139</html>