1 |
3998
|
berkley
|
<%
|
2 |
|
|
String docid = request.getParameter("docid");
|
3 |
|
|
String status = request.getParameter("status");
|
4 |
|
|
%>
|
5 |
|
|
<html>
|
6 |
|
|
<head>
|
7 |
|
|
<link rel="stylesheet" type="text/css" href="style/skins/sms/sms.css"/>
|
8 |
|
|
<script src="style/skins/sms/jquery-1.2.6.min.js"></script>
|
9 |
|
|
<script src="style/skins/sms/util.js"></script>
|
10 |
|
|
<script type="text/javascript">
|
11 |
|
|
|
12 |
|
|
</script>
|
13 |
|
|
|
14 |
|
|
|
15 |
|
|
<title>Semantic Mediation System</title>
|
16 |
|
|
|
17 |
|
|
</head>
|
18 |
|
|
<body onload="checkLogin()">
|
19 |
|
|
|
20 |
|
|
<div style="width: 700px; margin: 0px auto; border:0px; padding:0px;">
|
21 |
|
|
<img style="position:relative; top: 15px;" src="style/skins/sms/sms-page-top.png"/>
|
22 |
|
|
<div id="page">
|
23 |
|
|
<div style="width:650px; border:5px; margin:0px auto;">
|
24 |
|
|
<h1 style="text-align:center">SEEK Semantic Mediation Tools</h1>
|
25 |
|
|
</div>
|
26 |
|
|
<div style="width: 650px; border: 5px; margin: 0px auto; background: grey">
|
27 |
4005
|
berkley
|
<div id="loginheaderdiv" style="padding: 3px;">
|
28 |
3998
|
berkley
|
<h2 style="text-align:center" id="loginheader">Please Login</h2>
|
29 |
|
|
</div>
|
30 |
4005
|
berkley
|
<div id="loginformdiv" style="padding:20px;">
|
31 |
3998
|
berkley
|
<form action="metacat" name="loginform" method="POST">
|
32 |
|
|
<div style="width:300px; margin:0px auto; height: 150px;">
|
33 |
|
|
<table>
|
34 |
|
|
<tr>
|
35 |
|
|
<td>Username:</td><td><input id="un" type="text" name="username"/></td>
|
36 |
|
|
</tr>
|
37 |
|
|
<tr>
|
38 |
|
|
<td>Organization:</td><td><input id="org" type="text" name="organization"/></td>
|
39 |
|
|
</tr>
|
40 |
|
|
<tr>
|
41 |
|
|
<td>Password:</td><td><input id="pw" type="password" name="password"/></td>
|
42 |
|
|
</tr>
|
43 |
|
|
<tr>
|
44 |
4012
|
berkley
|
<td><a href="javascript:login();" >[Login]</a></td>
|
45 |
3998
|
berkley
|
</tr>
|
46 |
|
|
</table>
|
47 |
|
|
|
48 |
|
|
</form>
|
49 |
|
|
</div>
|
50 |
|
|
</div>
|
51 |
|
|
|
52 |
4012
|
berkley
|
<!--main part of the page after logging in-->
|
53 |
4005
|
berkley
|
<div id="maindiv" style="display:none; width:625px; margin:0px auto; padding: 10px;">
|
54 |
3998
|
berkley
|
<table style="width:625px">
|
55 |
|
|
<tr valign="top">
|
56 |
4013
|
berkley
|
<td width="50%" height="100%">
|
57 |
4012
|
berkley
|
|
58 |
|
|
<!--search panel-->
|
59 |
|
|
<div id="leftspan" style="background:grey; border:1px solid; height: 99%; width: 99%;">
|
60 |
3998
|
berkley
|
<h4 style="text-align:center">Semantic Search</h4>
|
61 |
4012
|
berkley
|
<form>
|
62 |
|
|
<table>
|
63 |
|
|
<tr>
|
64 |
|
|
<td>Search:</td><td><input id="searchtextbox" type="text" name="anytext"/></td>
|
65 |
|
|
</tr>
|
66 |
|
|
<tr>
|
67 |
|
|
<td><a href="javascript:search()">[Search]</a></td><td> </td>
|
68 |
|
|
</tr>
|
69 |
|
|
</table>
|
70 |
|
|
</form>
|
71 |
3998
|
berkley
|
</div>
|
72 |
4012
|
berkley
|
|
73 |
3998
|
berkley
|
</td>
|
74 |
|
|
|
75 |
4012
|
berkley
|
<!--upload panel-->
|
76 |
|
|
<td width="50%">
|
77 |
|
|
<div id="rightspan" style="background:grey; border:1px solid; width: 99%; height: 99%;">
|
78 |
3998
|
berkley
|
<h4 style="text-align:center">Upload an ontology or data package</h4>
|
79 |
|
|
<form action="metacat" name="uploadform" method="POST" enctype="multipart/form-data">
|
80 |
|
|
<input type="hidden" name="action" value="insertmultipart"/>
|
81 |
|
|
<input type="hidden" name="qformat" value="sms"/>
|
82 |
|
|
<table>
|
83 |
|
|
<tr>
|
84 |
|
|
<td>File:</td><td><input type="file" id="datafile" name="datafile"/></td>
|
85 |
|
|
</tr>
|
86 |
|
|
<tr>
|
87 |
|
|
<td>DocId:</td><td><input id="docidtextfield" type="text" name="docid" readonly="true"/></td>
|
88 |
|
|
</tr>
|
89 |
|
|
<tr>
|
90 |
4014
|
berkley
|
<td>
|
91 |
|
|
<a href="javascript:uploadfile()" >[Upload]</a>
|
92 |
|
|
<!--<input type="submit"/>-->
|
93 |
|
|
</td>
|
94 |
3998
|
berkley
|
</tr>
|
95 |
|
|
</table>
|
96 |
|
|
</form>
|
97 |
4001
|
berkley
|
<div id="uploadstatus" style="width:312px">
|
98 |
3998
|
berkley
|
<%
|
99 |
|
|
if(status != null && status.equals("success"))
|
100 |
|
|
{
|
101 |
4002
|
berkley
|
out.print("Your file was successfully uploaded with id <a href=\"http://linus.nceas.ucsb.edu/sms/metacat?docid=" + docid
|
102 |
4032
|
berkley
|
+ "&action=read&qformat=sms\">" + docid + "</a>. " +
|
103 |
|
|
"<a href=\"javascript:makepublic('" + docid + "')\">Click here</a> to make this document publicly readable.");
|
104 |
3998
|
berkley
|
}
|
105 |
|
|
else
|
106 |
|
|
{
|
107 |
|
|
if(docid != null)
|
108 |
|
|
{
|
109 |
|
|
out.print("Sorry, your file upload failed. Try logging in again.");
|
110 |
|
|
}
|
111 |
|
|
}
|
112 |
|
|
|
113 |
|
|
%>
|
114 |
|
|
</div>
|
115 |
|
|
</div>
|
116 |
|
|
</td>
|
117 |
|
|
</tr>
|
118 |
|
|
</table>
|
119 |
4005
|
berkley
|
|
120 |
4012
|
berkley
|
<!--search result panel-->
|
121 |
|
|
<div id="searchresultdiv" style="position: relative; left: 3px; border: 1px solid ; padding: 10px; width: 595px;">
|
122 |
4005
|
berkley
|
<div id="searchresulttable">
|
123 |
4012
|
berkley
|
<!--this is filled in via an AJAX call. see showDatasets()-->
|
124 |
4005
|
berkley
|
</div>
|
125 |
3998
|
berkley
|
</div>
|
126 |
|
|
|
127 |
4005
|
berkley
|
</div>
|
128 |
|
|
|
129 |
3998
|
berkley
|
</div>
|
130 |
|
|
</div>
|
131 |
|
|
<img id="bottomimg" src="style/skins/sms/sms-page-bottom.png" style="position:relative; bottom: 0px;"/>
|
132 |
|
|
</div>
|
133 |
|
|
</body>
|
134 |
|
|
</html>
|