blob: d8020f8fb07524d8c4fafe059a921e46156f92b5 [file] [log] [blame]
<!DOCTYPE html>
<!--
/*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*/
-->
<html>
<head>
<title>Please upload your widget archive file</title>
<meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1">
<link type="text/css" href="/wookie/shared/js/jquery/themes/redmond/jquery-ui-1.7.1.custom.css" rel="stylesheet" />
<link type="text/css" href="../layout.css" rel="stylesheet" />
<script type="text/javascript" src="/wookie/shared/js/jquery/jquery-1.3.2.min.js"></script>
<script type="text/javascript" src="/wookie/shared/js/jquery/jquery-ui-1.7.custom.min.js"></script>
<script language="JavaScript">
<!--
$(document).ready(function() {});
function openStatus(){
if (document.upform.uploadfile.value.length > 0){
window.open('upload.htm','UploadStatus','scrollbars=no,status=no,width=450,height=80');
document.upform.submit();
}
else {
$("#confirm").dialog({
bgiframe: true,
autoOpen: false,
buttons: {
"Ok": function() { $(this).dialog("close"); }
},
resizable: false,
modal: true,
overlay: {
backgroundColor: '#00000',
opacity: 0.25
},
});
$('#confirm').dialog('open');
}
}
//-->
</script>
</head>
<body>
<div id="header">
<div id="banner">
<div style="float:left;">
<img style="margin: 8 8px;" border="0" src="../shared/images/furry_white.png">
</div>
<div id="menu"><a class="menulink" href="index.jsp">menu&nbsp;<img border="0" src="../shared/images/book.gif"></a>&nbsp;</div>
</div>
<div id="pagetitle">
<h3>Add new widget</h3>
</div>
<!-- END HEADER -->
</div>
<div id="content">
<p>Use the 'browse' button below to find a valid zip file containing a new widget. Press the 'Publish' button to upload and then import the widget into the system.</p>
<br>
<form method="post" action="/wookie/admin/WidgetAdminServlet?operation=UPLOADWIDGET" name="upform" enctype="multipart/form-data">
<table id="newwidget" class="ui-widget ui-widget-content" align="center">
<thead>
<tr class="ui-widget-header">
<th>Select a widget archive (zip) to upload:</th>
</tr>
</thead>
<tbody>
<tr>
<td><input type=file name="uploadfile" size="50" class="ui-widget input ui-state-default ui-corner-all"></td>
</tr>
<tr>
<td align="center"><input class="ui-button ui-state-default ui-corner-all" type="button" name="Submit" value="Publish" onClick="openStatus()">
<input class="ui-button ui-state-default ui-corner-all" type="reset" name="Reset" value="Clear"></td>
</tr>
</tbody>
</table>
</form>
</div>
<div id="footer">
<div style="text-align:right"><a class="menulink" href="index.jsp">menu&nbsp;<img border="0" src="../shared/images/book.gif"></a>&nbsp;</div>
</div>
<div id="confirm" style="display:none;" title="Warning">You must first select a valid zip file to attach</div>
</body>
</html>