Project

General

Profile

1 3998 berkley
<?php
2
  $status = $_REQUEST['uploadStatus'];
3
  $docid = $_REQUEST['docid'];
4
?>
5
6
<html>
7
<head>
8
  <link rel="stylesheet" type="text/css" href="style/skins/sms/sms.css"/>
9
  <script src="style/skins/sms/jquery-1.2.6.min.js"></script>
10
  <script src="style/skins/sms/util.js"></script>
11
  <script type="text/javascript">
12
13
  </script>
14
15
  <?php
16
  print '<title>Semantic Mediation System - ' . $status . '</title>';
17
  ?>
18
</head>
19
<body onload="checkLogin()">
20
21
  <div style="width: 700px; margin: 0px auto; border:0px; padding:0px;">
22
  <img style="position:relative; top: 15px;" src="style/skins/sms/sms-page-top.png"/>
23
  <div id="page">
24
    <div style="width:650px; border:5px; margin:0px auto;">
25
      <h1 style="text-align:center">SEEK Semantic Mediation Tools</h1>
26
    </div>
27
    <div style="width: 650px; border: 5px; margin: 0px auto; background: grey">
28
      <div id="loginheaderdiv">
29
        <h2 style="text-align:center" id="loginheader">Please Login</h2>
30
      </div>
31
      <div id="loginformdiv">
32
      <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
            <td><a href="javascript:" onclick="login()">[Login]</a></td>
46
          </tr>
47
        </table>
48
49
      </form>
50
      </div>
51
      </div>
52
53
      <div id="maindiv" style="display:none; width:625px; margin:0px auto;">
54
      <table style="width:625px">
55
        <tr valign="top">
56
          <td width="50%">
57
            <div id="leftspan" style="background:grey; border:1px solid">
58
              <h4 style="text-align:center">Semantic Search</h4>
59
            </div>
60
          </td>
61
62
          <td width="50%">
63
            <div id="rightspan" style="background:grey; border:1px solid; padding:10px;">
64
              <h4 style="text-align:center">Upload an ontology or data package</h4>
65
              <form action="metacat" name="uploadform" method="POST" enctype="multipart/form-data">
66
                <input type="hidden" name="action" value="upload"/>
67
                <input type="hidden" name="qformat" value="sms"/>
68
                <table>
69
                  <tr>
70
                    <td>File:</td><td><input type="file" id="datafile" name="datafile"/></td>
71
                  </tr>
72
                  <tr>
73
                    <td>DocId:</td><td><input id="docidtextfield" type="text" name="docid" readonly="true"/></td>
74
                  </tr>
75
                  <tr>
76
                    <?php
77
                    if($status == 'success')
78
                    {
79
                      print '<td>Your file was successfully uploaded.  The url to ' .
80
                      'your file is <a href="http://linus.nceas.ucsb.edu/sms/metacat/' . $docid
81
                      . '">http://linus.nceas.ucsb.edu/sms/metacat/' . $docid .
82
                      '</a></td>';
83
                    }
84
                    else
85
                    {
86
                      print '<td>Sorry, your file upload failed.  Try logging in again.</td>';
87
                    }
88
89
                    ?>
90
                  </tr>
91
                  <tr>
92
                    <td><a href="javascript:" onclick="uploadfile()">[Upload]</a>
93
                    <!--<input type="submit"/></td>-->
94
                  </tr>
95
                </table>
96
              </form>
97
            </div>
98
          </td>
99
        </tr>
100
      </table>
101
      </div>
102
103
    </div>
104
  </div>
105
  <img id="bottomimg" src="style/skins/sms/sms-page-bottom.png" style="position:relative; bottom: 0px;"/>
106
  </div>
107
</body>
108
</html>