Strabon

view endpoint/WebContent/connection.jsp @ 1466:194886c8647e

local commit
author Liza Sakellari <esakellari@di.uoa.gr>
date Thu Jan 15 18:54:03 2015 +0200 (2015-01-15)
parents 319dcc2c9a03
children 845e3fbd310e
line source
1 <jsp:directive.page language="java" contentType="text/html; charset=UTF-8" pageEncoding="UTF-8"/>
2 <jsp:directive.page import="eu.earthobservatory.org.StrabonEndpoint.Common"/>
3 <!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
4 <html>
5 <head>
6 <meta name="viewport" content="initial-scale=1.0, user-scalable=no" />
7 <link rel="stylesheet" href="style.css" type="text/css" />
9 <script type="text/javascript">
10 function toggleMe(a) {
11 var e = document.getElementById(a);
12 if (!e) {
13 return true;
14 }
15 if (e.style.display == "none") {
16 e.style.display = "block";
17 } else {
18 e.style.display = "none";
19 }
20 return true;
21 }
22 </script>
24 <style type="text/css">
25 /*demo page css*/
26 body{ font: 90% "Trebuchet MS", sans-serif; margin: 50px;}
27 .container { height:410px; width:165px;}
28 .demoHeaders { margin-top: 1em;}
29 #dialog_link {padding: .4em 1em .4em 20px;text-decoration: none;position: relative;}
30 #dialog_link span.ui-icon {margin: 0 5px 0 0;position: absolute;left: .2em;top: 50%;margin-top: -8px;}
31 ul#icons {margin: 0; padding: 0;}
32 ul#icons li {margin: 1px; position: relative; padding: 1px 0; cursor: pointer; float: left; list-style: none;}
33 ul#icons span.ui-icon {float: left; margin: 0 1px;}
34 </style>
35 <title>TELEIOS: Strabon Endpoint</title>
36 </head>
37 <body topmargin="0" leftmargin="0" link="#FFFFFF" vlink="#FFFFFF" alink="#FFFFFF">
39 <!-- include TELEIOS header and description -->
40 <jsp:include page="teleios-header.html"/>
41 <!-- include TELEIOS header and description -->
43 <FORM method=POST enctype="UTF-8" accept-charset="UTF-8" action="DBConnect">
44 <input type="hidden" name="query" value="<%=request.getAttribute("query")%>"/>
45 <input type="hidden" name="handle" value="<%=request.getAttribute("handle")%>"/>
46 <input type="hidden" name="format" value="<%=request.getAttribute("format")%>"/>
47 <TABLE class="style4">
48 <TR>
49 <TD valign="top" class="style4">Database Name:</TD>
50 <TD><input type="text" name="dbname" value="<%=request.getAttribute("dbname")%>"/></TD>
51 </TR>
52 <TR>
53 <TD valign="top" class="style4">Username:</TD>
54 <TD><input type="text" name="username" value="<%=request.getAttribute("username")%>"/></TD>
55 </TR>
56 <TR>
57 <TD valign="top" class="style4">Password:</TD>
58 <TD><input type="password" name="password" value="<%=request.getAttribute("password")%>"/></TD>
59 </TR>
60 <TR>
61 <TD valign="top" class="style4">Port:</TD>
62 <TD><input type="text" name="port" value="<%=request.getAttribute("port")%>"/></TD>
63 </TR>
64 <TR>
65 <TD valign="top" class="style4">Hostname:</TD>
66 <TD><input type="text" name="hostname" value="<%=request.getAttribute("hostname")%>"/></TD>
67 </TR>
68 <TR>
69 <TD valign="top" class="style4">Database Backend:</TD>
70 <TD>
71 <SELECT name="dbengine">
72 <OPTION value="<%=Common.DBBACKEND_POSTGIS%>" <%=Common.DBBACKEND_POSTGIS.equals(request.getAttribute("dbengine")) ? "selected":""%>><%=Common.DBBACKEND_POSTGIS%></OPTION>
73 <OPTION value="<%=Common.DBBACKEND_MONETDB%>" <%=Common.DBBACKEND_MONETDB.equals(request.getAttribute("dbengine")) ? "selected":""%>><%=Common.DBBACKEND_MONETDB%></OPTION>
74 </SELECT>
75 </TD>
76 </TR>
77 <TR>
78 <TD colspan=2><input type="submit" value="Connect"/></TD>
79 </TR>
80 </TABLE>
81 </FORM>
82 <br/><br/><br/><br/><br/>
83 </BODY>
84 </HTML>