Project

General

Profile

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 4071 berkley
        <div id="searchdiv" style="background:grey; border:1px solid; width: 99%;">
61 4046 berkley
          <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>&nbsp;</td>
70
                </tr>
71
              </table>
72
            </form>
73
          </div>
74 4071 berkley
75 4076 berkley
          <div id="searchresultdiv" style="position: relative; left: 3px; padding: 10px; width: 595px; ">
76 4071 berkley
            <div id="searchresulttable">
77
              <!--this is filled in via an AJAX call.  see search()-->
78
            </div>
79
          </div>
80 4046 berkley
        </div>
81 4012 berkley
82 3998 berkley
83 4012 berkley
          <!--upload panel-->
84 4071 berkley
        <div id="uploaddiv" style="background:grey; border:1px solid; width: 99%;">
85 4046 berkley
          <div style="padding:5px;">
86
            <h4 style="text-align:center">Upload an ontology or data package</h4>
87
            <form action="metacat" name="uploadform" method="POST" enctype="multipart/form-data">
88
              <input type="hidden" name="action" value="insertmultipart"/>
89
              <input type="hidden" name="qformat" value="sms"/>
90
              <input type="hidden" name="updateXMLNS" value="true"/>
91
              <table>
92
                <tr>
93
                  <td>File:<input type="file" id="datafile" name="datafile"/></td>
94
                </tr>
95
                <tr>
96
                  <!--<td>DocId:</td><td><input id="docidtextfield" type="text" name="docid" readonly="true"/></td>-->
97
                  <td>
98
                      Identifier Prefix: <input style="display:inline" id="docidfamily" type="text" value="sms" size="3"/>
99
                      <input style="display:inline" id="docidnumber" type="hidden" size="1"/>
100
                      <input style="display:inline" id="docidrevision" type="hidden" size="1"/>
101
                      <input style="display:inline" id="docid" type="hidden" name="docid" value="x"/>
102
                      <span style="font-size:70%"><a href="javascript:getId()">[Check Id]</a></span>
103
                  </td>
104
                </tr>
105
                <tr>
106
                  <td>
107
                    <a href="javascript:uploadfile()" >[Upload]</a>
108
                    <!--<input type="submit"/>-->
109
                  </td>
110
                </tr>
111
              </table>
112
            </form>
113 4076 berkley
            <div id="uploadstatus" style="width:312px">
114 4046 berkley
            <%
115
              if(status != null && status.equals("success"))
116
              {
117
                out.print("Your file was successfully uploaded with id <a href=\"http://linus.nceas.ucsb.edu/sms/metacat?docid=" + docid
118
                + "&action=read&qformat=sms\">" + docid + "</a>.  " +
119
                "<a href=\"javascript:makepublic('" + docid + "')\">Click here</a> to make this document publicly readable.");
120
              }
121 4076 berkley
              else if(status == null)
122
              {
123
                //do nothing
124
              }
125 4046 berkley
              else
126
              {
127
                out.print("Sorry, your file upload failed.  Try logging in again.");
128
              }
129
130
              %>
131 3998 berkley
            </div>
132 4046 berkley
          </div>
133
        </div>
134 4005 berkley
135 4076 berkley
        <!--browse panel-->
136
        <div id="browseresultdiv" style="position: relative; left: 3px; border: 1px solid ; padding: 10px; width: 595px; ">
137
          <div id="browseresulttable">
138 4046 berkley
            <!--this is filled in via an AJAX call.  see showDatasets()-->
139
          </div>
140 4005 berkley
        </div>
141 3998 berkley
      </div>
142
143
    </div>
144
  </div>
145
  <img id="bottomimg" src="style/skins/sms/sms-page-bottom.png" style="position:relative; bottom: 0px;"/>
146
  </div>
147
</body>
148
</html>