2008-07-31 12:03:28 +00:00
|
|
|
<!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>
|
2017-10-11 20:27:19 +08:00
|
|
|
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8" />
|
2017-05-01 01:45:02 +03:00
|
|
|
<title>QBT_TR(Upload local torrent)QBT_TR[CONTEXT=HttpServer]</title>
|
2017-10-11 20:27:19 +08:00
|
|
|
<link rel="stylesheet" href="css/style.css" type="text/css" />
|
|
|
|
<link rel="stylesheet" href="css/Window.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/download.js" charset="utf-8"></script>
|
2008-07-31 12:03:28 +00:00
|
|
|
</head>
|
|
|
|
<body>
|
2014-11-08 15:00:00 +01:00
|
|
|
<iframe id="upload_frame" name="upload_frame" class="invisible" src="javascript:false;"></iframe>
|
2015-10-22 00:06:36 -04:30
|
|
|
<form action="command/upload" enctype="multipart/form-data" method="post" id="uploadForm" style="text-align: center;" target="upload_frame">
|
|
|
|
<p>
|
2017-10-11 20:27:19 +08:00
|
|
|
<div style="margin-top: 25px; display: inline-block; border: 1px solid lightgrey; border-radius: 4px;">
|
|
|
|
<input type="file" id="fileselect" name="fileselect[]" multiple="multiple"/>
|
|
|
|
</div>
|
2015-10-22 00:06:36 -04:30
|
|
|
</p>
|
|
|
|
<fieldset class="settings" style="border: 0; text-align: left;">
|
|
|
|
<div class="formRow" style="margin-top: 12px;">
|
2017-05-01 01:45:02 +03:00
|
|
|
<label for="savepath" class="leftLabelLarge">QBT_TR(Save files to location:)QBT_TR[CONTEXT=HttpServer]</label>
|
2017-10-11 20:27:19 +08:00
|
|
|
<input type="text" id="savepath" name="savepath" style="width: 16em;"/>
|
2015-10-22 00:06:36 -04:30
|
|
|
</div>
|
2017-09-21 20:43:19 +08:00
|
|
|
<div class="formRow">
|
|
|
|
<label for="rename" class="leftLabelLarge">QBT_TR(Rename torrent)QBT_TR[CONTEXT=HttpServer]</label>
|
2017-10-11 20:27:19 +08:00
|
|
|
<input type="text" name="rename" style="width: 16em;"/>
|
2017-09-21 20:43:19 +08:00
|
|
|
</div>
|
2015-10-22 00:06:36 -04:30
|
|
|
<div class="formRow">
|
2017-05-01 01:45:02 +03:00
|
|
|
<label for="category" class="leftLabelLarge">QBT_TR(Category:)QBT_TR[CONTEXT=AddNewTorrentDialog]</label>
|
2017-10-11 20:27:19 +08:00
|
|
|
<input type="text" id="category" name="category" style="width: 16em;"/>
|
2014-11-08 15:00:00 +01:00
|
|
|
</div>
|
2017-03-11 01:28:22 +08:00
|
|
|
<div class="formRow">
|
2017-05-01 01:45:02 +03:00
|
|
|
<label for="start_torrent" class="leftLabelLarge">QBT_TR(Start torrent)QBT_TR[CONTEXT=AddNewTorrentDialog]</label>
|
2017-05-20 16:01:24 -04:00
|
|
|
<input type="checkbox" id="start_torrent" checked="checked"/>
|
2017-03-11 01:28:22 +08:00
|
|
|
<input type="hidden" id="add_paused" name="paused" value="true" disabled="disabled"/>
|
|
|
|
</div>
|
|
|
|
<div class="formRow">
|
2017-05-01 01:45:02 +03:00
|
|
|
<label for="skip_checking" class="leftLabelLarge">QBT_TR(Skip hash check)QBT_TR[CONTEXT=AddNewTorrentDialog]</label>
|
2017-05-20 16:01:24 -04:00
|
|
|
<input type="checkbox" name="skip_checking" value="true"/>
|
2017-03-11 01:28:22 +08:00
|
|
|
</div>
|
2017-09-11 16:56:33 +03:00
|
|
|
<div class="formRow">
|
|
|
|
<label for="root_folder" class="leftLabelLarge">QBT_TR(Create subfolder)QBT_TR[CONTEXT=AddNewTorrentDialog]</label>
|
|
|
|
<input type="checkbox" name="root_folder" value="true" checked="checked"/>
|
|
|
|
</div>
|
2017-09-21 20:43:19 +08:00
|
|
|
<div class="formRow">
|
|
|
|
<label for="sequentialDownload" class="leftLabelLarge">QBT_TR(Download in sequential order)QBT_TR[CONTEXT=TransferListWidget]</label>
|
|
|
|
<input type="checkbox" name="sequentialDownload" value="true"/>
|
|
|
|
</div>
|
|
|
|
<div class="formRow">
|
|
|
|
<label for="firstLastPiecePrio" class="leftLabelLarge">QBT_TR(Download first and last pieces first)QBT_TR[CONTEXT=TransferListWidget]</label>
|
|
|
|
<input type="checkbox" name="firstLastPiecePrio" value="true"/>
|
|
|
|
</div>
|
|
|
|
<div class="formRow">
|
|
|
|
<label for="dlLimit" class="leftLabelLarge">QBT_TR(Limit download rate)QBT_TR[CONTEXT=HttpServer]</label>
|
|
|
|
<input type="text" name="dlLimit" style="width: 16em;" placeholder="Bytes/s"/>
|
|
|
|
</div>
|
|
|
|
<div class="formRow">
|
|
|
|
<label for="upLimit" class="leftLabelLarge">QBT_TR(Limit upload rate)QBT_TR[CONTEXT=HttpServer]</label>
|
|
|
|
<input type="text" name="upLimit" style="width: 16em;" placeholder="Bytes/s"/>
|
|
|
|
</div>
|
2015-10-22 00:06:36 -04:30
|
|
|
<div id="submitbutton" style="margin-top: 30px; text-align: center;">
|
2017-05-01 01:45:02 +03:00
|
|
|
<button type="submit" style="font-size: 1em;">QBT_TR(Upload Torrents)QBT_TR[CONTEXT=HttpServer]</button>
|
2014-11-07 15:53:11 +03:00
|
|
|
</div>
|
2015-10-22 00:06:36 -04:30
|
|
|
</fieldset>
|
2011-10-02 10:22:41 +03:00
|
|
|
</form>
|
2015-10-22 00:06:36 -04:30
|
|
|
<script type="text/javascript">
|
|
|
|
|
|
|
|
var submitted = false;
|
|
|
|
|
|
|
|
$('uploadForm').addEventListener("submit", function() {
|
2017-10-11 20:27:19 +08:00
|
|
|
$('upload_spinner').style.display = "block";
|
|
|
|
submitted = true;
|
2015-10-22 00:06:36 -04:30
|
|
|
});
|
|
|
|
|
|
|
|
$('upload_frame').addEventListener("load", function() {
|
2017-10-11 20:27:19 +08:00
|
|
|
if (submitted)
|
|
|
|
window.parent.closeWindows();
|
2015-10-22 00:06:36 -04:30
|
|
|
});
|
2017-03-11 01:28:22 +08:00
|
|
|
|
|
|
|
$('start_torrent').addEventListener('change', function() {
|
|
|
|
$('add_paused').disabled = $('start_torrent').checked;
|
|
|
|
});
|
2015-10-22 00:06:36 -04:30
|
|
|
</script>
|
2014-11-08 15:00:00 +01:00
|
|
|
<div id="upload_spinner" class="mochaSpinner"></div>
|
2008-07-31 12:03:28 +00:00
|
|
|
</body>
|
|
|
|
</html>
|