Revision 3996
Added by berkley over 16 years ago
index.jsp | ||
---|---|---|
1 |
<% |
|
2 |
String docid = request.getParameter("docid"); |
|
3 |
String status = request.getParameter("status"); |
|
4 |
%> |
|
1 | 5 |
<html> |
2 | 6 |
<head> |
3 | 7 |
<link rel="stylesheet" type="text/css" href="style/skins/sms/sms.css"/> |
... | ... | |
7 | 11 |
|
8 | 12 |
</script> |
9 | 13 |
|
14 |
|
|
10 | 15 |
<title>Semantic Mediation System</title> |
16 |
|
|
11 | 17 |
</head> |
12 | 18 |
<body onload="checkLogin()"> |
13 | 19 |
|
... | ... | |
34 | 40 |
<tr> |
35 | 41 |
<td>Password:</td><td><input id="pw" type="password" name="password"/></td> |
36 | 42 |
</tr> |
43 |
<tr> |
|
44 |
<td><a href="javascript:" onclick="login()">[Login]</a></td> |
|
45 |
</tr> |
|
37 | 46 |
</table> |
38 |
<a onclick="login()">[Login]</a> |
|
47 |
|
|
39 | 48 |
</form> |
40 | 49 |
</div> |
41 | 50 |
</div> |
42 | 51 |
|
43 |
<!--<div id="maindiv" style="width:625px; margin:0px auto;"> |
|
44 |
<div id="leftspan" style="display:inline; background:grey; border:1px solid"> |
|
45 |
<p>span1</p> |
|
46 |
</div> |
|
47 |
<div id="rightspan" style="display:inline; background:grey; border:1px solid"> |
|
48 |
<p>span2</p> |
|
49 |
</div> |
|
50 |
</div>--> |
|
51 |
|
|
52 | 52 |
<div id="maindiv" style="display:none; width:625px; margin:0px auto;"> |
53 | 53 |
<table style="width:625px"> |
54 |
<tr> |
|
55 |
<td> |
|
54 |
<tr valign="top">
|
|
55 |
<td width="312px">
|
|
56 | 56 |
<div id="leftspan" style="background:grey; border:1px solid"> |
57 |
<p>span1</p>
|
|
57 |
<h4 style="text-align:center">Semantic Search</h4>
|
|
58 | 58 |
</div> |
59 | 59 |
</td> |
60 | 60 |
|
61 |
<td> |
|
62 |
<div id="rightspan" style="background:grey; border:1px solid"> |
|
63 |
<p>span2</p> |
|
61 |
<td width="312px"> |
|
62 |
<div id="rightspan" style="background:grey; border:1px solid; padding:10px;"> |
|
63 |
<h4 style="text-align:center">Upload an ontology or data package</h4> |
|
64 |
<form action="metacat" name="uploadform" method="POST" enctype="multipart/form-data"> |
|
65 |
<input type="hidden" name="action" value="insertmultipart"/> |
|
66 |
<input type="hidden" name="qformat" value="sms"/> |
|
67 |
<table> |
|
68 |
<tr> |
|
69 |
<td>File:</td><td><input type="file" id="datafile" name="datafile"/></td> |
|
70 |
</tr> |
|
71 |
<tr> |
|
72 |
<td>DocId:</td><td><input id="docidtextfield" type="text" name="docid" readonly="true"/></td> |
|
73 |
</tr> |
|
74 |
<tr> |
|
75 |
<td><a href="javascript:" onclick="uploadfile()">[Upload]</a> |
|
76 |
<!--<input type="submit"/></td>--> |
|
77 |
</tr> |
|
78 |
</table> |
|
79 |
</form> |
|
80 |
<div id="uploadstatus"> |
|
81 |
<% |
|
82 |
if(status != null && status.equals("success")) |
|
83 |
{ |
|
84 |
out.print("Your file was successfully uploaded. The url to " + |
|
85 |
"your file is <a href=\"http://linus.nceas.ucsb.edu/sms/metacat?docid=" + docid |
|
86 |
+ "&action=read&qformat=sms\">http://linus.nceas.ucsb.edu/sms/metacat?action=read&qformat=sms&docid=" + docid + |
|
87 |
"</a>"); |
|
88 |
} |
|
89 |
else |
|
90 |
{ |
|
91 |
if(docid != null) |
|
92 |
{ |
|
93 |
out.print("Sorry, your file upload failed. Try logging in again."); |
|
94 |
} |
|
95 |
} |
|
96 |
|
|
97 |
%> |
|
98 |
</div> |
|
64 | 99 |
</div> |
65 | 100 |
</td> |
66 | 101 |
</tr> |
Also available in: Unified diff
you can now upload xml documents with the sms skin