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