Project

General

Profile

1 3996 berkley
<%
2
  String docid = request.getParameter("docid");
3
  String status = request.getParameter("status");
4
%>
5 3975 berkley
<html>
6
<head>
7
  <link rel="stylesheet" type="text/css" href="style/skins/sms/sms.css"/>
8 3982 berkley
  <script src="style/skins/sms/jquery-1.2.6.min.js"></script>
9 3989 berkley
  <script src="style/skins/sms/util.js"></script>
10 3982 berkley
  <script type="text/javascript">
11
12
  </script>
13
14 3996 berkley
15 3975 berkley
  <title>Semantic Mediation System</title>
16 3996 berkley
17 3975 berkley
</head>
18 3989 berkley
<body onload="checkLogin()">
19 3975 berkley
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 3982 berkley
    <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
      <div id="loginheaderdiv">
28
        <h2 style="text-align:center" id="loginheader">Please Login</h2>
29
      </div>
30
      <div id="loginformdiv">
31
      <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 3996 berkley
          <tr>
44
            <td><a href="javascript:" onclick="login()">[Login]</a></td>
45
          </tr>
46 3982 berkley
        </table>
47 3996 berkley
48 3982 berkley
      </form>
49
      </div>
50
      </div>
51 3989 berkley
52
      <div id="maindiv" style="display:none; width:625px; margin:0px auto;">
53
      <table style="width:625px">
54 3996 berkley
        <tr valign="top">
55
          <td width="312px">
56 3989 berkley
            <div id="leftspan" style="background:grey; border:1px solid">
57 3996 berkley
              <h4 style="text-align:center">Semantic Search</h4>
58 3989 berkley
            </div>
59
          </td>
60
61 3996 berkley
          <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>
99 3989 berkley
            </div>
100
          </td>
101
        </tr>
102
      </table>
103
      </div>
104
105 3982 berkley
    </div>
106 3975 berkley
  </div>
107 3989 berkley
  <img id="bottomimg" src="style/skins/sms/sms-page-bottom.png" style="position:relative; bottom: 0px;"/>
108 3975 berkley
  </div>
109
</body>
110
</html>