Browse Source

- forgot to commit this file

adaptive-webui-19844
Christophe Dumez 16 years ago
parent
commit
bec1388ba5
  1. 28
      src/webui/uploadframe.html

28
src/webui/uploadframe.html

@ -0,0 +1,28 @@ @@ -0,0 +1,28 @@
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">
<html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en" lang="en" dir="ltr">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8" />
<title>Upload local torrent file</title>
<link rel="stylesheet" href="css/style.css" type="text/css" />
<link rel="stylesheet" href="css/mocha.css" type="text/css" />
<script type="text/javascript" src="scripts/mootools-1.2-core-yc.js" charset="utf-8"></script>
<!-- <script type="text/javascript" src="scripts/upload.js" charset="utf-8"></script> -->
<script type="text/javascript">
function submitForm(form) {
if($('torrentfile').get('value').length == 0) {
alert("Form cannot be left empty");
return false;
}
document.uploadForm.submit();
window.parent.showSuccess();
}
</script>
</head>
<body>
<form action="/command/upload" enctype="multipart/form-data" method="post" name="uploadForm">
<input type="file" name="torrentfile" id="torrentfile" size="40"/><p>Point to torrent file</p><!--<input type="submit" value="Download"/> -->
<a id="upButton" onclick="javascript:submitForm();">Download</a>
</form>
</body>
</html>
Loading…
Cancel
Save