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 |
4077
|
berkley
|
<%
|
19 |
|
|
|
20 |
|
|
if(status != null && status.equals("success"))
|
21 |
|
|
{
|
22 |
|
|
out.print("<body onload=\"javascript:checkPublicAccess('" + docid + "')\">");
|
23 |
|
|
}
|
24 |
|
|
else
|
25 |
|
|
{
|
26 |
|
|
out.print("<body onload=\"javascript:checkLogin()\">");
|
27 |
|
|
}
|
28 |
|
|
|
29 |
|
|
|
30 |
|
|
%>
|
31 |
3998
|
berkley
|
|
32 |
|
|
<div style="width: 700px; margin: 0px auto; border:0px; padding:0px;">
|
33 |
|
|
<img style="position:relative; top: 15px;" src="style/skins/sms/sms-page-top.png"/>
|
34 |
|
|
<div id="page">
|
35 |
|
|
<div style="width:650px; border:5px; margin:0px auto;">
|
36 |
|
|
<h1 style="text-align:center">SEEK Semantic Mediation Tools</h1>
|
37 |
|
|
</div>
|
38 |
|
|
<div style="width: 650px; border: 5px; margin: 0px auto; background: grey">
|
39 |
4005
|
berkley
|
<div id="loginheaderdiv" style="padding: 3px;">
|
40 |
3998
|
berkley
|
<h2 style="text-align:center" id="loginheader">Please Login</h2>
|
41 |
|
|
</div>
|
42 |
4046
|
berkley
|
<!--login div-->
|
43 |
4005
|
berkley
|
<div id="loginformdiv" style="padding:20px;">
|
44 |
3998
|
berkley
|
<form action="metacat" name="loginform" method="POST">
|
45 |
|
|
<div style="width:300px; margin:0px auto; height: 150px;">
|
46 |
|
|
<table>
|
47 |
|
|
<tr>
|
48 |
|
|
<td>Username:</td><td><input id="un" type="text" name="username"/></td>
|
49 |
|
|
</tr>
|
50 |
|
|
<tr>
|
51 |
|
|
<td>Organization:</td><td><input id="org" type="text" name="organization"/></td>
|
52 |
|
|
</tr>
|
53 |
|
|
<tr>
|
54 |
|
|
<td>Password:</td><td><input id="pw" type="password" name="password"/></td>
|
55 |
|
|
</tr>
|
56 |
|
|
<tr>
|
57 |
4012
|
berkley
|
<td><a href="javascript:login();" >[Login]</a></td>
|
58 |
3998
|
berkley
|
</tr>
|
59 |
|
|
</table>
|
60 |
|
|
|
61 |
|
|
</form>
|
62 |
|
|
</div>
|
63 |
|
|
</div>
|
64 |
|
|
|
65 |
4012
|
berkley
|
<!--main part of the page after logging in-->
|
66 |
4005
|
berkley
|
<div id="maindiv" style="display:none; width:625px; margin:0px auto; padding: 10px;">
|
67 |
4046
|
berkley
|
<a href="javascript:showSearchPane()"><img id="searchtabimg" src="style/skins/sms/search-tab.png"/></a><img id="searchtabimgsel" src="style/skins/sms/search-tab-selected.png"/>
|
68 |
|
|
<a href="javascript:showUploadPane()"><img id="uploadtabimg" src="style/skins/sms/upload-tab.png"/></a><img id="uploadtabimgsel" src="style/skins/sms/upload-tab-selected.png"/>
|
69 |
|
|
<a href="javascript:showBrowsePane()"><img id="browsetabimg" src="style/skins/sms/browse-tab.png"/></a><img id="browsetabimgsel" src="style/skins/sms/browse-tab-selected.png"/>
|
70 |
4012
|
berkley
|
|
71 |
|
|
<!--search panel-->
|
72 |
4071
|
berkley
|
<div id="searchdiv" style="background:grey; border:1px solid; width: 99%;">
|
73 |
4046
|
berkley
|
<div style="padding: 5px;">
|
74 |
|
|
<h4 style="text-align:center">Semantic Search</h4>
|
75 |
|
|
<form>
|
76 |
|
|
<table>
|
77 |
|
|
<tr>
|
78 |
|
|
<td>Search:</td><td><input id="searchtextbox" type="text" name="anytext"/></td>
|
79 |
|
|
</tr>
|
80 |
|
|
<tr>
|
81 |
|
|
<td><a href="javascript:search()">[Search]</a></td><td> </td>
|
82 |
|
|
</tr>
|
83 |
|
|
</table>
|
84 |
|
|
</form>
|
85 |
|
|
</div>
|
86 |
4071
|
berkley
|
|
87 |
4076
|
berkley
|
<div id="searchresultdiv" style="position: relative; left: 3px; padding: 10px; width: 595px; ">
|
88 |
4071
|
berkley
|
<div id="searchresulttable">
|
89 |
|
|
<!--this is filled in via an AJAX call. see search()-->
|
90 |
|
|
</div>
|
91 |
|
|
</div>
|
92 |
4046
|
berkley
|
</div>
|
93 |
4012
|
berkley
|
|
94 |
3998
|
berkley
|
|
95 |
4012
|
berkley
|
<!--upload panel-->
|
96 |
4071
|
berkley
|
<div id="uploaddiv" style="background:grey; border:1px solid; width: 99%;">
|
97 |
4046
|
berkley
|
<div style="padding:5px;">
|
98 |
|
|
<h4 style="text-align:center">Upload an ontology or data package</h4>
|
99 |
|
|
<form action="metacat" name="uploadform" method="POST" enctype="multipart/form-data">
|
100 |
|
|
<input type="hidden" name="action" value="insertmultipart"/>
|
101 |
|
|
<input type="hidden" name="qformat" value="sms"/>
|
102 |
|
|
<input type="hidden" name="updateXMLNS" value="true"/>
|
103 |
|
|
<table>
|
104 |
|
|
<tr>
|
105 |
|
|
<td>File:<input type="file" id="datafile" name="datafile"/></td>
|
106 |
|
|
</tr>
|
107 |
|
|
<tr>
|
108 |
|
|
<!--<td>DocId:</td><td><input id="docidtextfield" type="text" name="docid" readonly="true"/></td>-->
|
109 |
|
|
<td>
|
110 |
|
|
Identifier Prefix: <input style="display:inline" id="docidfamily" type="text" value="sms" size="3"/>
|
111 |
|
|
<input style="display:inline" id="docidnumber" type="hidden" size="1"/>
|
112 |
|
|
<input style="display:inline" id="docidrevision" type="hidden" size="1"/>
|
113 |
|
|
<input style="display:inline" id="docid" type="hidden" name="docid" value="x"/>
|
114 |
|
|
<span style="font-size:70%"><a href="javascript:getId()">[Check Id]</a></span>
|
115 |
|
|
</td>
|
116 |
|
|
</tr>
|
117 |
|
|
<tr>
|
118 |
|
|
<td>
|
119 |
|
|
<a href="javascript:uploadfile()" >[Upload]</a>
|
120 |
|
|
<!--<input type="submit"/>-->
|
121 |
|
|
</td>
|
122 |
|
|
</tr>
|
123 |
|
|
</table>
|
124 |
|
|
</form>
|
125 |
4076
|
berkley
|
<div id="uploadstatus" style="width:312px">
|
126 |
4046
|
berkley
|
<%
|
127 |
|
|
if(status != null && status.equals("success"))
|
128 |
|
|
{
|
129 |
|
|
out.print("Your file was successfully uploaded with id <a href=\"http://linus.nceas.ucsb.edu/sms/metacat?docid=" + docid
|
130 |
|
|
+ "&action=read&qformat=sms\">" + docid + "</a>. " +
|
131 |
|
|
"<a href=\"javascript:makepublic('" + docid + "')\">Click here</a> to make this document publicly readable.");
|
132 |
|
|
}
|
133 |
4076
|
berkley
|
else if(status == null)
|
134 |
|
|
{
|
135 |
|
|
//do nothing
|
136 |
|
|
}
|
137 |
4046
|
berkley
|
else
|
138 |
|
|
{
|
139 |
|
|
out.print("Sorry, your file upload failed. Try logging in again.");
|
140 |
|
|
}
|
141 |
|
|
|
142 |
|
|
%>
|
143 |
3998
|
berkley
|
</div>
|
144 |
4046
|
berkley
|
</div>
|
145 |
|
|
</div>
|
146 |
4005
|
berkley
|
|
147 |
4076
|
berkley
|
<!--browse panel-->
|
148 |
|
|
<div id="browseresultdiv" style="position: relative; left: 3px; border: 1px solid ; padding: 10px; width: 595px; ">
|
149 |
|
|
<div id="browseresulttable">
|
150 |
4046
|
berkley
|
<!--this is filled in via an AJAX call. see showDatasets()-->
|
151 |
|
|
</div>
|
152 |
4005
|
berkley
|
</div>
|
153 |
3998
|
berkley
|
</div>
|
154 |
|
|
|
155 |
|
|
</div>
|
156 |
|
|
</div>
|
157 |
|
|
<img id="bottomimg" src="style/skins/sms/sms-page-bottom.png" style="position:relative; bottom: 0px;"/>
|
158 |
|
|
</div>
|
159 |
|
|
</body>
|
160 |
|
|
</html>
|