Strabon

view endpoint/WebContent/store.jsp @ 372:531d318e3578

added some introductory text. changed title. Some more minor style changes.
author Konstantina Mpereta <grad1110@di.uoa.gr>
date Wed Jun 27 14:01:56 2012 +0300 (2012-06-27)
parents c0ff52c25cb3
children 8200fa66b6c0
line source
1 <%@ page import = "eu.earthobservatory.org.StrabonEndpoint.StoreBean" %>
2 <!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
3 <html>
4 <head>
5 <meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
6 <link rel="stylesheet" href="style.css" type="text/css" />
7 <style type="text/css">
8 <!--
9 .style3 {font-size: 15px}
10 .style4 {font-size: 12px}
11 .style5 {font-size: 15px;font-weight: bold;}
12 .style6 {color: #FF0000}
13 .style7 {font-size: 14px}
14 .hidden { visibility: hidden }
15 -->
16 </style>
17 <title>TELEIOS: Strabon Endpoint</title>
18 </head>
19 <body topmargin="0" leftmargin="0" link="#FFFFFF" vlink="#FFFFFF" alink="#FFFFFF">
20 <TABLE width="100%" BORDER=0 CELLPADDING=0 CELLSPACING=0>
21 <TR>
23 <TD height="16" background="images/pixi_white.gif"><img src="images/pixi_white.gif" width="16" height="16"></TD>
24 </TR>
25 <TR>
26 <TD height="1" background="images/top_bg_blue.gif"></TD>
27 </TR>
28 <TR>
29 <TD height="60" background="images/nav2_bg.gif">
30 <table width="100%" border="0">
31 <tr>
32 <td width="1"><img src="images/nav2_bg.gif" width="1" height="60"></td>
33 <td valign="top" width="80px"><img border="0" src="images/teleios_logo.png"/></td>
34 <td valign="top" align="left">
35 <span class="logo">Strabon Endpoint</span><br><span class="style4">based on Strabon</span></td>
36 </tr>
37 </table> </TD>
38 </TR>
39 <TR>
40 <TD height="21" background="images/nav1_bg1.gif">
41 </TD>
42 </TR>
43 <TR>
44 <TD height="2" background="images/top_bg_blue.gif"></TD>
45 </TR>
46 </TABLE>
48 <FORM method="get" action=Store>
49 <INPUT type=hidden name="<%=StoreBean.SRC_REQ%>" value="browser"/>
51 <TABLE border="0" width="100%">
52 <tr>
53 <td width="90" valign="top" bgcolor="#dfe8f0">
54 <TABLE border="0" cellspacing="0" cellpadding="0" width="165" id="navigation">
55 <tr><td width="90" class="style4"><a href="Query" class="navText">Query</a></td></tr>
56 <tr><td width="90" class="style4"><a href="javascript:history.go(0)" class="navText">Clear</a></td></tr>
57 </TABLE>
58 </td>
59 <td width="*" valign="top" >
60 <TABLE cellspacing="5">
61 <%
62 if (request.getParameter(StoreBean.DATA_ERROR) != null) {
63 %>
64 <TR><TD colspan=3>
65 <CENTER><P style="color: red;">No data provided!</P></CENTER>
66 </TD></TR>
67 <%
68 }
70 if (request.getParameter(StoreBean.FORMAT_ERROR) != null) {
71 %>
72 <TR><TD colspan=3>
73 <CENTER><P style="color: red;">Unknown RDF Format!</P></CENTER>
74 </TD></TR>
75 <%
76 }
78 if (request.getParameter(StoreBean.STORE_ERROR) != null) {
79 %>
80 <TR><TD colspan=3>
81 <CENTER><P style="color: red;">An error occurred while storing input data!</P></CENTER>
82 </TD></TR>
83 <%
84 }
86 if (request.getParameter(StoreBean.STORE_OK) != null) {
87 %>
88 <TR><TD colspan=3>
89 <CENTER><P>Data stored successfully!</P></CENTER>
90 </TD></TR>
91 <%
92 }
93 %>
94 <tr>
95 <!-- direct input form -->
96 <td id="output">Direct Input:</td>
97 <td id="output>
98 <textarea name="<%=StoreBean.PARAM_DATA%>" rows="15" cols="100"></textarea></td>
99 <td rowspan=4 id="output">
100 <CENTER>RDF Format:<br/>
101 <SELECT name="<%=StoreBean.PARAM_FORMAT%>">
102 <% for (String format : StoreBean.registeredFormats) {%>
103 <OPTION value="<%=format%>"><%=format%></OPTION>
104 <%}%>
105 </SELECT>
106 </CENTER>
107 </td>
108 </tr>
109 <tr>
110 <td colspan=2 id="output><br/>
111 <CENTER>
112 <input type="submit" value="Store Input" name="<%=StoreBean.SUBMIT_INPUT%>" style="width: 400px"/>
113 </CENTER><br/>
114 </td>
115 </tr>
117 <tr>
118 <td id="output" >URI Input:</td>
119 <td id="output">
120 <textarea name="<%=StoreBean.PARAM_DATA_URL%>" rows="1" cols="100"></textarea>
121 </td>
122 </tr>
124 <tr>
125 <td colspan=2 id="output"><br/>
126 <CENTER>
127 <INPUT type="submit" value="Store from URI" name="<%=StoreBean.SUBMIT_URL%>" style="width: 400px"/>
128 </CENTER><br/>
129 </td>
130 </tr>
132 </TABLE>
133 </td>
134 </tr>
135 </TABLE>
136 </FORM>
137 <br/><br/><br/><br/><br/>
138 </BODY>
139 </HTML>