2017-11-02 12:14:27 +03:00
|
|
|
<!DOCTYPE html>
|
|
|
|
<html lang="${LANG}">
|
2018-04-05 06:59:31 +03:00
|
|
|
|
2008-07-31 16:03:28 +04:00
|
|
|
<head>
|
2018-03-21 09:34:37 +03:00
|
|
|
<meta charset="UTF-8" />
|
|
|
|
<title>QBT_TR(Upload local torrent)QBT_TR[CONTEXT=HttpServer]</title>
|
2017-10-11 15:27:19 +03:00
|
|
|
<link rel="stylesheet" href="css/style.css" type="text/css" />
|
|
|
|
<link rel="stylesheet" href="css/Window.css" type="text/css" />
|
2018-04-01 20:04:42 +03:00
|
|
|
<script src="scripts/lib/mootools-1.2-core-yc.js"></script>
|
2018-03-21 09:34:37 +03:00
|
|
|
<script src="scripts/download.js"></script>
|
2008-07-31 16:03:28 +04:00
|
|
|
</head>
|
2015-10-22 07:36:36 +03:00
|
|
|
|
2018-04-05 06:59:31 +03:00
|
|
|
<body>
|
|
|
|
<iframe id="upload_frame" name="upload_frame" class="invisible" src="javascript:false;"></iframe>
|
|
|
|
<form action="api/v2/torrents/add" enctype="multipart/form-data" method="post" id="uploadForm" style="text-align: center;" target="upload_frame">
|
|
|
|
<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>
|
2018-10-16 07:15:15 +03:00
|
|
|
<fieldset class="settings" style="border: 0; text-align: left; margin-top: 12px;">
|
|
|
|
<table style="margin: auto;">
|
|
|
|
<tr>
|
|
|
|
<td>
|
|
|
|
<label for="savepath">QBT_TR(Save files to location:)QBT_TR[CONTEXT=HttpServer]</label>
|
|
|
|
</td>
|
|
|
|
<td>
|
|
|
|
<input type="text" id="savepath" name="savepath" style="width: 16em;" />
|
|
|
|
</td>
|
|
|
|
</tr>
|
|
|
|
<tr>
|
|
|
|
<td>
|
|
|
|
<label for="rename">QBT_TR(Rename torrent)QBT_TR[CONTEXT=HttpServer]</label>
|
|
|
|
</td>
|
|
|
|
<td>
|
|
|
|
<input type="text" id="rename" name="rename" style="width: 16em;" />
|
|
|
|
</td>
|
|
|
|
</tr>
|
|
|
|
<tr>
|
|
|
|
<td>
|
|
|
|
<label for="category">QBT_TR(Category:)QBT_TR[CONTEXT=AddNewTorrentDialog]</label>
|
|
|
|
</td>
|
|
|
|
<td>
|
|
|
|
<input type="text" id="category" name="category" style="width: 16em;" />
|
|
|
|
</td>
|
|
|
|
</tr>
|
|
|
|
<tr>
|
|
|
|
<td>
|
|
|
|
<label for="start_torrent">QBT_TR(Start torrent)QBT_TR[CONTEXT=AddNewTorrentDialog]</label>
|
|
|
|
</td>
|
|
|
|
<td>
|
|
|
|
<input type="checkbox" id="start_torrent" checked="checked" />
|
|
|
|
<input type="hidden" id="add_paused" name="paused" value="false" readonly />
|
|
|
|
</td>
|
|
|
|
</tr>
|
|
|
|
<tr>
|
|
|
|
<td>
|
|
|
|
<label for="skip_checking">QBT_TR(Skip hash check)QBT_TR[CONTEXT=AddNewTorrentDialog]</label>
|
|
|
|
</td>
|
|
|
|
<td>
|
|
|
|
<input type="checkbox" id="skip_checking" name="skip_checking" value="true" />
|
|
|
|
</td>
|
|
|
|
</tr>
|
|
|
|
<tr>
|
|
|
|
<td>
|
|
|
|
<label for="root_folder">QBT_TR(Create subfolder)QBT_TR[CONTEXT=AddNewTorrentDialog]</label>
|
|
|
|
</td>
|
|
|
|
<td>
|
|
|
|
<input type="checkbox" id="root_folder" name="root_folder" value="true" checked="checked" />
|
|
|
|
</td>
|
|
|
|
</tr>
|
|
|
|
<tr>
|
|
|
|
<td>
|
|
|
|
<label for="sequentialDownload">QBT_TR(Download in sequential order)QBT_TR[CONTEXT=TransferListWidget]</label>
|
|
|
|
</td>
|
|
|
|
<td>
|
|
|
|
<input type="checkbox" id="sequentialDownload" name="sequentialDownload" value="true" />
|
|
|
|
</td>
|
|
|
|
</tr>
|
|
|
|
<tr>
|
|
|
|
<td>
|
|
|
|
<label for="firstLastPiecePrio">QBT_TR(Download first and last pieces first)QBT_TR[CONTEXT=TransferListWidget]</label>
|
|
|
|
</td>
|
|
|
|
<td>
|
|
|
|
<input type="checkbox" id="firstLastPiecePrio" name="firstLastPiecePrio" value="true" />
|
|
|
|
</td>
|
|
|
|
</tr>
|
|
|
|
<tr>
|
|
|
|
<td>
|
|
|
|
<label for="dlLimit">QBT_TR(Limit download rate)QBT_TR[CONTEXT=HttpServer]</label>
|
|
|
|
</td>
|
|
|
|
<td>
|
|
|
|
<input type="text" id="dlLimit" name="dlLimit" style="width: 16em;" placeholder="Bytes/s" />
|
|
|
|
</td>
|
|
|
|
</tr>
|
|
|
|
<tr>
|
|
|
|
<td>
|
|
|
|
<label for="upLimit">QBT_TR(Limit upload rate)QBT_TR[CONTEXT=HttpServer]</label>
|
|
|
|
</td>
|
|
|
|
<td>
|
|
|
|
<input type="text" id="upLimit" name="upLimit" style="width: 16em;" placeholder="Bytes/s" />
|
|
|
|
</td>
|
|
|
|
</tr>
|
|
|
|
</table>
|
2018-04-05 06:59:31 +03:00
|
|
|
<div id="submitbutton" style="margin-top: 30px; text-align: center;">
|
|
|
|
<button type="submit" style="font-size: 1em;">QBT_TR(Upload Torrents)QBT_TR[CONTEXT=HttpServer]</button>
|
|
|
|
</div>
|
|
|
|
</fieldset>
|
|
|
|
</form>
|
|
|
|
<script>
|
|
|
|
var submitted = false;
|
2015-10-22 07:36:36 +03:00
|
|
|
|
2018-04-05 06:59:31 +03:00
|
|
|
$('uploadForm').addEventListener("submit", function() {
|
|
|
|
$('upload_spinner').style.display = "block";
|
|
|
|
submitted = true;
|
|
|
|
});
|
2015-10-22 07:36:36 +03:00
|
|
|
|
2018-04-05 06:59:31 +03:00
|
|
|
$('upload_frame').addEventListener("load", function() {
|
|
|
|
if (submitted)
|
|
|
|
window.parent.closeWindows();
|
|
|
|
});
|
2017-03-10 20:28:22 +03:00
|
|
|
|
2018-04-05 06:59:31 +03:00
|
|
|
$('start_torrent').addEventListener('change', function() {
|
2018-11-19 06:44:27 +03:00
|
|
|
$('add_paused').value = !$('start_torrent').checked;
|
2018-04-05 06:59:31 +03:00
|
|
|
});
|
|
|
|
</script>
|
|
|
|
<div id="upload_spinner" class="mochaSpinner"></div>
|
2008-07-31 16:03:28 +04:00
|
|
|
</body>
|
2018-04-05 06:59:31 +03:00
|
|
|
|
2008-07-31 16:03:28 +04:00
|
|
|
</html>
|