Browse Source

Remove the "Classic" skin.

pull/115/head
shypike 12 years ago
parent
commit
293d43470a
  1. 2
      NSIS_Installer.nsi
  2. 4
      SABnzbd.py
  3. 22
      interfaces/Classic/README.TXT
  4. 66
      interfaces/Classic/templates/config.tmpl
  5. 104
      interfaces/Classic/templates/config_cat.tmpl
  6. 90
      interfaces/Classic/templates/config_folders.tmpl
  7. 150
      interfaces/Classic/templates/config_general.tmpl
  8. 94
      interfaces/Classic/templates/config_notify.tmpl
  9. 381
      interfaces/Classic/templates/config_rss.tmpl
  10. 71
      interfaces/Classic/templates/config_scheduling.tmpl
  11. 71
      interfaces/Classic/templates/config_server.tmpl
  12. 450
      interfaces/Classic/templates/config_sorting.tmpl
  13. 189
      interfaces/Classic/templates/config_switches.tmpl
  14. 100
      interfaces/Classic/templates/history.tmpl
  15. 35
      interfaces/Classic/templates/inc_bottom.tmpl
  16. 62
      interfaces/Classic/templates/inc_cmenu.tmpl
  17. 68
      interfaces/Classic/templates/inc_top.tmpl
  18. 112
      interfaces/Classic/templates/main.tmpl
  19. 150
      interfaces/Classic/templates/nzo.tmpl
  20. 142
      interfaces/Classic/templates/queue.tmpl
  21. BIN
      interfaces/Classic/templates/static/images/favicon.ico
  22. 12
      interfaces/Classic/templates/static/javascript/dropdown.js
  23. 0
      interfaces/Classic/templates/static/placeholder.txt
  24. 110
      interfaces/Classic/templates/static/stylesheets/colorschemes/black.css
  25. 80
      interfaces/Classic/templates/static/stylesheets/colorschemes/classic.css
  26. 28
      interfaces/Classic/templates/static/stylesheets/colorschemes/darkblue.css
  27. 28
      interfaces/Classic/templates/static/stylesheets/colorschemes/green.css
  28. 28
      interfaces/Classic/templates/static/stylesheets/colorschemes/lightblue.css
  29. 28
      interfaces/Classic/templates/static/stylesheets/colorschemes/red.css
  30. 29
      interfaces/Classic/templates/static/stylesheets/colorschemes/white-black.css
  31. 257
      interfaces/Classic/templates/static/stylesheets/default.css
  32. 138
      interfaces/Classic/templates/static/stylesheets/defaultcolors.css
  33. 48
      interfaces/Classic/templates/status.tmpl
  34. 1
      package.py
  35. 2
      sabnzbd/constants.py

2
NSIS_Installer.nsi

@ -174,7 +174,7 @@
;Show all languages, despite user's codepage
!define MUI_LANGDLL_ALLLANGUAGES
!define MUI_ICON "interfaces/Classic/templates/static/images/favicon.ico"
!define MUI_ICON "interfaces/Config/templates/staticcfg/ico/favicon.ico"
;--------------------------------

4
SABnzbd.py

@ -393,8 +393,8 @@ def fix_webname(name):
else:
xname = ''
if xname in ('Default', ):
return 'Classic'
elif xname in ('Classic', 'Plush', 'Mobile'):
return 'Plush'
elif xname in ('Plush', 'Mobile'):
return xname
elif xname in ('Smpl', 'Wizard'):
return name.lower()

22
interfaces/Classic/README.TXT

@ -1,22 +0,0 @@
#
# Copyright 2008-2013 The SABnzbd-Team <team@sabnzbd.org>
#
# This program is free software; you can redistribute it and/or
# modify it under the terms of the GNU General Public License
# as published by the Free Software Foundation; either version 2
# of the License, or (at your option) any later version.
#
# This program is distributed in the hope that it will be useful,
# but WITHOUT ANY WARRANTY; without even the implied warranty of
# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
# GNU General Public License for more details.
#
# You should have received a copy of the GNU General Public License
# along with this program; if not, write to the Free Software
# Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
#
#
# This is the "Classic" web interface for SABnzbd
# Simple, but compatible with all popular browsers.
# We recommend use of the more advanced versions.
#

66
interfaces/Classic/templates/config.tmpl

@ -1,66 +0,0 @@
<!--#set global $topmenu="config"#-->
<!--#set global $statpath=".."#-->
<!--#set global $helpsubject="Configure-0-7"#-->
<!--#include $webdir + "/inc_top.tmpl"#-->
<!--#set global $submenu=""#-->
<!--#include $webdir + "/inc_cmenu.tmpl"#-->
<h2>$T('configuration')</h2>
<p>
<b>$T('confgFile'):</b> $configfn
</p>
$T('explain-Restart')<br/>
<form action="saveGeneral" method="post">
<input type="submit" onclick="this.form.action='restart?session=$session'; this.form.submit(); return false;" value="$T('button-restart')"/>
</form>
<br/><br/>
<hr/>
<!--#if $folders#-->
$T('explain-orphans')<br/>
<br/>
<table id="catTable">
<tr>
<th></th>
<th></th>
<th>$T('name')</th>
</tr>
<!--#set $odd = False#-->
<!--#for $folder in $folders#-->
<!--#set $odd = not $odd#-->
<tr class="<!--#if $odd then "odd" else "even"#-->">
<td>
<form action="delete" method="get">
<input type="hidden" value="$folder" name="name">
<input type="hidden" value="$session" name="session">
<input type="submit" value="$T('button-delCat')">
</form>
</td>
<td>
<form action="add" method="get">
<input type="hidden" value="$folder" name="name">
<input type="hidden" value="$session" name="session">
<input type="submit" value="$T('button-add')">
</form>
</td>
<td>
$folder
</td>
<!--#end for#-->
</table>
<hr/><br/>
<!--#end if#-->
$T('explain-Repair')<br/>
<form action="saveGeneral" method="post">
<input type="submit" onclick="this.form.action='repair?session=$session'; this.form.submit(); return false;" value="$T('button-repair')"/>
</form>
<!--#include $webdir + "/inc_bottom.tmpl"#-->

104
interfaces/Classic/templates/config_cat.tmpl

@ -1,104 +0,0 @@
<!--#set global $topmenu="config"#-->
<!--#set global $statpath="../.."#-->
<!--#set global $helpsubject="configure-categories-0-7"#-->
<!--#include $webdir + "/inc_top.tmpl"#-->
<!--#set global $submenu="categories"#-->
<!--#include $webdir + "/inc_cmenu.tmpl"#-->
<h2>$T('configCat')</h2>
$T('explain-configCat')<br/>
$T('explain-catTags')<br/>
$T('explain-catTags2')<br/>
$T('explain-relFolder') $defdir<br/>
<br/>
<table id="catTable">
<tr>
<th></th>
<th>$T('category')</th>
<th>&nbsp;$T('mode')&nbsp;</th>
<th>&nbsp;$T('priority')&nbsp;</th>
<!--#if $script_list#--><th>$T('script')</th><!--#end if#-->
<th>$T('catFolderPath')</th>
<th>$T('catTags')</th>
<th></th>
</tr>
<!--#set $odd = False#-->
<!--#for $slot in $slotinfo#-->
<!--#set $odd = not $odd#-->
<tr class="<!--#if $odd then "odd" else "even"#-->">
<td><!--#if $slot.name and $slot.name != '*'#-->
<form action="delete" method="get">
<input type="hidden" value="$slot.name" name="name">
<input type="hidden" value="$session" name="session">
<input type="submit" value="$T('button-delCat')">
</form>
<!--#end if#-->
</td>
<td>
<form action="save" method="get">
<input type="hidden" value="$slot.name" name="name">
<input type="hidden" value="$session" name="session">
<!--#if $slot.name != '*'#-->
<input type="text" name="newname" value="$slot.name">
<!--#else#-->
$T('default')
<!--#end if#-->
</td>
<td>
<select name="pp">
<optgroup label="$T('pp')">
<!--#if $slot.name != '*'#-->
<option value="" <!--#if $slot.pp == "" then "selected" else ""#-->>$T('default')</option>
<!--#end if#-->
<option value="0" <!--#if $slot.pp == "0" then "selected" else ""#-->>$T('pp-none')</option>
<option value="1" <!--#if $slot.pp == "1" then "selected" else ""#-->>$T('pp-repair')</option>
<option value="2" <!--#if $slot.pp == "2" then "selected" else ""#-->>$T('pp-unpack')</option>
<option value="3" <!--#if $slot.pp == "3" then "selected" else ""#-->>$T('pp-delete')</option>
</optgroup>
</select>
</td>
<td>
<select name="priority">
<optgroup label="$T('priority')">
<!--#if $slot.name != '*'#-->
<option value="-100" <!--#if $slot.priority == -100 then 'selected' else ''#-->>$T('default')</option>
<!--#end if#-->
<option value="2" <!--#if $slot.priority == 2 then 'selected' else ''#-->>$T('pr-force')</option>
<option value="1" <!--#if $slot.priority == 1 then 'selected' else ''#-->>$T('pr-high')</option>
<option value="0" <!--#if $slot.priority == 0 then 'selected' else ''#-->>$T('pr-normal')</option>
<option value="-1" <!--#if $slot.priority == -1 then 'selected' else ''#-->>$T('pr-low')</option>
<option value="-2" <!--#if $slot.priority == -2 then 'selected' else ''#-->>$T('pr-paused')</option>
</optgroup>
</select>
</td>
<!--#if $script_list#-->
<td>
<select name="script">
<optgroup label="$T('script')">
<!--#for $sc in $script_list#-->
<!--#if not ($sc == 'Default' and $slot.name == '*')#-->
<option value="$sc" <!--#if $slot.script.lower() == $sc.lower() then "selected" else ""#-->>$Tspec($sc)</option>
<!--#end if#-->
<!--#end for#-->
</optgroup>
</select>
</td>
<!--#end if#-->
<td><input type="text" size=30 name="dir" value="$slot.dir"></td>
<td><input type="text" size=30 name="newzbin" value="$slot.newzbin"></td>
<td><input type="submit" value="$T('button-save')"></td>
</form>
<!--#end for#-->
</table>
<!--#include $webdir + "/inc_bottom.tmpl"#-->

90
interfaces/Classic/templates/config_folders.tmpl

@ -1,90 +0,0 @@
<!--#set global $topmenu="config"#-->
<!--#set global $statpath="../.."#-->
<!--#set global $helpsubject="Configure+Folders-0-7"#-->
<!--#include $webdir + "/inc_top.tmpl"#-->
<!--#set global $submenu="directories"#-->
<!--#include $webdir + "/inc_cmenu.tmpl"#-->
<h2>$T('folderConfig')</h2>
<p><strong>
$T('explain-folderConfig')<br />
</strong></p>
<form action="saveDirectories" method="post">
<div class="EntryBlock">
<fieldset class="EntryFieldSet">
<legend>$T('userFolders')</legend>
<emp>$T('in') "$my_home"</emp><br><br>
<strong>$T('opt-download_dir'):</strong><br>
$T('explain-download_dir')<br/>
<input type="text" size="40" name="download_dir" value="$download_dir">
<br>
<br>
<strong>$T('opt-download_free'):</strong><br>
$T('explain-download_free')<br>
<input type="text" size="10" name="download_free" value="$download_free">
<br>
<br>
<strong>$T('opt-complete_dir'):</strong><br>
$T('explain-complete_dir')<br>
<input type="text" size="40" id="complete_dir" name="complete_dir" value="$complete_dir">
<!--#if not $nt#-->
<br>
<br>
<strong>$T('opt-permissions'):</strong><br>
$T('explain-permissions')<br>
<input type="text" size="10" name="permissions" value="$permissions">
<!--#end if#-->
<br>
<br>
<strong>$T('opt-dirscan_dir'):</strong><br>
$T('explain-dirscan_dir')<br>
<input type="text" size="40" name="dirscan_dir" value="$dirscan_dir">
<br>
<br>
<strong>$T('opt-dirscan_speed'):</strong><br>
$T('explain-dirscan_speed')<br>
<input type="text" size="10" name="dirscan_speed" value="$dirscan_speed">
<br>
<br>
<strong>$T('opt-script_dir'):</strong><br>
$T('explain-script_dir')<br>
<input type="text" size="40" name="script_dir" value="$script_dir">
<br>
<br>
<strong>$T('opt-email_dir'):</strong><br>
$T('explain-email_dir')<br>
<input type="text" size="40" name="email_dir" value="$email_dir">
<br>
<br>
<strong>$T('opt-password_file'):</strong><br>
$T('explain-password_file')<br>
<input type="text" size="40" name="password_file" value="$password_file">
</fieldset>
<fieldset class="EntryFieldSet">
<legend>$T('systemFolders')</legend>
<emp>$T('in') "$my_lcldata"</emp><br><br>
<strong>$T('opt-admin_dir'):</strong><br>
$T('explain-admin_dir1')<br/>$T('explain-admin_dir2')<br/>
<input type="text" size="40" name="admin_dir" value="$admin_dir">
<br>
<br>
<strong>$T('opt-log_dir'):</strong><br>
$T('explain-log_dir')<br/>
<input type="text" size="40" name="log_dir" value="$log_dir">
<br>
<br>
<strong>$T('opt-nzb_backup_dir'):</strong><br>
$T('explain-nzb_backup_dir')<br>
<input type="text" size="40" name="nzb_backup_dir" value="$nzb_backup_dir">
<input type="hidden" name="session" value="$session">
</fieldset>
</div><br>
<input type="submit" size="40" value="$T('button-saveChanges')">
<!--#if $restart_req#-->
<input type="submit" onclick="this.form.action='../restart'; this.form.submit(); return false;" value="$T('button-restart')"/>
<!--#end if#-->
</form>
<!--#include $webdir + "/inc_bottom.tmpl"#-->

150
interfaces/Classic/templates/config_general.tmpl

@ -1,150 +0,0 @@
<!--#set global $topmenu="config"#-->
<!--#set global $statpath="../.."#-->
<!--#set global $helpsubject="Configure+General-0-7"#-->
<!--#include $webdir + "/inc_top.tmpl"#-->
<!--#set global $submenu="general"#-->
<!--#include $webdir + "/inc_cmenu.tmpl"#-->
<h2>$T('generalConfig')</h2>
<form action="saveGeneral" method="post" autocomplete="off">
<div class="EntryBlock">
<fieldset class="EntryFieldSet">
<legend>$T('webServer')</legend>
<i>$T('restartRequired')</i><br/><br/>
<strong>$T('opt-host'):</strong><br>
$T('explain-host')<br>
<input type="text" name="host" value="$host">
<br>
<br>
<strong>$T('opt-port'):</strong><br>
$T('explain-port')<br>
<input type="text" name="port" value="$port">
<br>
<br>
<strong>$T('opt-web_dir'):</strong><br>
$T('explain-web_dir')<br>
<select name="web_dir">
<!--#for $webline in $web_list#-->
<!--#if $webline.lower() == $web_dir.lower()#-->
<option value="$webline" selected>$webline</option>
<!--#else#-->
<option value="$webline">$webline</option>
<!--#end if#-->
<!--#end for#-->
</select>
<br/><br/>
<strong>$T('opt-web_dir2'):</strong><br>
$T('explain-web_dir2')<br>
<select name="web_dir2">
<!--#for $webline in $web_list2#-->
<!--#if $webline.lower() == $web_dir2.lower()#-->
<option value="$webline" selected>$webline</option>
<!--#else#-->
<option value="$webline">$webline</option>
<!--#end if#-->
<!--#end for#-->
</select>
<br /><br /><strong>$T('opt-apikey'):</strong><br />
$T('explain-apikey')<br />
<input type="text" style="width:250px;border:none;" onclick="this.select()" id="apikey" value="$session">
<a href="generateAPIKey?session=$session">$T('button-apikey')</a>
<br /><br /><strong>$T('opt-nzbkey'):</strong><br />
$T('explain-nzbkey')<br />
<input type="text" style="width:250px;border:none;" onclick="this.select()" id="nzbkey" value="$nzb_key">
<a href="generateNzbKey?session=$session">$T('button-apikey')</a>
<br /><br />
<label><input type="checkbox" name="disable_api_key" value="1" <!--#if $disable_api_key > 0 then "checked=1" else ""#--> /> <strong>$T('opt-disableApikey')</strong></label><br>
$T('explain-disableApikey') <a href="${helpuri}cross-site-vulnerability/" target="_blank">$T('explain-disableApikeyWarn')</a>
<!--#if $lang_list#-->
<br/><br/>
<strong>$T('opt-language'):</strong><br/>
$T('explain-language')<br/>
<select name="language">
<!--#for $webline in $lang_list#-->
<!--#if $webline[0].lower() == $language.lower()#-->
<option value="$webline[0]" selected>$webline[1]</option>
<!--#else#-->
<option value="$webline[0]">$webline[1]</option>
<!--#end if#-->
<!--#end for#-->
</select>
<!--#end if#-->
</fieldset>
</div>
<fieldset class="EntryFieldSet">
<legend>$T('webAuth')</legend>
<strong>$T('opt-web_username'):</strong><br>
$T('explain-web_username')<br>
<input type="text" name="username" value="$username">
<br>
<br>
<strong>$T('opt-web_password')</strong><br>
$T('explain-web_password')<br>
<input type="password" name="password" value="$password">
</fieldset>
<div class="EntryBlock">
<fieldset class="EntryFieldSet">
<legend>$T('httpsSupport')</legend>
<i>$T('restartRequired')</i><br/><br/>
<label><input type="checkbox" name="enable_https" value="1" <!--#if $enable_https > 0 then 'checked="1"' else ""#--> <!--#if int($have_ssl) == 0 then "disabled" else ""#--> />
<strong>$T('opt-enable_https')<!--#if int($have_ssl) == 0 then " "+$T('opt-notInstalled') else ""#--></strong></label><br/>
$T('explain-enable_https')<br>
<br/>
<strong>$T('opt-https_port'):</strong><br>
$T('explain-https_port')<br>
<input type="text" name="https_port" value="$https_port">
<br/>
<br/>
<strong>$T('opt-https_cert'):</strong><br/>
$T('explain-https_cert')<br/>
<input type="text" name="https_cert" value="$https_cert">
<br/>
<br/>
<strong>$T('opt-https_key'):</strong><br/>
$T('explain-https_key')<br/>
<input type="text" name="https_key" value="$https_key">
</fieldset>
</div>
<div class="EntryBlock">
<fieldset class="EntryFieldSet">
<legend>$T('tuning')</legend>
<strong>$T('opt-refresh_rate'):</strong><br>
$T('explain-refresh_rate')<br>
<input type="text" name="refresh_rate" value="$refresh_rate">
<br>
<br>
<strong>$T('opt-bandwidth_max'):</strong><br>
$T('explain-bandwidth_max')<br>
<input type="text" name="bandwidth_max" value="$bandwidth_max">
<br>
<br>
<strong>$T('opt-bandwidth_perc'):</strong><br>
$T('explain-bandwidth_perc')<br>
<input type="text" name="bandwidth_perc" value="$bandwidth_perc">
<br>
<br>
<strong>$T('opt-cache_limitstr'):</strong><br>
$T('explain-cache_limitstr')<br>
<input type="text" name="cache_limit" value="$cache_limit">
<br>
<br>
<strong>$T('opt-cleanup_list'):</strong><br>
$T('explain-cleanup_list')<br><br>
<input type="text" name="cleanup_list" value="$cleanup_list">
<input type="hidden" name="session" value="$session">
</fieldset>
</div>
<p>
<input type="submit" value="$T('button-saveChanges')">
<!--#if $restart_req#-->
<input type="submit" onclick="this.form.action='../restart'; this.form.submit(); return false;" value="$T('button-restart')"/>
<!--#end if#-->
</p>
</form>
</table>
<!--#include $webdir + "/inc_bottom.tmpl"#-->

94
interfaces/Classic/templates/config_notify.tmpl

@ -1,94 +0,0 @@
<!--#set global $topmenu="config"#-->
<!--#set global $statpath="../.."#-->
<!--#set global $helpsubject="Configure+Notifications-0-7"#-->
<!--#include $webdir + "/inc_top.tmpl" #-->
<!--#set global $submenu="email"#-->
<!--#include $webdir + "/inc_cmenu.tmpl"#-->
<h2>$T('configEmail')</h2>
<form action="saveEmail" method="post" autocomplete="off">
<div class="EntryBlock">
<fieldset class="EntryFieldSet">
<legend>$T('emailOptions')</legend>
<strong>$T('opt-email_endjob')</strong><br/>
<input type="radio" name="email_endjob" value="0" <!--#if $email_endjob == "0" then "checked=1" else ""#--> /> $T('email-never')
<input type="radio" name="email_endjob" value="1" <!--#if $email_endjob == "1" then "checked=1" else ""#--> /> $T('email-always')
<input type="radio" name="email_endjob" value="2" <!--#if $email_endjob == "2" then "checked=1" else ""#--> /> $T('email-errorOnly')
<br/><br/>
<label><input type="checkbox" name="email_full" value="1" <!--#if $email_full != "0" then "checked=1" else ""#--> /> <strong>$T('opt-email_full'):</strong></label><br>
$T('explain-email_full')<br/>
<br/>
<label><input type="checkbox" name="email_rss" value="1" <!--#if $email_rss != "0" then "checked=1" else ""#--> /> <strong>$T('opt-email_rss'):</strong></label><br>
$T('explain-email_rss')<br/>
<strong>$T('opt-email_dir'):</strong><br/>
$T('explain-email_dir')<br/>
<input type="text" size="40" name="email_dir" value="$email_dir">
</fieldset>
</div>
<fieldset class="EntryFieldSet">
<legend>$T('emailAccount')</legend>
<strong>$T('opt-email_server'):</strong><br>
$T('explain-email_server').<br>
<input type="text" size="35" name="email_server" value="$email_server">
<br>
<br>
<strong>$T('opt-email_to'):</strong><br>
$T('explain-email_to')<br>
<input type="text" size="35" name="email_to" value="$email_to">
<br>
<br>
<strong>$T('opt-email_from'):</strong><br>
$T('explain-email_from')<br>
<input type="text" size="35" name="email_from" value="$email_from">
<br>
<br>
<strong>$T('opt-email_account'):</strong><br>
$T('explain-email_account')<br>
<input type="text" size="35" name="email_account" value="$email_account">
<br>
<br>
<strong>$T('opt-email_pwd'):</strong><br>
$T('explain-email_pwd')<br>
<input type="password" size="35" name="email_pwd" value="$email_pwd">
</fieldset>
<!--#if $have_growl or $have_ntfosd#-->
<fieldset class="EntryFieldSet">
<legend>$T('growlSettings')</legend>
<!--#if $have_ntfosd#-->
<label><input type="checkbox" name="ntfosd_enable" value="1" <!--#if $ntfosd_enable != "0" then "checked=1" else ""#--> /> <strong>$T('opt-ntfosd_enable'):</strong></label><br>
$T('explain-ntfosd_enable')
<br/>
<br/>
<!--#end if#-->
<!--#if $have_growl#-->
<label><input type="checkbox" name="growl_enable" value="1" <!--#if $growl_enable != "0" then "checked=1" else ""#--> /> <strong>$T('opt-growl_enable'):</strong></label><br>
$T('explain-growl_enable')
<br/>
<br/>
<strong>$T('opt-growl_server'):</strong><br>
$T('explain-growl_server')<br>
<input type="text" size="35" name="growl_server" value="$growl_server">
<br>
<br>
<strong>$T('opt-growl_password'):</strong><br>
$T('explain-growl_password')<br>
<input type="password" size="35" name="growl_password" value="$growl_password">
</fieldset>
<!--#end if#-->
<!--#end if#-->
</div>
<input type="hidden" name="session" value="$session">
<p><input type="submit" value="$T('button-saveChanges')">&nbsp;&nbsp;
<input type="button" onclick="if (confirm('$T('askTestEmail').replace("'","`") ')) { this.form.action='testmail?session=$session&'; this.form.submit(); return false;}" value="$T('link-testEmail')"/>
<input type="button" onclick="this.form.action='testnotification?session=$session&'; this.form.submit(); return false;"value="$T('testNotify')"/>
</p>
</form>
<!--#if $lastmail#-->
$T('emailResult') = <b>$lastmail</b>
<!--#end if#-->
<!--#include $webdir + "/inc_bottom.tmpl"#-->

381
interfaces/Classic/templates/config_rss.tmpl

@ -1,381 +0,0 @@
<!--#set global $topmenu="config"#-->
<!--#set global $statpath="../.."#-->
<!--#set global $helpsubject="Configure+RSS-0-7"#-->
<!--#include $webdir + "/inc_top.tmpl"#-->
<!--#set global $submenu="rss"#-->
<!--#include $webdir + "/inc_cmenu.tmpl"#-->
<h2><a href="../rss">$T('configRSS')</a></h2>
<!--#if $active_feed#-->
<!--#set $feed = $active_feed#-->
<div class="EntryBlock">
<form action="upd_rss_feed" method="post">
<fieldset class="EntryFieldSet">
<legend <!--#if $rss[$feed]['enable'] then 'class="feedEnabled"' else 'class="feedDisabled"'#-->><input type="checkbox" onclick="this.form.action='toggle_rss_feed?session=$session'; this.form.submit(); return false;" name="enable" <!--#if $rss[$feed]['enable'] then "CHECKED" else "" #-->/>
$T('feed') $feed</legend>
<input type="text" size="105" name="uri" value="$rss[$feed]['uri']"/>
<input type="button" onclick="if (confirm('$T('confirm').replace("'","`") ')) { this.form.action='del_rss_feed?session=$session&'; this.form.submit(); return false;}" value="$T('button-delFeed')"/>
<input type="button" onclick="this.form.action='test_rss_feed?session=$session&'; this.form.submit(); return false;" value="$T('button-preFeed')"/>
<input type="button" onclick="this.form.action='download_rss_feed?session=$session&'; this.form.submit(); return false;" value="$T('button-forceFeed')"/>
<br/><br/>
<!--#if $rss[$feed]['pick_cat']#-->
<select name="cat">
<optgroup label="$T('category')">
<!--#for $ct in $cat_list#-->
<option value="$ct" <!--#if $ct == $rss[$feed]['cat'] then "selected" else ""#-->>$Tspec($ct)</option>
<!--#end for#-->
</optgroup>
</select>
<!--#end if#-->
<select name="pp">
<optgroup label="$T('pp')">
<option value="" <!--#if $rss[$feed]['pp'] == "" then 'selected' else ''#-->>$T('default')</option>
<option value="0" <!--#if $rss[$feed]['pp'] == "0" then 'selected' else ''#-->>$T('pp-none')</option>
<option value="1" <!--#if $rss[$feed]['pp'] == "1" then 'selected' else ''#-->>$T('pp-repair')</option>
<option value="2" <!--#if $rss[$feed]['pp'] == "2" then 'selected' else ''#-->>$T('pp-unpack')</option>
<option value="3" <!--#if $rss[$feed]['pp'] == "3" then 'selected' else ''#-->>$T('pp-delete')</option>
</optgroup>
</select>
<!--#if $rss[$feed]['pick_script']#-->
<select name="script">
<optgroup label="$T('script')">
<!--#for $sc in $script_list#-->
<option value="$sc" <!--#if $sc == $rss[$feed]['script'] then "selected" else ""#-->>$Tspec($sc)</option>
<!--#end for#-->
</optgroup>
</select>
<!--#end if#-->
<select name="priority">
<optgroup label="$T('priority')">
<option value="-100" <!--#if $rss[$feed]['priority'] == -100 then 'selected' else ''#-->>$T('default')</option>
<option value="2" <!--#if $rss[$feed]['priority'] == 2 then 'selected' else ''#-->>$T('pr-force')</option>
<option value="1" <!--#if $rss[$feed]['priority'] == 1 then 'selected' else ''#-->>$T('pr-high')</option>
<option value="0" <!--#if $rss[$feed]['priority'] == 0 then 'selected' else ''#-->>$T('pr-normal')</option>
<option value="-1" <!--#if $rss[$feed]['priority'] == -1 then 'selected' else ''#-->>$T('pr-low')</option>
<option value="-2" <!--#if $rss[$feed]['priority'] == -2 then 'selected' else ''#-->>$T('pr-paused')</option>
</optgroup>
</select>
<input type="hidden" name="feed" value="$feed"/>
<input type="hidden" name="session" value="$session">
<input type="submit" value="$T('button-save')"/>
<br />
</form>
<br/><br/>
<table>
<tr>
<th>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;</th>
<th>&nbsp;</th>
<th>$T('rss-order')</th>
<th>$T('rss-type')</th>
<th>$T('rss-filter')</th>
<!--#if $rss[$feed]['pick_cat']#--><th>$T('category')</th><!--#end if#-->
<th>Mode</th>
<!--#if $rss[$feed]['pick_script']#--><th>$T('script')</th><!--#end if#-->
<th>$T('priority')</th>
<th></th>
</tr>
<form action="upd_rss_filter" method="get">
<tr class="odd">
<td></td>
<td><input type="checkbox" name="enabled" value="1" checked="checked" /></td>
<td></td>
<td>
<select name="filter_type">
<option value="A" selected /> $T('rss-accept')</option>
<option value="M" /> $T('rss-must')</option>
<option value="R" /> $T('rss-reject')</option>
<option value="C" /> $T('rss-mustcat')</option>
</select>
</td>
<td><input type="text" size="60" name="filter_text" value=""></td>
<!--#if $rss[$feed]['pick_cat']#-->
<td>
<select name="cat">
<!--#for $ct in $cat_list#-->
<option value="$ct" <!--#if $ct == "Default" then "selected" else ""#-->>$Tspec($ct)</option>
<!--#end for#-->
</select>
</td>
<!--#end if#-->
<td>
<select name="pp">
<option value="" selected>$T('default')</option>
<option value="0">$T('pp-none')</option>
<option value="1">$T('pp-repair')</option>
<option value="2">$T('pp-unpack')</option>
<option value="3">$T('pp-delete')</option>
</select>
</td>
<!--#if $rss[$feed]['pick_script']#-->
<td>
<select name="script">
<!--#for $sc in $script_list#-->
<option value="$sc" <!--#if $sc == "Default" then "selected" else ""#-->>$Tspec($sc)</option>
<!--#end for#-->
</select>
</td>
<td>
<select name="priority">
<option value="-100" selected>$T('default')</option>
<option value="2">$T('pr-force')</option>
<option value="1">$T('pr-high')</option>
<option value="0">$T('pr-normal')</option>
<option value="-1">$T('pr-low')</option>
<option value="-2">$T('pr-paused')</option>
</select>
</td>
<!--#end if#-->
<input type="hidden" value="$rss[$feed]['filtercount']" name="index">
<input type="hidden" value="$feed" name="feed">
<input type="hidden" name="session" value="$session">
<td><input type="submit" value="$T('button-save')"></td>
</tr>
</form>
<!--#set $fnum = 0#-->
<!--#for $filter in $rss[$feed].filters#-->
<tr class="odd">
<td>
<form action="del_rss_filter" method="post">
<input type="hidden" value="$fnum" name="index">
<input type="hidden" value="$feed" name="feed">
<input type="hidden" name="session" value="$session">
<input type="submit" value="$T('rss-delFilter')"></form>
</td>
<form action="upd_rss_filter" method="get">
<td>
<input type="checkbox" name="enabled" value="1" <!--#if $filter[6] == '1' then 'checked="checked"' else ""#--> />
</td>
<td>
<input type="text" size="3" name="new_index" value=$fnum>
</td>
<td>
<select name="filter_type">
<option value="A" <!--#if $filter[3] == "A" then "selected" else ""#--> /> $T('rss-accept')</option>
<option value="M" <!--#if $filter[3] == "M" then "selected" else ""#--> /> $T('rss-must')</option>
<option value="R" <!--#if $filter[3] == "R" then "selected" else ""#--> /> $T('rss-reject')</option>
<option value="C" <!--#if $filter[3] == "C" then "selected" else ""#--> /> $T('rss-mustcat')</option>
</select>
</td>
<td><input type="text" size="60" name="filter_text" value="$filter[4]"/></td>
<!--#if $rss[$feed]['pick_cat']#-->
<td>
<select name="cat">
<!--#for $ct in $cat_list#-->
<option value="$ct" <!--#if $ct == $filter[0] then "selected" else ""#-->>$Tspec($ct)</option>
<!--#end for#-->
</select>
</td>
<!--#end if#-->
<td>
<select name="pp">
<option value="" <!--#if $filter[1] == "0" then 'selected' else ''#-->>$T('default')</option>
<option value="0" <!--#if $filter[1] == "0" then 'selected' else ''#-->>$T('pp-none')</option>
<option value="1" <!--#if $filter[1] == "1" then 'selected' else ''#-->>$T('pp-repair')</option>
<option value="2" <!--#if $filter[1] == "2" then 'selected' else ''#-->>$T('pp-unpack')</option>
<option value="3" <!--#if $filter[1] == "3" then 'selected' else ''#-->>$T('pp-delete')</option>
</select>
</td>
<!--#if $rss[$feed]['pick_script']#-->
<td>
<select name="script">
<!--#for $sc in $script_list#-->
<option value="$sc" <!--#if $sc == $filter[2] then "selected" else ""#-->>$Tspec($sc)</option>
<!--#end for#-->
</select>
</td>
<!--#end if#-->
<td>
<select name="priority">
<option value="-100" <!--#if $filter[5] == "-100" or $filter[4] == "" then 'selected' else ''#-->>$T('default')</option>
<option value="2" <!--#if $filter[5] == "2" then "selected" else ""#-->>$T('pr-force')</option>
<option value="1" <!--#if $filter[5] == "1" then "selected" else ""#-->>$T('pr-high')</option>
<option value="0" <!--#if $filter[5] == "0" then "selected" else ""#-->>$T('pr-normal')</option>
<option value="-1" <!--#if $filter[5] == "-1" then "selected" else ""#-->>$T('pr-low')</option>
<option value="-2" <!--#if $filter[5] == "-2" then "selected" else ""#-->>$T('pr-paused')</option>
</select>
</td>
<td>
<input type="hidden" name="index" value="$fnum"/>
<input type="hidden" name="feed" value="$feed"/>
<input type="hidden" name="session" value="$session">
<input type="submit" value="$T('button-save')"/>
<!--#if not $rss[$feed].filter_states[$fnum]#-->&nbsp;&nbsp;$T('Incorrect filter')<!--#end if#-->
</td>
</form>
</tr>
<!--#set $fnum = $fnum+1#-->
<!--#end for#-->
</table>
</div>
</fieldset>
<!--#if $error#-->
<br/><br/><b>$error</b><br/><br/>
<!--#end if#-->
<h3>$T('rss-matched')</h3>
<table id="catTable">
<tr>
<th>&nbsp;</th>
<th>&nbsp;$T('rss-skip')&nbsp;</th>
<th>&nbsp;$T('rss-filter')&nbsp;</th>
<th>$T('sort-title')</th>
</tr>
<!--#set $odd = False#-->
<!--#for $job in $matched#-->
<!--#set $odd = not $odd#-->
<tr class="<!--#if $odd then "odd" else "even"#-->">
<td><form action="download" method="get">
<input type="hidden" name="url" value="$job[0]"/>
<input type="hidden" name="nzbname" value="$job[4]"/>
<input type="hidden" value="$feed" name="feed"/>
<input type="hidden" name="session" value="$session">
<input type="submit" value="$T('link-download')">
</form>
</td>
<td>$job[2]</td>
<td>$job[3]</td>
<td>$job[1]</td>
</tr>
<!--#end for#-->
</table>
<h3>$T('rss-notMatched')</h3>
<table id="catTable">
<tr>
<th>&nbsp;</th>
<th>&nbsp;$T('rss-skip')&nbsp;</th>
<th>&nbsp;$T('rss-filter')&nbsp;</th>
<th>$T('sort-title')</th>
</tr>
<!--#set $odd = False#-->
<!--#for $job in $unmatched#-->
<!--#set $odd = not $odd#-->
<tr class="<!--#if $odd then "odd" else "even"#-->">
<td><form action="download" method="get">
<input type="hidden" name="url" value="$job[0]"/>
<input type="hidden" name="nzbname" value="$job[4]"/>
<input type="hidden" value="$feed" name="feed"/>
<input type="hidden" name="session" value="$session">
<input type="submit" value="$T('link-download')">
</form>
</td>
<td>$job[2]</td>
<td>$job[3]</td>
<td>$job[1]</td>
</tr>
<!--#end for#-->
</table>
<h3>$T('rss-done')</h3>
<!--#if $downloaded#-->
<form action="clean_rss_jobs" method="get">
<input type="hidden" value="$feed" name="feed"/>
<input type="hidden" name="session" value="$session">
<input type="submit" value="$T('button-clear')">
</form><br/>
<!--#end if#-->
<table id="catTable">
<tr>
<th>$T('sort-title')</th>
</tr>
<!--#set $odd = False#-->
<!--#for $job in $downloaded#-->
<!--#set $odd = not $odd#-->
<tr class="<!--#if $odd then "odd" else "even"#-->">
<td>$job</td>
</tr>
<!--#end for#-->
</table>
<!--#else#-->
<div class="EntryBlock">
<form action="add_rss_feed" method="post">
<fieldset class="EntryFieldSet">
<legend>$T('newFeedURI')</legend>
<input type="text" size="10" name="feed" value="$feed"/>&nbsp;
<input type="text" size="104" name="uri" value=""/><br/><br/>
<input type="hidden" name="session" value="$session">
<input type="submit" value="$T('button-add')"/>
</fieldset>
</form>
</div>
<p>$T('explain-RSS')</p>
<div class="EntryBlock">
<form action="save_rss_rate" method="post">
<fieldset class="EntryFieldSet">
<legend>$T('opt-rss_rate')</legend>
<input type="text" name="rss_rate" value="$rss_rate">
<input type="hidden" name="session" value="$session">
<input type="submit" value="$T('button-save')"/>
<br/>
$T('explain-rss_rate')
</fieldset>
</form>
</div>
<div class="EntryBlock">
<form action="rss_now" method="post">
<fieldset class="EntryFieldSet">
<legend>RSS</legend>
<input type="hidden" name="session" value="$session">
<input type="submit" value="$T('button-rssNow')"/>
<br/>
&nbsp;
</fieldset>
</form>
</div>
<table id="catTable">
<tr>
<th></th>
<th>$T('enabled')</th>
<th>$T('feed')</th>
<th>URL</th>
</tr>
<!--#set $odd = False#-->
<!--#for $feed in sorted($rss.keys(), cmp=lambda x,y: cmp(x.lower(), y.lower()))#-->
<!--#set $odd = not $odd#-->
<tr class="<!--#if $odd then "odd" else "even"#-->">
<td><form action="del_rss_feed" method="get">
<input type="hidden" name="session" value="$session">
<input type="hidden" value="$feed" name="feed">
<input type="button" onclick="if (confirm('$T('confirm').replace("'","`") ')) { this.form.action='del_rss_feed?session=$session&'; this.form.submit(); return false;}" value="$T('button-del')"/>
</form>
</td>
<td><form action="upd_rss_feed" method="post">
<input type="hidden" name="session" value="$session">
<input type="hidden" value="$feed" name="feed">
<input type="hidden" value="1" name="table">
<input type="checkbox" onclick="this.form.action='toggle_rss_feed?session=$session'; this.form.submit(); return false;" name="enable" <!--#if $rss[$feed]['enable'] then "CHECKED" else "" #-->/>
</form>
</td>
<td><a href="?feed=$rss[$feed]['link']">$feed</a></td>
<td>$rss[$feed]['uri']</td>
</tr>
<!--#end for#-->
</table>
<!--#end if#-->
<!--#include $webdir + "/inc_bottom.tmpl"#-->

71
interfaces/Classic/templates/config_scheduling.tmpl

@ -1,71 +0,0 @@
<!--#set global $topmenu="config"#-->
<!--#set global $statpath="../.."#-->
<!--#set global $helpsubject="Configure+Scheduling-0-7"#-->
<!--#include $webdir + "/inc_top.tmpl"#-->
<!--#set global $submenu="scheduling"#-->
<!--#include $webdir + "/inc_cmenu.tmpl"#-->
<h2>$T('configSchedule')</h2>
<div class="EntryBlock">
<form action="addSchedule" method="post">
<fieldset class="EntryFieldSet">
<legend>$T('addSchedule')</legend>
<%import time
t = time.localtime()
hour = t[3]
if hour != 23:
hour += 1
else:
hour = 0 %>
$T('hour'):<br>
<select name="hour">
<!--#for $i in range(24)#-->
<option value="$i" <!--#if hour == i then "selected=1" else ""#-->> $i</option>
<!--#end for#-->
</select>
:
<select name="minute">
<!--#for $i in range(60)#-->
<option value="$i">$i
<!--#end for#-->
</select>
<br>$T('sch-frequency'): <br>
<input type="checkbox" name="daysofweek" value="1">$T('monday')<br/>
<input type="checkbox" name="daysofweek" value="2">$T('tuesday')<br/>
<input type="checkbox" name="daysofweek" value="3">$T('wednesday')<br/>
<input type="checkbox" name="daysofweek" value="4">$T('thursday')<br/>
<input type="checkbox" name="daysofweek" value="5">$T('friday')<br/>
<input type="checkbox" name="daysofweek" value="6">$T('saturday')<br/>
<input type="checkbox" name="daysofweek" value="7">$T('sunday')<br/>
<br>$T('sch-action'):<br>
<select name="action">
<!--#for $action in $actions#-->
<option value="$action">$actions_lng[$action]
<!--#end for#-->
</select>
<br>$T('sch-arguments'):<br>
<input type="text" size="20" name="arguments" value="">
<input type="hidden" name="session" value="$session">
<p><input type="submit" value="$T('button-addSchedule')"></p>
</fieldset>
</form>
</div>
<h3>$T('currentSchedules'):</h3>
<div class="EntryBlock">
<!--#set $schednum = 0#-->
<!--#for $line in $schedlines#-->
<form action="delSchedule" method="post">
<fieldset class="EntryFieldSet">
$T('sch-task') $taskinfo[$schednum][0]: <strong>$taskinfo[$schednum][1]:$taskinfo[$schednum][2]</strong> - $taskinfo[$schednum][3] - $taskinfo[$schednum][4]
<!--#set $schednum += 1#-->
<input type="hidden" name="line" value="$line">
<input type="hidden" name="session" value="$session">
<input type="submit" value="$T('button-delSchedule')">
</fieldset>
</form><br />
<!--#end for#-->
</div>
<!--#include $webdir + "/inc_bottom.tmpl"#-->

71
interfaces/Classic/templates/config_server.tmpl

@ -1,71 +0,0 @@
<!--#set global $topmenu="config"#-->
<!--#set global $statpath="../.."#-->
<!--#set global $helpsubject="Configure+Servers-0-7"#-->
<!--#include $webdir + "/inc_top.tmpl"#-->
<!--#set global $submenu="servers"#-->
<!--#include $webdir + "/inc_cmenu.tmpl"#-->
<h2>$T('configServer')</h2>
<div class="EntryBlock">
<form action="addServer" method="post" autocomplete="off">
<fieldset class="EntryFieldSet">
<legend>$T('addServer')</legend>
$T('srv-host'):<br><input type="text" size="25" name="host"><br>
$T('srv-port'):<br><input type="text" size="25" name="port"><br>
$T('srv-username'):<br><input type="text" size="25" name="username"><br>
$T('srv-password'):<br><input type="password" size="25" name="password"><br>
$T('srv-timeout'):<br><input type="text" size="25" name="timeout" value="120"><br>
$T('srv-connections'):<br><input type="text" size="25" name="connections"><br>
$T('srv-retention') ($T('days')):<br><input type="text" size="25" name="retention"><br>
<!--#if int($have_ssl) == 0#-->
$T('srv-ssl') $T('opt-notInstalled')
<!--#else#-->
<input type="checkbox" name="ssl" value="1" <!--#if int($have_ssl) == 0 then "disabled" else ""#-->>&nbsp;$T('srv-ssl')<br/>
<!--#end if#-->
<input type="checkbox" name="fillserver" value="1">&nbsp;$T('srv-fillserver')<br>
<input type="checkbox" name="optional" value="1">&nbsp;$T('srv-optional')<br>
<input type="checkbox" name="enable" value="1" checked="1">&nbsp;$T('srv-enable')<br>
<input type="hidden" name="session" value="$session">
<p><input type="submit" value="$T('button-addServer')"></p>
</fieldset>
</form>
<!--#set $slist = $servers.keys()#-->
<!--#$slist.sort()#-->
<!--#for $server in $slist#-->
<form action="saveServer" method="post" autocomplete="off">
<fieldset class="EntryFieldSet">
<legend>$server</legend>
$T('srv-host'):<br><input type="text" size="25" name="host" value="$servers[$server]['host']"><br>
$T('srv-port'):<br><input type="text" size="25" name="port" value="$servers[$server]['port']"><br>
$T('srv-username'):<br><input type="text" size="25" name="username" value="$servers[$server]['username']"><br>
$T('srv-password'):<br><input type="password" size="25" name="password" value="$servers[$server]['password']"><br>
$T('srv-timeout'):<br><input type="text" size="25" name="timeout" value="$servers[$server]['timeout']"><br>
$T('srv-connections'):<br><input type="text" size="25" name="connections" value="$servers[$server]['connections']"><br>
$T('srv-retention'):<br><input type="text" size="25" name="retention" value="$servers[$server]['retention']"><br>
<!--#if int($have_ssl) == 0#-->
$T('srv-ssl') $T('opt-notInstalled')
<!--#else#-->
<input type="checkbox" name="ssl" value="1" <!--#if int($servers[$server]['ssl']) != 0 then "checked=1" else ""#-->/>&nbsp;$T('srv-ssl')<br/>
<!--#end if#-->
<input type="checkbox" name="fillserver" value="1" <!--#if int($servers[$server]['fillserver']) != 0 then "checked=1" else ""#--> />&nbsp;$T('srv-fillserver')<br/>
<input type="checkbox" name="optional" value="1" <!--#if int($servers[$server]['optional']) != 0 then "checked=1" else ""#--> />&nbsp;$T('srv-optional')<br/>
<input type="checkbox" name="enable" value="1" <!--#if int($servers[$server]['enable']) != 0 then "checked=1" else ""#--> />&nbsp;$T('srv-enable')<br/>
<input type="hidden" name="server" value="$server">
<input type="hidden" name="session" value="$session">
<p><input type="submit" value="$T('button-saveChanges')"></p>
<p><input type="submit" onclick="this.form.action='delServer'; this.form.submit(); return false;" value="$T('button-delServer')"></p>
<!--#if 'amounts' in $servers[$server]#-->
<table border="1">
<tr><td>$T('total')</td><td>$servers[$server]['amounts'][0]</td>
<td>$T('thisMonth')</td><td>$servers[$server]['amounts'][1]</td></tr>
<tr><td>$T('today')</td><td>$servers[$server]['amounts'][3]</td>
<td>$T('thisWeek')</td><td>$servers[$server]['amounts'][2]</td></tr>
</table>
<!--#end if#-->
</fieldset>
</form>
<!--#end for#-->
</div>
<!--#include $webdir + "/inc_bottom.tmpl"#-->

450
interfaces/Classic/templates/config_sorting.tmpl

@ -1,450 +0,0 @@
<!--#set global $topmenu="config"#-->
<!--#set global $statpath="../.."#-->
<!--#set global $helpsubject="Configure+Sorting-0-7"#-->
<!--#include $webdir + "/inc_top.tmpl"#-->
<!--#set global $submenu="sorting"#-->
<!--#include $webdir + "/inc_cmenu.tmpl"#-->
<script type="text/javascript">
function tvAdd(val){
var tv = document.getElementById('tvfoldername');
tv.value = tv.value + val;
previewtv();
}
function tvSet(val){
var tv = document.getElementById('tvfoldername');
tv.value = val;
previewtv();
}
function tvClear(){
var tv = document.getElementById('tvfoldername');
tv.value = '';
previewtv();
}
function previewtv(){
var input = document.getElementById('tvfoldername').value;
var slash = "\\";
input.toLowerCase()
input = input.replace(/%ext/g,'avi');
input = input.replace(/%sn/g,'$T("show-sp-name")');
input = input.replace(/%s\.n/g,'$T("show-dot-name")');
input = input.replace(/%s\_n/g,'$T("show-us-name")');
input = input.replace(/%0s/g,'01');
input = input.replace(/%s/g,'1');
input = input.replace(/%en/g,'$T("ep-sp-name")');
input = input.replace(/%e\.n/g,'$T("ep-dot-name")');
input = input.replace(/%e\_n/g,'$T("ep-us-name")');
input = input.replace(/%0e/g,'05');
input = input.replace(/%e/g,'5');
input = input.replace(/%fn/g,'$T("sort-File")');
input = input.replace(/%dn/g,'$T("sort-Folder")');
document.getElementById('previewtv').innerHTML = getOutput(input);
}
function getOutput(input){
var slash = "\\";
var com = document.getElementById('complete_dir').value;
// For some reason a simply replace() doesn't replace multiple / characters
// Work out whether we are using / or \
for (i=0; i<com.length; i++){
if (com[i] == "/") slash = "/";
}
// Replace / or \ with whatever complete_dir uses
for (i=0; i<input.length; i++){
if (input[i] == "/") {
input = input.replace("/",slash, "gi");
} else if (input[i] == "\\") {
input = input.replace("\\",slash, "gi");
}
}
// If the complete_dir ends in / or \, then strip that character
len = com.length
if (com.substring(len-1, len) == slash)
{
com = com.substring(0, len-1)
}
// If the pattern starts with absolute path, don't prepend default folder
if (input[0] == "/" || input[0] == slash || input[1] == ':') {
output = input;
} else {
output = com+slash+input;
}
return output
}
function movieAdd(val){
var tv = document.getElementById('moviefoldername');
tv.value = tv.value + val;
previewmovie();
}
function movieSet(val, val2){
var tv = document.getElementById('moviefoldername');
tv.value = val;
var tv2 = document.getElementById('movieextra');
tv2.value = val2;
previewmovie();
}
function movieClear(){
var tv = document.getElementById('moviefoldername');
tv.value = '';
previewmovie();
}
function movieClearExtra(){
var tv = document.getElementById('movieextra');
tv.value = '';
previewmovie();
}
function movieExtraFolder(value)
{
document.getElementById('movie_extra_folder').checked = value;
}
function previewmovie()
{
var input = document.getElementById('moviefoldername').value;
var input2 = document.getElementById('movieextra').value;
extra = input2.replace(/%1/g,'1');
var slash = "\\";
ext = extra + '.avi'
input = input.replace(/\.%ext/g,ext);
input = input.replace(/%ext/g,'avi');
input = input.replace(/%title/g,'$T("movie-sp-name")');
input = input.replace(/%\.title/g,'$T("movie-dot-name")');
input = input.replace(/%\_title/g,'$T("movie-us-name")');
input = input.replace(/%y/g,'2000');
input = input.replace(/%decade/g,'00');
input = input.replace(/%0decade/g,'2000');
input = input.replace(/%fn/g,'$T("sort-File")');
var regex = /\{([^\{]*)\}/g;
var str = input;
var result;
while ((result = regex.exec(str)) != null)
{
var lower = result[0].toLowerCase();
input = input.replace(result[0],lower);
}
input = input.replace(/{/g,'');
input = input.replace(/}/g,'');
document.getElementById('previewmovie').innerHTML = getOutput(input);
}
function dateSet(val){
var tv = document.getElementById('datefoldername');
tv.value = val;
previewdate();
}
function dateClear(){
var tv = document.getElementById('datefoldername');
tv.value = '';
previewdate();
}
function previewdate(){
var input = document.getElementById('datefoldername').value;
var slash = "\\";
input.toLowerCase()
input = input.replace(/%ext/g,'avi');
input = input.replace(/%t/g,'$T("show-sp-name")');
input = input.replace(/%\.t/g,'$T("show-dot-name")');
input = input.replace(/%\_t/g,'$T("show-us-name")');
input = input.replace(/%decade/g,'00');
input = input.replace(/%0decade/g,'2000');
input = input.replace(/%fn/g,'$T("sort-File")');
input = input.replace(/%desc/g,'$T("ep-sp-name")');
input = input.replace(/%\.desc/g,'$T("ep-dot-name")');
input = input.replace(/%\_desc/g,'$T("ep-us-name")');
input = input.replace(/%0d/g,'02');
input = input.replace(/%d/g,'2');
input = input.replace(/%0m/g,'01');
input = input.replace(/%m/g,'1');
input = input.replace(/%y/g,'2009');
document.getElementById('previewdate').innerHTML = getOutput(input);
}
function showDiv(id)
{
disp = (document.getElementById(id).style.display == "block") ? "none" : "block";
document.getElementById(id).style.display = disp;
}
</script>
<h2>$T('configSort')</h2>
<form action="saveSorting" method="post">
<div class="EntryBlock">
<fieldset class="EntryFieldSet">
<legend>$T('seriesSorting')</legend>
<input class="radio" type="checkbox" name="enable_tv_sorting" value="1" <!--#if $enable_tv_sorting > 0 then "checked=1" else ""#--> /> <strong>$T('opt-tvsort')</strong><br class="clear" />
<br class="clear" />
<strong>$T('affectedCat'):</strong>
<br class="clear" />
<select name="tv_cat" multiple="multiple" size=4 class="multiple_cats">
<!--#for $ct in $cat_list#-->
<option value="$ct" <!--#if $ct in $tv_categories then 'selected' else ''#--> >$Tspec($ct)</option>
<!--#end for#-->
</select>
<br class="clear" /><br class="clear" />
<a href="#toggle" onclick="javascript:showDiv('Keytable')">$T('sort-legenda')</a>
<div id="Keytable">
<div class="row">
<span class="heading1">$T('sort-meaning')</span>
<span class="heading2">$T('sort-pattern')</span>
<span class="heading3">$T('sort-result')</span>
</div>
<div class="row">
<span class="tripleheight">$T('show-name')</span>
<span class="pattern">%sn</span>
<span class="result">$T('show-sp-name')</span>
<br />
<span class="pattern">%s.n</span>
<span class="result">$T('show-dot-name')</span>
<br />
<span class="pattern">%s_n</span>
<span class="result">$T('show-us-name')</span>
</div>
<div class="row">
<span class="doubleheight">$T('show-seasonNum')</span>
<span class="pattern">%s</span>
<span class="result">1</span>
<br />
<span class="pattern">%0s</span>
<span class="result">01</span>
</div>
<div class="row">
<span class="doubleheight">$T('show-epNum')</span>
<span class="pattern">%e</span>
<span class="result">5</span>
<br />
<span class="pattern">%0e</span>
<span class="result">05</span>
</div>
<div class="row">
<span class="tripleheight">$T('ep-name')</span>
<span class="pattern">%en</span>
<span class="result">$T('ep-sp-name')</span>
<br />
<span class="pattern">%e.n</span>
<span class="result">$T('ep-dot-name')</span>
<br />
<span class="pattern">%e_n</span>
<span class="result">$T('ep-us-name')</span>
</div>
<div class="row">
<span class="normalheight">$T('fileExt')</span>
<span class="pattern">%ext</span>
<span class="result">avi</span>
</div>
<div class="row">
<span class="normalheight">$T('orgFilename')</span>
<span class="pattern">%fn</span>
<span class="result">$T("sort-File")</span>
</div>
<div class="row">
<span class="normalheight">$T('orgDirname')</span>
<span class="pattern">%dn</span>
<span class="result">$T("sort-Folder")</span>
</div>
<div class="row">
<span class="normalheight">$T('lowercase')</span>
<span class="pattern">{$T('TEXT')}</span>
<span class="result">$T('text')</span>
</div>
<!--
<span class="">$T('orgFilename')</span>
<span class="">%fn</span>
<span class="">$T('ep-name')</span>
<br />-->
</div><br class="clear" />
<strong>$T('sortString'):</strong><br class="clear" />
<input type="text" style="width:400px" size="80" id="tvfoldername" name="tv_sort_string" value="$tv_sort_string" onkeyup="javascript:previewtv()"><input type="button" style="width:100px;" onclick="tvClear()" value="$T('button-clear')"/><br class="clear" />
<strong>$T('presetSort'):</strong><br class="clear" />
<input type="button" onclick="tvSet('%sn/Season %s/%sn - %sx%0e - %en.%ext')" value="$T('button-Season1x05')"/>
<input type="button" onclick="tvSet('%sn/Season %s/%sn - S%0sE%0e - %en.%ext')" value="$T('button-SeasonS01E05')"/>
<input type="button" onclick="tvSet('%sn/%sx%0e - %en/%sn - %sx%0e - %en.%ext')" value="$T('button-Ep1x05')"/>
<input type="button" onclick="tvSet('%sn/S%0sE%0e - %en/%sn - S%0sE%0e - %en.%ext')" value="$T('button-EpS01E05')"/><br class="clear" />
<br class="clear" />
$T('example'): <span id="previewtv"></span>
<br class="clear" /><br class="clear" />
</fieldset>
<br />
<fieldset class="EntryFieldSet">
<legend>$T('genericSort')</legend>
<input id="complete_dir" type="hidden" value="$complete_dir" />
<input class="radio" type="checkbox" name="enable_movie_sorting" value="1" <!--#if $enable_movie_sorting > 0 then "checked=1" else ""#--> /> <strong>$T('opt-movieSort')</strong>
<br class="clear" /><br class="clear" />
<input class="radio" type="checkbox" name="movie_extra_folder" value="1" <!--#if $movie_extra_folder > 0 then "checked=1" else ""#--> /> <strong>$T('opt-movieExtra')</strong>
<br class="clear" /><br class="clear" />
<strong>$T('affectedCat'):</strong>
<br class="clear" />
<select name="movie_cat" multiple="multiple" size=4 class="multiple_cats">
<!--#for $ct in $cat_list#-->
<option value="$ct" <!--#if $ct in $movie_categories then 'selected' else ''#--> >$Tspec($ct)</option>
<!--#end for#-->
</select>
<br class="clear" /><br class="clear" />
<a href="#toggle" onclick="javascript:showDiv('Keytable2')">$T('sort-legenda')</a>
<div id="Keytable2">
<div class="row">
<span class="heading1">$T('sort-meaning')</span>
<span class="heading2">$T('sort-pattern')</span>
<span class="heading3">$T('sort-result')</span>
</div>
<div class="row">
<span class="tripleheight">$T('sort-title')</span>
<span class="pattern">%title</span>
<span class="result">$T('movie-sp-name')</span>
<br />
<span class="pattern">%.title</span>
<span class="result">$T('movie-dot-name')</span>
<br />
<span class="pattern">%_title</span>
<span class="result">$T('movie-us-name')</span>
</div>
<div class="row">
<span class="doubleheight">$T('year')</span>
<span class="pattern">%y</span>
<span class="result">2000</span>
</div>
<div class="row">
<span class="doubleheight">$T('extension')</span>
<span class="pattern">%ext</span>
<span class="result">avi</span>
</div>
<div class="row">
<span class="doubleheight">$T('partNumber')</span>
<span class="pattern">%1</span>
<span class="result">1</span>
</div>
<div class="row">
<span class="normalheight">$T('decade')</span>
<span class="pattern">%decade</span>
<span class="result">00</span>
</div>
<div class="row">
<span class="normalheight">$T('decade')</span>
<span class="pattern">%0decade</span>
<span class="result">2000</span>
</div>
<div class="row">
<span class="normalheight">$T('orgFilename')</span>
<span class="pattern">%fn</span>
<span class="result">$T('sort-File')</span>
</div>
<div class="row">
<span class="normalheight">$T('lowercase')</span>
<span class="pattern">{$T('TEXT')}</span>
<span class="result">$T('text')</span>
</div>
</div><br class="clear" /><br class="clear" />
<strong>$T('sortString'):</strong><br class="clear" />
<input type="text" style="width:400px" size="80" id="moviefoldername" name="movie_sort_string" value="$movie_sort_string" onkeyup="javascript:previewmovie()"><input type="button" onclick="movieClear()" style="width:100px;" value="$T('button-clear')"/><br class="clear" />
<strong>$T('multiPartLabel'):</strong><br class="clear" />
<input type="text" style="width:400px" size="80" id="movieextra" name="movie_sort_extra" value="$movie_sort_extra" onkeyup="javascript:previewmovie()"><input type="button" onclick="movieClearExtra()" style="width:100px;" value="$T('button-clear')"/><br class="clear" />
<strong>$T('presetSort'):</strong><br class="clear" />
<input type="button" onclick="movieSet('%title (%y)/%title (%y).%ext',' CD%1');movieExtraFolder(false)" value="$T('button-inFolders')"/>
<input type="button" onclick="movieSet('%title (%y).%ext',' CD%1');movieExtraFolder(true)" value="$T('button-noFolders')"/><br class="clear" />
<br class="clear" />
$T('example'): <span id="previewmovie"></span>
<br class="clear" /><br class="clear" />
</fieldset>
<br />
<fieldset class="EntryFieldSet">
<legend>$T('dateSorting')</legend>
<input class="radio" type="checkbox" name="enable_date_sorting" value="1" <!--#if $enable_date_sorting > 0 then "checked=1" else ""#--> /> <strong>$T('opt-dateSort')</strong><br class="clear" />
<br class="clear" />
<strong>$T('affectedCat'):</strong>
<br class="clear" />
<select name="date_cat" multiple="multiple" size=4 class="multiple_cats">
<!--#for $ct in $cat_list#-->
<option value="$ct" <!--#if $ct in $date_categories then 'selected' else ''#--> >$Tspec($ct)</option>
<!--#end for#-->
</select>
<br class="clear" /><br class="clear" />
<a href="#toggle" onclick="javascript:showDiv('Keytable3')">$T('sort-legenda')</a>
<div id="Keytable3">
<div class="row">
<span class="heading1">$T('sort-meaning')</span>
<span class="heading2">$T('sort-pattern')</span>
<span class="heading3">$T('sort-result')</span>
</div>
<div class="row">
<span class="tripleheight">$T('show-name')</span>
<span class="pattern">%t</span>
<span class="result">$T('show-sp-name')</span>
<br />
<span class="pattern">%.t</span>
<span class="result">$T('show-dot-name')</span>
<br />
<span class="pattern">%_t</span>
<span class="result">$T('show-us-name')</span>
</div>
<div class="row">
<span class="doubleheight">$T('year')</span>
<span class="pattern">%y</span>
<span class="result">2009</span>
</div>
<div class="row">
<span class="doubleheight">$T('month')</span>
<span class="pattern">%m</span>
<span class="result">1</span>
<br />
<span class="pattern">%0m</span>
<span class="result">01</span>
</div>
<div class="row">
<span class="tripleheight">$T('day-of-month')</span>
<span class="pattern">%d</span>
<span class="result">2</span>
<br />
<span class="pattern">%0d</span>
<span class="result">02</span>
<br />
</div>
<div class="row">
<span class="normalheight">$T('decade')</span>
<span class="pattern">%decade</span>
<span class="result">00</span>
</div>
<div class="row">
<span class="normalheight">$T('decade')</span>
<span class="pattern">%0decade</span>
<span class="result">2000</span>
</div>
<div class="row">
<span class="normalheight">$T('orgFilename')</span>
<span class="pattern">%fn</span>
<span class="result">$T('sort-File')</span>
</div>
<div class="row">
<span class="normalheight">$T('lowercase')</span>
<span class="pattern">{$T('TEXT')}</span>
<span class="result">$T('text')</span>
</div>
</div><br class="clear" />
<strong>$T('sortString'):</strong><br class="clear" />
<input type="text" style="width:400px" size="80" id="datefoldername" name="date_sort_string" value="$date_sort_string" onkeyup="javascript:previewdate()"><input type="button" style="width:100px;" onclick="dateClear()" value="$T('button-clear')"/><br class="clear" />
<strong>$T('presetSort'):</strong><br class="clear" />
<input type="button" onclick="dateSet('%t/%t - %y-%0m-%0d - %desc.%ext')" value="$T('button-ShowNameF')"/>
<input type="button" onclick="dateSet('%y-%0m/%t - %y-%0m-%0d - %desc.%ext')" value="$T('button-YMF')"/>
<input type="button" onclick="dateSet('%y-%0m-%0d/%t - %y-%0m-%0d - %desc.%ext')" value="$T('button-DailyF')"/><br class="clear" />
<br class="clear" />
$T('example'): <span id="previewdate"></span>
</fieldset>
</div><br>
<input type="hidden" name="session" value="$session">
<input type="submit" size="40" value="$T('button-saveChanges')">
</form>
<!--#include $webdir + "/inc_bottom.tmpl"#-->

189
interfaces/Classic/templates/config_switches.tmpl

@ -1,189 +0,0 @@
<!--#set global $topmenu="config"#-->
<!--#set global $statpath="../.."#-->
<!--#set global $helpsubject="Configure+Switches-0-7"#-->
<!--#include $webdir + "/inc_top.tmpl"#-->
<!--#set global $submenu="switches"#-->
<!--#include $webdir + "/inc_cmenu.tmpl"#-->
<h2>$T('switchesConfig')</h2>
<form action="saveSwitches" method="post">
<div class="EntryBlock">
<fieldset class="EntryFieldSet">
<legend>$T('processingSwitches')</legend>
<label><input type="checkbox" name="quick_check" value="1" <!--#if $quick_check > 0 then "checked=1" else ""#--> /> <strong>$T('opt-quick_check')</strong></label><br/>
$T('explain-quick_check')<br>
<br/>
<label><input type="checkbox" name="pre_check" value="1" <!--#if $pre_check > 0 then "checked=1" else ""#--> /> <strong>$T('opt-pre_check')</strong></label><br/>
$T('explain-pre_check')<br>
<br/>
<label><input type="checkbox" name="enable_unrar" value="1" <!--#if $enable_unrar > 0 then "checked=1" else ""#--> /> <strong>$T('opt-enable_unrar')</strong></label><br>
$T('explain-enable_unrar')<br>
<br>
<label><input type="checkbox" name="enable_unzip" value="1" <!--#if $enable_unzip > 0 then "checked=1" else ""#--> /> <strong>$T('opt-enable_unzip')</strong></label><br>
$T('explain-enable_unzip')<br>
<br>
<label><input type="checkbox" name="enable_filejoin" value="1" <!--#if $enable_filejoin > 0 then "checked=1" else ""#--> /> <strong>$T('opt-enable_filejoin')</strong></label><br>
$T('explain-enable_filejoin')<br>
<br>
<label><input type="checkbox" name="enable_tsjoin" value="1" <!--#if $enable_tsjoin > 0 then "checked=1" else ""#--> /> <strong>$T('opt-enable_tsjoin')</strong></label><br>
$T('explain-ts_join')<br>
<br>
<label><input type="checkbox" name="enable_par_cleanup" value="1" <!--#if $enable_par_cleanup > 0 then "checked=1" else ""#--> /> <strong>$T('opt-enable_par_cleanup')</strong></label><br>
$T('explain-enable_par_cleanup')<br>
<br>
<label><input type="checkbox" name="fail_on_crc" value="1" <!--#if $fail_on_crc > 0 then "checked=1" else ""#--> /> <strong>$T('opt-fail_on_crc')</strong></label><br>
$T('explain-fail_on_crc')<br>
<br>
<label><input type="checkbox" name="top_only" value="1" <!--#if $top_only > 0 then "checked=1" else ""#--> /> <strong>$T('opt-top_only')</strong></label><br>
$T('explain-top_only')<br/>
<br>
<label><input type="checkbox" name="safe_postproc" value="1" <!--#if $safe_postproc > 0 then "checked=1" else ""#--> /> <strong>$T('opt-safe_postproc')</strong></label><br>
$T('explain-safe_postproc')<br>
<br>
<label><input type="checkbox" name="pause_on_pwrar" value="1" <!--#if $pause_on_pwrar > 0 then "checked=1" else ""#--> /> <strong>$T('opt-pause_on_pwrar')</strong></label><br>
$T('explain-pause_on_pwrar')<br>
<br>
<label><input type="checkbox" name="unpack_check" value="1" <!--#if $unpack_check > 0 then "checked=1" else ""#--> /> <strong>$T('opt-unpack_check')</strong></label><br>
$T('explain-unpack_check')<br>
<br>
<strong>$T('opt-no_dupes'):</strong><br>
$T('explain-no_dupes')<br>
<input class="radio" type="radio" name="no_dupes" value="0" <!--#if $no_dupes == 0 then 'checked="1"' else ""#--> /> $T('nodupes-off')
<input class="radio" type="radio" name="no_dupes" value="1" <!--#if $no_dupes == 1 then 'checked="1"' else ""#--> /> $T('nodupes-ignore')
<input class="radio" type="radio" name="no_dupes" value="2" <!--#if $no_dupes == 2 then 'checked="1"' else ""#--> /> $T('nodupes-pause')
<br/><br/>
<label><input type="checkbox" name="sfv_check" value="1" <!--#if $sfv_check > 0 then "checked=1" else ""#--> /> <strong>$T('opt-sfv_check')</strong></label><br>
$T('explain-sfv_check')<br>
<br>
<label><input type="checkbox" name="folder_rename" value="1" <!--#if $folder_rename > 0 then "checked=1" else ""#--> /> <strong>$T('opt-folder_rename')</strong></label><br>
$T('explain-folder_rename')<br>
<br>
<br>
<strong>$T('opt-pre_script'):</strong><br>
$T('explain-pre_script')<br>
<select name="pre_script">
<!--#for $sc in $script_list#-->
<!--#if $sc.lower() == $pre_script.lower()#-->
<option value="$sc" selected>$Tspec($sc)</option>
<!--#else#-->
<option value="$sc">$Tspec($sc)</option>
<!--#end if#-->
<!--#end for#-->
</select>
<br>
<br>
<!--#if $nt#-->
<label><input type="checkbox" name="par2_multicore" value="1" <!--#if $par2_multicore > 0 then "checked=1" else ""#--> /> <strong>$T('opt-par2_multicore')</strong></label><br>
$T('explain-par2_multicore')<br>
<br>
<!--#end if#-->
<strong>$T('opt-par_option'):</strong><br/>
$T('explain-par_option')<br/>
<input type="text" name="par_option" value="$par_option"/>
<br>
<br>
<!--#if $have_nice#-->
<strong>$T('opt-nice'):</strong><br/>
$T('explain-nice')<br/>
<input type="text" name="nice" value="$nice"/>
<br>
<br>
<!--#end if#-->
<!--#if $have_ionice#-->
<strong>$T('opt-ionice'):</strong><br/>
$T('explain-ionice')<br/>
<input type="text" name="ionice" value="$ionice"/>
<br>
<br>
<!--#end if#-->
</fieldset>
<fieldset class="EntryFieldSet">
<legend>$T('otherSwitches')</legend>
<label><strong>$T('opt-max_art_tries')</strong></label><br>
$T('explain-max_art_tries')<br>
<input type="text" size=5" name="max_art_tries" value="$max_art_tries" />
<br><br>
<label><input type="checkbox" name="max_art_opt" value="1" <!--#if $max_art_opt > 0 then "checked=1" else ""#--> /> <strong>$T('opt-max_art_opt')</strong></label><br>
$T('explain-max_art_opt')<br>
<br>
<label><input type="checkbox" name="auto_disconnect" value="1" <!--#if $auto_disconnect > 0 then "checked=1" else ""#--> /> <strong>$T('opt-auto_disconnect')</strong></label><br>
$T('explain-auto_disconnect')<br>
<br>
<label><input type="checkbox" name="send_group" value="1" <!--#if $send_group > 0 then "checked=1" else ""#--> /> <strong>$T('opt-send_group')</strong></label><br>
$T('explain-send_group')<br>
<br>
<label><input type="checkbox" name="auto_sort" value="1" <!--#if $auto_sort > 0 then "checked=1" else ""#--> /> <strong>$T('opt-auto_sort')</strong></label><br>
$T('explain-auto_sort')<br>
<br>
<label><input type="checkbox" name="check_new_rel" value="1" <!--#if $check_new_rel > 0 then "checked=1" else ""#--> /> <strong>$T('opt-check_new_rel')</strong></label><br>
$T('explain-check_new_rel')<br>
<br>
<label><input type="checkbox" name="replace_spaces" value="1" <!--#if $replace_spaces > 0 then "checked=1" else ""#--> /> <strong>$T('opt-replace_spaces')</strong></label><br>
$T('explain-replace_spaces')<br>
<br>
<label><input type="checkbox" name="replace_dots" value="1" <!--#if $replace_dots > 0 then "checked=1" else ""#--> /> <strong>$T('opt-replace_dots')</strong></label><br>
$T('explain-replace_dots')<br>
<br>
<label><input type="checkbox" name="replace_illegal" value="1" <!--#if $replace_illegal > 0 then "checked=1" else ""#--> /> <strong>$T('opt-replace_illegal')</strong></label><br>
$T('explain-replace_illegal')<br>
<br>
<label><input type="checkbox" name="auto_browser" value="1" <!--#if $auto_browser > 0 then "checked=1" else ""#--> /> <strong>$T('opt-auto_browser')</strong></label><br>
$T('explain-auto_browser')<br>
<br>
<label><input type="checkbox" name="pause_on_post_processing" value="1" <!--#if $pause_on_post_processing > 0 then "checked=1" else ""#--> /> <strong>$T('opt-pause_on_post_processing')</strong></label><br>
$T('explain-pause_on_post_processing')<br>
<br/>
<!--#if $have_ampm#-->
<label><input type="checkbox" name="ampm" value="1" <!--#if $ampm > 0 then "checked=1" else ""#--> /> <strong>$T('opt-ampm')</strong></label><br>
$T('explain-ampm')<br>
<br/>
<!--#end if#-->
<strong>$T('opt-ignore_samples'):</strong><br>
$T('explain-ignore_samples')<br>
<input class="radio" type="radio" name="ignore_samples" value="0" <!--#if $ignore_samples == 0 then 'checked="1"' else ""#--> /> $T('igsam-off')
<input class="radio" type="radio" name="ignore_samples" value="1" <!--#if $ignore_samples == 1 then 'checked="1"' else ""#--> /> $T('igsam-del')
<input class="radio" type="radio" name="ignore_samples" value="2" <!--#if $ignore_samples == 2 then 'checked="1"' else ""#--> /> $T('igsam-not')
<br/>
<br/>
<input type="hidden" name="session" value="$session">
<strong>$T('opt-ssl_type'):</strong><br>
$T('explain-ssl_type')<br>
<select name="ssl_type">
<option value="v23" <!--#if $ssl_type == 'v23' then 'selected' else ''#--> >V23</option>
<option value="v2" <!--#if $ssl_type == 'v2' then 'selected' else ''#--> >V2</option>
<option value="v3" <!--#if $ssl_type == 'v3' then 'selected' else ''#--> >V3</option>
</select>
<br/>
</fieldset>
<fieldset class="EntryFieldSet">
<strong>$T('opt-quota_size'):</strong><br/>
$T('explain-quota_size')<br/>
<input type="text" name="quota_size" value="$quota_size"/>
<br>
<br>
<strong>$T('opt-quota_period'):</strong><br>
$T('explain-quota_period')<br>
<select name="ssl_type">
<option value="m" <!--#if $quota_period == 'm' then 'selected' else ''#--> >$T('month')</option>
<option value="w" <!--#if $quota_period == 'w' then 'selected' else ''#--> >$T('week')</option>
<option value="d" <!--#if $quota_period == 'd' then 'selected' else ''#--> >$T('day')</option>
<option value="x" <!--#if $quota_period == 'x' then 'selected' else ''#--> >$T('manual')</option>
</select>
<br/><br/>
<strong>$T('opt-quota_day'):</strong><br/>
$T('explain-quota_day')<br/>
<input type="text" name="quota_day" value="$quota_day"/>
<br>
<br>
<legend>$T('swtag-quota')</legend>
<label><input type="checkbox" name="quota_resume" value="1" <!--#if $quota_resume > 0 then "checked=1" else ""#--> /> <strong>$T('opt-quota_resume')</strong></label><br>
$T('explain-quota_resume')<br>
<br/>
</fieldset>
</div>
<p><input type="submit" value="$T('button-saveChanges')"></p>
</form>
<!--#include $webdir + "/inc_bottom.tmpl"#-->

100
interfaces/Classic/templates/history.tmpl

@ -1,100 +0,0 @@
<!--#set global $topmenu="history"#-->
<!--#set global $statpath=".."#-->
<!--#set global $helpsubject="GUI+History"#-->
<!--#include $webdir + "/inc_top.tmpl"#-->
<span class="SubMenu">
<a href="./purge?session=$session" onclick="return confirm('$T('purgeHistConf').replace("'","`") ');">$T('purgeHist')</a> |
<a href="./purge_failed?session=$session" onclick="return confirm('$T('purgeHistFailedConf').replace("'","`") ');">$T('purgeHistFailed')</a> |
<a href="./purge_failed?session=$session&del_files=1" onclick="return confirm('$T('purgeFailed-Files').replace("'","`") ');">$T('purgeFailed-Files')</a> |
<!--#if $isverbose#-->
<a href="./tog_verbose?session=$session">$T('hideDetails')</a> |
<!--#else#-->
<a href="./tog_verbose?session=$session">$T('showDetails')</a> |
<!--#end if#-->
<!--#if $failed_only#-->
<a href="./tog_failed_only?session=$session">$T('showAllHis')</a>
<!--#else#-->
<a href="./tog_failed_only?session=$session">$T('showFailedHis')</a>
<!--#end if#-->
</span>
<br>
<p>
<strong>$T('sizeHist'): $total_size&nbsp;&nbsp;|&nbsp;&nbsp;$T('today'): $day_size&nbsp;&nbsp;|&nbsp;&nbsp;
$T('thisWeek'): $week_size&nbsp;&nbsp;|&nbsp;&nbsp;$T('thisMonth'): $month_size
</strong>
</p>
<% import datetime %>
<% from sabnzbd.misc import time_format %>
<!--#if $lines#-->
<table id="historyTable">
<tr><th></th><th>$T('completed')</th><th>$T('name')</th><th>$T('size')</th><th>$T('status')</th><th></th></tr>
<!--#set $odd = False#-->
<!--#for $line in $lines #-->
<%
compl = datetime.datetime.fromtimestamp(float(line['completed'])).strftime(time_format('%Y-%m-%d %H:%M:%S'))
%>
<!--#set $odd = not $odd#-->
<tr class="<!--#if $odd then "odd" else "even"#-->">
<td><a class="verbosity_link" href="./tog_verbose?session=$session&jobs=$line.nzo_id">
<!--#if $line.show_details then '-' else '+'#-->
</a></td>
<td>$compl</td>
<td>$line.name<!--#if $line.action_line#--> - $line.action_line<!--#else if $line.fail_message#--> - <span class="fail_message">$line.fail_message</span><!--#end if#--></td>
<td>$line.size</td><td>$Tx('post-'+$line.status)</td>
<td>
<!--#if not $line.loaded#-->
<!--#if $line.retry#-->
<input type="submit" onclick="if(confirm('$T('confirm').replace("'","`") ')){ if (confirm('$T('delFiles').replace("'","`") ')) window.location='delete?job=$line.nzo_id&del_files=1&session=$session'; else window.location='delete?job=$line.nzo_id&del_files=0&session=$session'; return false;}" value="$T('button-del')">
<!--#else#-->
<form action="delete" method="get">
<input type="hidden" value="$line.nzo_id" name="job">
<input type="hidden" name="session" value="$session">
<input type="submit" value="$T('button-del')"></form>
<!--#end if#-->
<!--#end if#-->
<br/>
<!--#if $line.retry#-->
<form action="retry_pp" method="post" enctype="multipart/form-data">
<input type="file" name="nzbfile">
<input type="hidden" value="$line.nzo_id" name="job">
<input type="hidden" name="session" value="$session">
<input type="submit" value="$T('button-retry')"></form>
<!--#end if#-->
</td>
</tr>
<!--#if $line.show_details#-->
<!--#set $oddLine = not False#-->
<tr class="<!--#if $oddLine then "oddLine" else "evenLine"#-->"><td></td><td></td>
<td colspan="3"><dl>
<!--#for $stage in $line.stage_log#-->
<!--#set $oddLine = not $oddLine#-->
<dt><b>$Tx('stage-'+$stage.name.title.lower())</b></dt>
<!--#for $action in $stage.actions#-->
<dd>$action</dd>
<!--#end for#-->
<br />
<!--#end for#-->
<!--#if $line.category#-->
<dt><b>$T('category')</b></dt>
<dd>$line.category</dd>
<br />
<!--#end if#-->
<!--#if $line.storage#-->
<dt><b>$T('msg-path')</b></dt>
<dd>$line.storage</dd>
<br />
<!--#end if#-->
</dl>
</td>
<td></td>
</tr>
<!--#end if#-->
<!--#end for#-->
</table>
<!--#end if#-->
<!--#include $webdir + "/inc_bottom.tmpl"#-->

35
interfaces/Classic/templates/inc_bottom.tmpl

@ -1,35 +0,0 @@
<div class="footer">
<b>$T('ft-download'):</b> $diskspace1 GB - <b>$T('ft-complete'):</b> $diskspace2 GB - <b>$T('ft-speed'):</b> ${speed}B/s - <b>$T('ft-queued'):</b> $sizeleft / $size
<!--#if $loadavg#-->
- <b>$T('ft-sysload')</b> $loadavg
<!--#end if#-->
<!--#if $paused#-->
- <b>$T('ft-paused')</b><!--#if $pause_int != "0"#-->($pause_int)<!--#end if#--><!--#if $paused_all#--><b>!</b><!--#end if#-->
<!--#end if#-->
<br>
<!--#if int($cache_max)#-->
<!--#set $msg=$T('ft-buffer@2')%($cache_art, $cache_size)#-->
$msg&nbsp;&nbsp;
<!--#end if#-->
<!--#if $have_quota#-->
| &nbsp;&nbsp;<strong>$T('quota-left'):</strong>&nbsp;&nbsp;$left_quota&nbsp;&frasl;&nbsp;$quota</strong>&nbsp;&nbsp;&nbsp;
<!--#end if#-->
<!--#if $new_release#-->
<!--#set $msg=$T('ft-newRelease@1')%($new_release)#-->
<b>$msg <a href="$new_rel_url/" target="_blank">SF.net</a></b><br>
<!--#end if#-->
<!--#if $have_warnings != "0"#-->
<strong><a href="$statpath/status/">$T('ft-warning')($have_warnings)!</a></strong>
<!--#end if#-->
</div>
<!--#set $mbleftrnd = str(int(float($mbleft)))#-->
<!--#set $mbrnd = str(int(float($mb)))#-->
<div id='SABData' style='visibility: hidden'>
<b>&nbsp;SAB:</b> <!--#if $paused then "<blink><b>$T('ft-paused')</b></blink>" else "${speed}B/s"#--> <b>Q:</b> $mbleftrnd/$mbrnd MB<b>&nbsp; Comp:</b> $diskspace2 GB
</div>
<!--#if self.varExists('warning') and $warning#-->
<h2>$T('ft-warning')</h2>
<b>$warning</b>
<!--#end if#-->
</body>
</html>

62
interfaces/Classic/templates/inc_cmenu.tmpl

@ -1,62 +0,0 @@
<!--#if $submenu == ""#-->
<!--#set $cpath="."#-->
<!--#else#-->
<!--#set $cpath=".."#-->
<!--#end if#-->
<span class="SubMenu">
<!--#if $submenu=="general"#-->
<a class="current" href="./">$T('cmenu-general')</a> |
<!--#else#-->
<a href="$cpath/general/">$T('cmenu-general')</a> |
<!--#end if#-->
<!--#if $submenu=="folders"#-->
<a class="current" href="./">$T('cmenu-folders')</a> |
<!--#else#-->
<a href="$cpath/folders/">$T('cmenu-folders')</a> |
<!--#end if#-->
<!--#if $submenu=="switches"#-->
<a class="current" href="./">$T('cmenu-switches')</a> |
<!--#else#-->
<a href="$cpath/switches/">$T('cmenu-switches')</a> |
<!--#end if#-->
<!--#if $submenu=="servers"#-->
<a class="current" href="./">$T('cmenu-servers')</a> |
<!--#else#-->
<a href="$cpath/server/">$T('cmenu-servers')</a> |
<!--#end if#-->
<!--#if $submenu=="scheduling"#-->
<a class="current" href="./">$T('cmenu-scheduling')</a> |
<!--#else#-->
<a href="$cpath/scheduling/">$T('cmenu-scheduling')</a> |
<!--#end if#-->
<!--#if $submenu=="rss"#-->
<a class="current" href="./">$T('cmenu-rss')</a> |
<!--#else#-->
<a href="$cpath/rss/">$T('cmenu-rss')</a> |
<!--#end if#-->
<!--#if $submenu=="notify"#-->
<a class="current" href="./">$T('cmenu-notif')</a> |
<!--#else#-->
<a href="$cpath/notify/">$T('cmenu-notif')</a> |
<!--#end if#-->
<!--#if $submenu=="categories"#-->
<a class="current" href="./">$T('cmenu-cat')</a> |
<!--#else#-->
<a href="$cpath/categories/">$T('cmenu-cat')</a> |
<!--#end if#-->
<!--#if $submenu=="sorting"#-->
<a class="current" href="./">$T('cmenu-sorting')</a>
<!--#else#-->
<a href="$cpath/sorting/">$T('cmenu-sorting')</a>
<!--#end if#-->
</span>

68
interfaces/Classic/templates/inc_top.tmpl

@ -1,68 +0,0 @@
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0//EN">
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<title>$mbleft MB $T('queued') - SABnzbd $version</title>
<link rel="stylesheet" type="text/css" href="$statpath/static/stylesheets/default.css"/>
<link rel="stylesheet" type="text/css" href="$statpath/static/stylesheets/defaultcolors.css"/>
<!--#if $color_scheme#-->
<link rel="stylesheet" type="text/css" href="$statpath/static/stylesheets/colorschemes/${color_scheme}.css"/>
<!--#end if#-->
<!--#if $varExists('have_refresh') and $have_refresh#-->
<meta http-equiv="refresh" content="$have_refresh">
<!--#end if#-->
<link rel="shortcut icon" href="$statpath/static/images/favicon.ico" />
<link rel="alternate" type="application/rss+xml" title="RSS 2.0" href="rss?mode=history&apikey=$session"/>
</head>
<body>
<h1><span id="first">SAB</span><span id="second">nzbd+</span><span id="third"> $version</span><span id="catchfrase">$T('signOn')</span></h1>
<!--#set $mypath=$statpath+"/"+$topmenu#-->
<span class="MainMenu">
<!--#if $topmenu==''#-->
<a class="current" href="$mypath">$T('menu-home')</a> |
<!--#else#-->
<a href="$statpath">$T('menu-home')</a> |
<!--#end if#-->
<!--#if $topmenu=='queue'#-->
<a class="current" href="$mypath/">$T('menu-queue')</a> |
<!--#else#-->
<a href="$statpath/queue/">$T('menu-queue')</a> |
<!--#end if#-->
<!--#if $topmenu=='history'#-->
<a class="current" href="$mypath/">$T('menu-history')</a> |
<!--#else#-->
<a href="$statpath/history/">$T('menu-history')</a> |
<!--#end if#-->
<!--#if $topmenu=='config'#-->
<a class="current" href="$mypath/">$T('menu-config')</a> |
<!--#else#-->
<a href="$statpath/config/">$T('menu-config')</a> |
<!--#end if#-->
<!--#if $topmenu=='connections'#-->
<a class="current" href="$mypath/">$T('menu-cons')</a> |
<!--#else#-->
<a href="$statpath/status/">$T('menu-cons')</a> |
<!--#end if#-->
<!--[if IE]>
<a href="$helpuri$helpsubject/" target="_blank">$T('menu-help')</a>
<![endif]-->
<comment>
<ul id="nav">
<li><a href="$helpuri$helpsubject/" target="_blank">$T('menu-help')</a>
<ul>
<li><a href="$helpuri$helpsubject/" target="_blank">$T('menu-wiki')</a></li>
<li><a href="http://forums.sabnzbd.org/" target="_blank">$T('menu-forums')</a></li>
<li><a href="http://www.sabnzbd.org/live-chat/" target="_blank">$T('menu-irc')</a></li>
</ul>
</li>
</ul>
</comment>
</span>

112
interfaces/Classic/templates/main.tmpl

@ -1,112 +0,0 @@
<!--#set global $topmenu=""#-->
<!--#set global $statpath="."#-->
<!--#set global $helpsubject="GUI+Main"#-->
<!--#include $webdir + "/inc_top.tmpl"#-->
<span class="SubMenu">
<!--#if $paused#-->
<a href="./resume?session=$session">$T('link-resume')</a>
<!--#else#-->
<a href="./pause?session=$session">$T('link-pause')</a>
<!--#end if#-->|
<!--#set $shutMsg = "'" + $T('shutdownOK?') + "'" #-->
<a href="./shutdown?session=$session" onclick="javascript:return confirm($shutMsg)">$T('link-shutdown')</a>
</span>
<h2>$T("addNewJobs")</h2>
<div class="EntryBlock">
<form action="addID" method="get">
<fieldset class="EntryFieldSet">
<legend>$T('add') URL</legend>
<input type="text" name="id">
<!--#if $cat_list#-->
<select name="cat" >
<optgroup label="$T('category')">
<!--#for $ct in $cat_list#-->
<option value="$ct">$Tspec($ct)</option>
<!--#end for#-->
</optgroup>
</select>
<!--#end if#-->
<select name="pp">
<optgroup label="$T('pp')">
<option value="-1" <!--#if $cat_list then "selected" else ""#-->>$T('default')</option>
<option value="0">$T('none')</option>
<option value="1">$T('pp-repair')</option>
<option value="2">$T('pp-unpack')</option>
<option value="3" <!--#if $cat_list then "" else "selected"#-->>$T('pp-delete')</option>
</optgroup>
</select>
<!--#if $script_list#-->
<select name="script">
<optgroup label="$T('script')">
<!--#for $sc in $script_list#-->
<option value="$sc">$Tspec($sc)</option>
<!--#end for#-->
</optgroup>
</select>
<!--#end if#-->
<select name="priority">
<optgroup label="$T('priority')">
<option value="-100" selected>$T('default')</option>
<option value="2">$T('pr-force')</option>
<option value="1">$T('pr-high')</option>
<option value="0">$T('pr-normal')</option>
<option value="-1">$T('pr-low')</option>
</optgroup>
</select>
<br>
<input type="hidden" name="session" value="$session">
<input type="submit" value=$T("button-add")>
</fieldset>
</form>
</div>
<div class="EntryBlock">
<form action="addFile" method="post" enctype="multipart/form-data">
<fieldset class="EntryFieldSet">
<legend>$T('addFile')</legend>
<input type="file" name="nzbfile">
<!--#if $cat_list#-->
<select name="cat" >
<optgroup label="Category">
<!--#for $ct in $cat_list#-->
<option value="$ct">$Tspec($ct)</option>
<!--#end for#-->
</optgroup>
</select>
<!--#end if#-->
<select name="pp">
<optgroup label="$T('pp')">
<option value="-1" <!--#if $cat_list then "selected" else ""#-->>$T('default')</option>
<option value="0">$T('none')</option>
<option value="1">$T('pp-repair')</option>
<option value="2">$T('pp-unpack')</option>
<option value="3" <!--#if $cat_list then "" else "selected"#-->>$T('pp-delete')</option>
</optgroup>
</select>
<!--#if $script_list#-->
<select name="script">
<optgroup label="Script">
<!--#for $sc in $script_list#-->
<option value="$sc">$Tspec($sc)</option>
<!--#end for#-->
</optgroup>
</select>
<!--#end if#-->
<select name="priority">
<optgroup label="$T('priority')">
<option value="-100" selected>$T('default')</option>
<option value="2">$T('pr-force')</option>
<option value="1">$T('pr-high')</option>
<option value="0">$T('pr-normal')</option>
<option value="-1">$T('pr-low')</option>
</optgroup>
</select>
<br>
<input type="hidden" name="session" value="$session">
<input type="submit" value=$T("button-add")>
</fieldset>
</form>
</div>
<!--#include $webdir + "/inc_bottom.tmpl"#-->

150
interfaces/Classic/templates/nzo.tmpl

@ -1,150 +0,0 @@
<!--#set global $topmenu="queue"#-->
<!--#set global $statpath="../.."#-->
<!--#set global $helpsubject="GUI+Queue"#-->
<!--#include $webdir + "/inc_top.tmpl"#-->
<script type='text/javascript'>
function submit_marked(nzo_id, action_key)
{
extra = 'action_key='+action_key
var s;
var i=0;
while(s = document.getElementsByTagName("input")[i++])
{
if(s.type=='checkbox' && s.checked == true)
{
extra = extra + '&' + s.name + '=on'
}
}
//submitconfig(extra, '', '', 1)
url = 'nzb/'+nzo_id+'/bulk_operation'
lr(url, extra)
}
function mark_all()
{
var s;
var i=0;
while(s = document.getElementsByTagName("input")[i++])
{
if(s.type=='checkbox')
{
s.checked=true;
}
}
}
</script>
<script type='text/javascript'>
function unmark_all()
{
var s;
var i=0;
while(s = document.getElementsByTagName("input")[i++])
{
if(s.type=='checkbox')
{
s.checked=false;
}
}
}
</script>
<script type='text/javascript'>
function invert()
{
var s;
var i=0;
while(s = document.getElementsByTagName("input")[i++])
{
if(s.type=='checkbox')
{
s.checked=!s.checked;
}
}
}
</script>
<span class="SubMenu">
&nbsp;
</span>
<!--#if $varExists('slot')#-->
<h3>$T('nzoDetails')</h3>
<form action="save" method="post">
<label class="label">$T('nzoName'):</label><br />
<input type="text" name="name" style="width:400px" size="80" value="$slot.filename">
<br />
<label class="label">$T('pp'):</label><br />
<select name="pp">
<option value="0" <!--#if $slot.unpackopts == "0" then "selected" else ""#-->>$T('pp-n')</option>
<option value="1" <!--#if $slot.unpackopts == "1" then "selected" else ""#-->>$T('pp-r')</option>
<option value="2" <!--#if $slot.unpackopts == "2" then "selected" else ""#-->>$T('pp-u')</option>
<option value="3" <!--#if $slot.unpackopts == "3" then "selected" else ""#-->>$T('pp-d')</option>
</select>
<!--#if $slot.priority != '2'#-->
<br />
<label class="label">$T('priority'):</label><br />
<select name="priority">
<option value="-100" <!--#if $slot.priority == "-100" then "selected" else ""#-->>$T('default')</option>
<option value="1" <!--#if $slot.priority == "1" then "selected" else ""#-->>$T('pr-high')</option>
<option value="0" <!--#if $slot.priority == "0" then "selected" else ""#-->>$T('pr-normal')</option>
<option value="-1" <!--#if $slot.priority == "-1" then "selected" else ""#-->>$T('pr-low')</option>
</select>
<!--#end if#-->
<!--#if $script_list#-->
<br />
<label class="label">$T('script'):</label><br />
<select name="script">
<!--#for $sc in $script_list#-->
<option value="$sc" <!--#if $slot.script.lower() == $sc.lower() then "selected" else ""#-->>$Tspec($sc)</option>
<!--#end for#-->
</select>
<!--#end if#-->
<!--#if $cat_list#-->
<br />
<label class="label">$T('category'):</label><br />
<select name="cat">
<!--#for $ct in $cat_list#-->
<option value="$ct" <!--#if $slot.cat.lower() == $ct.lower() then "selected" else ""#-->>$ct</option>
<!--#end for#-->
</select>
<!--#end if#-->
<br /><br />
<input type="submit" size="40" value="$T('button-saveChanges')">
</form>
<br />
<br /><br /><br />
<!--#end if#-->
<!--#if $varExists('active_files')#-->
<form action="bulk_operation">
<input type="hidden" name="session" value="$session">
<input type="submit" name="action_key" value="Delete">
<input type="submit" name="action_key" value="Top">
<input type="submit" name="action_key" value="Up">
<input type="submit" name="action_key" value="Down">
<input type="submit" name="action_key" value="Bottom">
<br>
$T('nzo-selection'):<a href='#' onclick='mark_all();' target='_self'>$T('nzo-all')</a>
<a href='#' onclick='unmark_all();' target='_self'>$T('nzo-none')</a>
<a href='#' onclick='invert();' target='_self'>$T('nzo-invert')</a>
<table id="historyTable">
<tr><th></th><th>$T('nzo-filename')/$T('nzo-subject')</th><th>$T('size')</th><th>$T('nzo-age')</th></tr>
<!--#set $oddLine = False#-->
<!--#for $file in $active_files#-->
<!--#set $oddLine = not $oddLine#-->
<tr class="<!--#if $oddLine then "oddLine" else "evenLine"#--> active">
<td><input type="checkbox" name="$file.nzf_id" <!--#if $file.checked then "checked" else ""#-->></td>
<td>$file.filename</td>
<td>$file.size</td>
<td>$file.age</td>
</tr>
<!--#end for#-->
</table>
</form>
<!--#end if#-->
<!--#include $webdir + "/inc_bottom.tmpl"#-->

142
interfaces/Classic/templates/queue.tmpl

@ -1,142 +0,0 @@
<!--#set global $topmenu="queue"#-->
<!--#set global $have_refresh=$refresh_rate#-->
<!--#set global $statpath=".."#-->
<!--#set global $helpsubject="GUI+Queue"#-->
<!--#include $webdir + "/inc_top.tmpl"#-->
<span class="SubMenu">
<!--#if $paused#-->
<a href="./resume?session=$session">$T('link-resume')</a>
<!--#else#-->
<a href="./pause?session=$session">$T('link-pause')</a>
<!--#end if#-->|
<a href="./sort_by_name?session=$session">$T('link-sortByName')</a> |
<a href="./sort_by_avg_age?session=$session">$T('link-sortByAge')</a> |
<a href="./sort_by_size?session=$session">$T('link-sortBySize')</a> |
<!--#if $isverbose#-->
<a href="./tog_verbose?session=$session">$T('link-hideFiles')</a>
<!--#else#-->
<a href="./tog_verbose?session=$session">$T('link-showFiles')</a>|
<!--#end if#-->
$T('onQueueFinish'):
<select onChange="location = './change_queue_complete_action?action='+this.options[this.selectedIndex].value+'&session=$session'">
<option value=""></option>
<optgroup label="$T('eoq-actions')">
<!--#if $power_options#-->
<option value="shutdown_pc" <!--#if $finishaction == 'shutdown_pc' then 'selected' else ''#-->>$T('shutdownPc')</option>
<option value="standby_pc" <!--#if $finishaction == 'standby_pc' then 'selected' else ''#-->>$T('standbyPc')</option>
<option value="hibernate_pc" <!--#if $finishaction == 'hibernate_pc' then 'selected' else ''#-->>$T('hibernatePc')</option>
<!--#end if#-->
<option value="shutdown_program" <!--#if $finishaction == 'shutdown_program' then 'selected' else ''#-->>$T('shutdownSab')</option>
</optgroup>
<!--#if $script_list#-->
<optgroup label="$T('eoq-scripts')">
<!--#for $sc in $script_list#-->
<!--#if $sc != 'None'#-->
<option value="script_$sc" <!--#if $finishaction == 'script_'+$sc then 'selected' else ''#-->>$sc</option>
<!--#end if#-->
<!--#end for#-->
</optgroup>
<!--#end if#-->
</select>
| $T('speedLimit'):
<input id="speedbox" type="text" value="$speedlimit" onChange="location = './set_speedlimit?session=$session&value='+this.value">&nbsp;$T('KBs')
| $T('pauseFor'):
<input id="speedbox" type="text" size=5 value="" onChange="location = './set_pause?session=$session&value='+this.value">&nbsp;$T('minute')
|
<a href="./purge?session=$session" onclick="return confirm('$T('purgeQueueConf').replace("'","`") ');">$T('purgeQueue')</a>
</span>
<br>
<br>
<!--#if $varExists('slots')#-->
<table id="queueTable">
<tr> <th></th><th></th><th>$T('order')</th>
<!--#if $cat_list#--><th>$T('category')</th><!--#end if#-->
<th>$T('mode')</th><th>$T('priority')</th>
<!--#if $script_list#--><th>$T('script')</th><!--#end if#-->
<th>$T('name')</th><th>$T('remainTotal')</th><th>$T('eta')</th><th>$T('age')</th>
</tr>
<!--#set $odd = False#-->
<!--#for $slot in $slots#-->
<!--#set $odd = not $odd#-->
<tr class="<!--#if $odd then "odd" else "even"#--> $slot.priority $slot.status">
<td><a class="verbosity_link" href="./tog_uid_verbose?session=$session&uid=$slot.nzo_id"> <!--#if $slot.active then "-" else "+" #--> </a></td>
<td>
<input type="submit" onclick="if (confirm('$T('delFiles').replace("'","`") ')) window.location='delete?uid=$slot.nzo_id&del_files=1&session=$session'; else window.location='delete?uid=$slot.nzo_id&del_files=0&session=$session'; return false;" value="$T('button-del')">
<!--#if $slot.status == 'Paused'#-->
<form action="resume_nzo" method="get">
<input type="hidden" value="$slot.nzo_id" name="uid">
<input type="hidden" value="$session" name="session">
<input type="submit" value="$T('button-resume')"></form>
<!--#else#-->
<form action="pause_nzo" method="get">
<input type="hidden" value="$slot.nzo_id" name="uid">
<input type="hidden" value="$session" name="session">
<input type="submit" value="$T('button-pause')"></form>
<!--#end if#-->
<td><form><select onchange="location = this.options[this.selectedIndex].value;">
<!--#for $i in xrange($noofslots)#-->
<option value="switch?session=$session&uid1=$slot.nzo_id&uid2=$slots[i].nzo_id" <!--#if $i == $slot.index then "selected" else ""#-->>$i</option>
<!--#end for#-->
</select></form></td>
<!--#if $cat_list#-->
<td><form><select onchange="location = this.options[this.selectedIndex].value;">
<!--#for $ct in $cat_list#-->
<option value="change_cat?session=$session&nzo_id=$slot.nzo_id&cat=$ct" <!--#if $slot.cat.lower() == $ct.lower() then "selected" else ""#-->>$Tspec($ct)</option>
<!--#end for#-->
</select></form>
</td>
<!--#end if#-->
<td><form><select onchange="location = this.options[this.selectedIndex].value;">
<option value="change_opts?session=$session&nzo_id=$slot.nzo_id&pp=0" <!--#if $slot.unpackopts == "0" then "selected" else ""#-->></option>
<option value="change_opts?session=$session&nzo_id=$slot.nzo_id&pp=1" <!--#if $slot.unpackopts == "1" then "selected" else ""#-->>$T('pp-r')</option>
<option value="change_opts?session=$session&nzo_id=$slot.nzo_id&pp=2" <!--#if $slot.unpackopts == "2" then "selected" else ""#-->>$T('pp-u')</option>
<option value="change_opts?session=$session&nzo_id=$slot.nzo_id&pp=3" <!--#if $slot.unpackopts == "3" then "selected" else ""#-->>$T('pp-d')</option>
</select></form>
</td>
<td>
<!--#if $slot.priority#-->
<form>
<select onchange="location = this.options[this.selectedIndex].value;">
<option value="set_priority?session=$session&nzo_id=$slot.nzo_id&priority=2" <!--#if $slot.priority == "Force" then "selected" else ""#-->>$T('pr-force')</option>
<option value="set_priority?session=$session&nzo_id=$slot.nzo_id&priority=1" <!--#if $slot.priority == "High" then "selected" else ""#-->>$T('pr-high')</option>
<option value="set_priority?session=$session&nzo_id=$slot.nzo_id&priority=0" <!--#if $slot.priority == "Normal" then "selected" else ""#-->>$T('pr-normal')</option>
<option value="set_priority?session=$session&nzo_id=$slot.nzo_id&priority=-1" <!--#if $slot.priority == "Low" then "selected" else ""#-->>$T('pr-low')</option>
<option value="set_priority?session=$session&nzo_id=$slot.nzo_id&priority=-4" <!--#if $slot.priority == "Stop" then "selected" else ""#-->>$T('pr-stop')</option>
</select></form>
<!--#end if#-->
</td>
<!--#if $script_list#-->
<td><form><select onchange="location = this.options[this.selectedIndex].value;">
<!--#for $sc in $script_list#-->
<option value="change_script?session=$session&nzo_id=$slot.nzo_id&script=$sc" <!--#if $slot.script == $sc then "selected" else ""#-->>$Tspec($sc)</option>
<!--#end for#-->
</select></form>
</td>
<!--#end if#-->
<td><a href="../nzb/$slot.nzo_id/">$slot.filename</a></td>
<td class="pre">$slot.sizeleft/$slot.size</td>
<td>$slot.eta</td>
<td>$slot.avg_age</td>
</tr>
<!--#set $oddLine = False#-->
<!--#for $line in $slot.finished#-->
<!--#set $oddLine = not $oddLine#-->
<tr class="<!--#if $oddLine then "oddLine" else "evenLine"#--> finished"><td></td><td></td><td>Finished</td><td></td><!--#if $cat_list#--><td></td><!--#end if#--><td></td><!--#if $script_list#--><td></td><!--#end if#--><td>$line.filename</td><td class="pre">$line.mbleft/$line.mb MB<td></td><td>$line.age</td></tr>
<!--#end for#-->
<!--#set $oddLine = False#-->
<!--#for $line in $slot.active#-->
<!--#set $oddLine = not $oddLine#-->
<tr class="<!--#if $oddLine then "oddLine" else "evenLine"#--> active"><td></td><td><a class="remove" href="./removeNzf?session=$session&nzo_id=$slot.nzo_id&nzf_id=$line.nzf_id">Remove</a></td><td>Active</td><td></td><!--#if $cat_list#--><td></td><!--#end if#--><td></td><!--#if $script_list#--><td></td><!--#end if#--><td>$line.filename</td><td class="pre">$line.mbleft/$line.mb MB</td><td></td><td>$line.age</td></tr>
<!--#end for#-->
<!--#set $oddLine = False#-->
<!--#for $line in $slot.queued#-->
<!--#set $oddLine = not $oddLine#-->
<tr class="<!--#if $oddLine then "oddLine" else "evenLine"#--> waiting"><td></td></td><td><td>Waiting</td><td></td><!--#if $cat_list#--><td></td><!--#end if#--><td></td><!--#if $script_list#--><td></td><!--#end if#--><td>$line.filename (set: $line.set)</td><td class="pre">$line.mbleft/$line.mb MB<td></td><td>$line.age</td></tr>
<!--#end for#-->
<!--#end for#-->
</table>
<!--#end if#-->
<!--#include $webdir + "/inc_bottom.tmpl"#-->

BIN
interfaces/Classic/templates/static/images/favicon.ico

Binary file not shown.

Before

Width:  |  Height:  |  Size: 1.1 KiB

12
interfaces/Classic/templates/static/javascript/dropdown.js

@ -1,12 +0,0 @@
sfHover = function() {
var sfEls = document.getElementById("nav").getElementsByTagName("LI");
for (var i=0; i<sfEls.length; i++) {
sfEls[i].onmouseover=function() {
this.className+=" sfhover";
}
sfEls[i].onmouseout=function() {
this.className=this.className.replace(new RegExp(" sfhover\\b"), "");
}
}
}
if (window.attachEvent) window.attachEvent("onload", sfHover);

0
interfaces/Classic/templates/static/placeholder.txt

110
interfaces/Classic/templates/static/stylesheets/colorschemes/black.css

@ -1,110 +0,0 @@
body {
background-color: #3a3a3a;
color: #888;
}
a {
color: #000;
}
input, select {
background-color:#232323;
border-color:#3a3a3a;
color:white;
}
legend {
color: #ccc;
}
fieldset.EntryFieldSet {
color: #ccc;
border-color:#3a3a3a;
}
.MainMenu a {
color: #4e4e4e;
}
.SubMenu a {
color: #ccc;
}
a:hover {
background-color: #f5f5f5;
color:black;
}
a{color:white;}
a.current:hover {
background-color: #ccc;
}
.blockWithBorder {
border-color: #b5b5b5;
background-color: #eeeeee;
}
.MainMenu {
background-color: #232323;
}
.SubMenu {
background-color: #000;
}
table {
color: white;
}
th {
background: #000;
color: white;
}
h1 {
border-bottom: 1px solid #4e4e4e;
}
#catchfrase {
color: white;
}
.footer {
background-color: #232323;
border-top: 1px solid #000;
color:#4e4e4e;
}
.SubMenu, .blockWithBorder , a.current, th {
background-color: #000;
color:white;
}
a.current {
color: #777;
background-color: #000;
}
tr.even, tr.odd {
background-color: #111;
color:white;
}
tr.evenLine, tr.oddLine {
background-color: #232323;
color:#666;
}
#first, #second, #third {
color: #000;
}
a.current:hover, a:hover {
background-color: black;
color:white
}
a.remove{color:#888}

80
interfaces/Classic/templates/static/stylesheets/colorschemes/classic.css

@ -1,80 +0,0 @@
.SubMenu, .blockWithBorder , a.current, tr.even, tr.odd{
background-color: #b5b5b5;
color:black;
}
.SubMenu{
border: 1px solid #b5b5b5;
}
.MainMenu {
display: block;
border-width: 1px;
border-style: solid;
border-color: #b5b5b5;
background-color: #eeeeee;
padding: 5px;
}
.SubMenu a {
font-weight: bold;
color: #000000;
text-decoration: none;
}
body{
color: #808080;
}
th {
background: #b5b5b5;
color: white;
font-weight: bold;
}
tr.even{
background-color: #cdf;
}
tr.evenLine {
background-color: #eee;
}
tr.odd {
background-color: #99bbff;
}
tr.oddLine {
background-color: #f8f8f8;
}
#third {
color: #808080;
}
#first, legend{
color:#c32ee4;
}
#second{
color:#99bbff;
}
a.current:hover, a:hover {
background-color: black;
color:white
}
.SubMenu a.current{
color:white;
}
a{
color:black;
}
td > a, td > a {
color:white;
}
a.remove {
color:black;
}

28
interfaces/Classic/templates/static/stylesheets/colorschemes/darkblue.css

@ -1,28 +0,0 @@
.SubMenu, .blockWithBorder , a.current, tr.even, tr.odd{
background-color: #44577c;
color:white;
}
th {
background-color: #333;
color:white;
}
#first, #third {
color: #44577c;
}
.SubMenu a.current {
color:#ccc;
}
a.current:hover, a:hover {
background-color: black;
color:white
}
td > a, td > a {
color:white;
}
a.remove {
color:black;
}

28
interfaces/Classic/templates/static/stylesheets/colorschemes/green.css

@ -1,28 +0,0 @@
.SubMenu, .blockWithBorder , a.current, tr.even, tr.odd{
background-color: #3f7c78;
color:white;
}
#first, #third {
color: #3f7c78;
}
th{
background-color: #333;
color:white;
}
.SubMenu a.current {
color:#444;
}
a.current:hover, a:hover {
background-color: black;
color:white
}
td > a, td > a {
color:white;
}
a.remove {
color:black;
}

28
interfaces/Classic/templates/static/stylesheets/colorschemes/lightblue.css

@ -1,28 +0,0 @@
.SubMenu, .blockWithBorder , a.current, tr.even, tr.odd{
background-color: #5ca5ff;
color:white;
}
#first, #third {
color: #5ca5ff;
}
th {
background-color: #000;
color:white;
}
.SubMenu a.current {
color:black;
}
a.current:hover, a:hover {
background-color: black;
color:white
}
td > a, td > a {
color:white;
}
a.remove {
color:black;
}

28
interfaces/Classic/templates/static/stylesheets/colorschemes/red.css

@ -1,28 +0,0 @@
.SubMenu, .blockWithBorder , a.current, tr.even, tr.odd{
background-color: #CC0033;
color:white;
}
th {
background-color: #333;
color:white;
}
#first, #third {
color: #CC0033;
}
.SubMenu a.current {
color:black;
}
a.current:hover, a:hover {
background-color: black;
color:white
}
td > a, td > a {
color:white;
}
a.remove {
color:black;
}

29
interfaces/Classic/templates/static/stylesheets/colorschemes/white-black.css

@ -1,29 +0,0 @@
.SubMenu, .blockWithBorder , a.current, tr.even, tr.odd{
background-color: #4e4e4e;
color:white;
}
th {
background-color: #333;
color:white;
}
#first, #third {
color: #4e4e4e;
}
.SubMenu a.current {
color:#ccc;
}
a.current:hover, a:hover {
background-color: black;
color:white
}
td > a, td > a {
color:white;
}
a.remove {
color:black;
}

257
interfaces/Classic/templates/static/stylesheets/default.css

@ -1,257 +0,0 @@
body {
font-family: 'Verdana', 'Helvetica', 'Sans-serif', 'sans';
font-size: 12px;
line-height: 18px;
padding: 15px;
margin: 0px;
}
a {
text-decoration: none;
}
form {
margin: 0px;
padding: 0px;
border: none;
display: inline;
}
legend {
font-weight: bold;
}
div.EntryBlock {
display: inline;
}
div.EntryBlock form {
display: inline;
}
fieldset.EntryFieldSet {
vertical-align: top;
display: inline;
padding: 7px;
margin: 5px;
}
.MainMenu a {
font-weight: bold;
padding: 3px;
padding-bottom: 7px;
text-decoration: none;
padding-left: 12px;
padding-right: 12px;
}
.SubMenu a {
font-weight: bold;
padding: 3px;
padding-bottom: 7px;
text-decoration: none;
padding-left: 12px;
padding-right: 12px;
/*Stop mid-word wrapping to next link */
display: inline-block;
}
a.current {
border: none;
padding: 3px;
padding-bottom: 7px;
padding-left: 12px;
padding-right: 12px;
}
a.current {
color:white;
}
a.current:hover {
border: none;
}
.block {
padding: 10px;
}
.blockWithBorder {
display: block;
border-width: thin;
border-style: solid;
padding: 5px;
}
.MainMenu {
display: block;
padding: 5px;
}
.SubMenu {
display: block;
padding: 5px;
}
table {
font-size: 9pt;
margin: 0px;
}
td, td {
padding: 5px;
}
th {
font-weight: bold;
}
tr.active {
font-weight: bold;
}
tr.finished {
font-weight: normal;
}
tr.waiting {
font-style: italic;
}
td.pre {
font-size: 13px;
font-family: 'courier new',courier,serif;
font-weight: bold;
}
h1 {
text-align: left;
font-size: 19px;
font-weight: normal;
padding-bottom: 4px;
}
* html h1 {
padding-bottom: 2px;
}
h2 {
font-size: 18px;
font-weight: bold;
}
#first {
font-size: 33px;
font-family: Arial, Helvetica, sans-serif;
font-weight: bold ;
text-transform: uppercase;
padding-left: 20px;
}
#second {
font-size: 30px;
font-family: Arial, Helvetica, sans-serif;
font-style: italic;
text-transform: lowercase;
}
#catchfrase {
display: block;
position: relative;
top: -18px;
float: right;
text-align: right;
font-size: 10px;
font-weight: normal;
}
.footer {
text-align: center;
padding-bottom: 5px;
margin-top: 20px;
}
#progressBar {
height: 6px;
width: 90%;
margin: 0px;
margin-left: auto;
margin-right: auto;
padding: 0px;
text-align: left;
}
* html #progressBar {
height: 8px;
he\ight: 6px;
}
#percentageBar {
position: relative;
height: 6px;
}
#queueTable, #historyTable {
width:100%;
}
#row_del, #row_order, #row_mode {
width:75px;
}
.verbosity_link{
padding:4px;
}
.normalheight, .doubleheight, .tripleheight, .pattern, .result, .heading1, .heading2, .heading3 {float:left; border-left:1px }
.normalheight, .doubleheight, .tripleheight, .heading1 {width:125px;}
.normalheight {}
.doubleheight {height:30px;}
.tripleheight {height:60px;}
.row{clear:left;}
.pattern, .heading2 {width:70px}
.result, .heading3 {width:125px}
#Keytable {text-align:center;}
.heading1, .heading2, .heading3{font-weight:bold; background-color:black; color:white;}
/*
Son of Suckerfish Dropdowns
By Patrick Griffiths and Dan Webb.
http://htmldog.com/articles/suckerfish/dropdowns/
*/
#nav, #nav ul {
padding: 0;
margin: 0;
list-style: none;
}
#nav a {
display: block;
width: 4em;
padding-bottom:0;
}
#nav li ul {
position: absolute;
width: 6em;
left: -999em;
background-color:white;
}
#nav li:hover ul {
left: auto;
}
#nav li:hover ul, #nav li.sfhover ul {
left: auto;
}
#nav{
display: inline;
display: -moz-inline-box;
display: inline-block;
width:100px;
}
/*
Son of Suckerfish Dropdowns END
*/
#speedbox{width:36px;}
#Keytable,#Keytable2,#Keytable3{display:none;}

138
interfaces/Classic/templates/static/stylesheets/defaultcolors.css

@ -1,138 +0,0 @@
body {
background-color: #fff;
color: #000;
}
a {
color: #000;
}
input, select {
}
legend {
color: #000;
}
fieldset.EntryFieldSet {
border-color:#3a3a3a;
}
.MainMenu a {
color: #4e4e4e;
}
.SubMenu a {
color: #f5f5f5;
}
a:hover {
background-color: #ccc;
color:black;
}
a.current {
color: #ccc;
background-color: #000;
}
.blockWithBorder {
border-color: #b5b5b5;
background-color: #eeeeee;
}
.MainMenu {
background-color: #f5f5f5;
}
.SubMenu {
background-color: #000;
}
table {
}
th {
background: #fff;
}
tr.even{
background-color: #222222;
color:white;
}
tr.evenLine {
background-color: #f5f5f5;
}
tr.odd {
background-color: #222222;
color:white;
}
tr.oddLine {
background-color: #f5f5f5;
}
h1 {
border-bottom: 1px solid #4e4e4e;
}
#first {
color: black;
}
#second {
color: black;
}
#catchfrase {
color: black;
}
.footer {
background-color: #f5f5f5;
border-top: 1px solid #000;
color:#4e4e4e;
}
#progressBar {
background-color: #cdf;
border: 1px solid blue;
}
#percentageBar {
background-color: #9bf;
}
.queuelink{color:black;}
.SubMenu, .blockWithBorder , a.current, tr.even, tr.odd{
background-color: #44577c;
color:white;
}
th {
background-color: #333;
color:white;
}
#first, #third {
color: #44577c;
}
a.current:hover, a:hover {
background-color: black;
color:white
}
td > a, td > a {
color:white;
}
a.remove {
color:black;
}
.feedEnabled{color:green;}
.feedDisabled{color:red;}

48
interfaces/Classic/templates/status.tmpl

@ -1,48 +0,0 @@
<!--#set global $have_refresh=5#-->
<!--#set global $topmenu="status"#-->
<!--#set global $statpath=".."#-->
<!--#set global $helpsubject="GUI+Status-0-7"#-->
<!--#include $webdir + "/inc_top.tmpl"#-->
<span class="SubMenu">
<!--#set $msg=$T('askTestEmail')#-->
<!--#if $have_quota#-->
<a href="./reset_quota?session=$session">$T('link-resetQuota')</a> |
<!--#end if#-->
<a href="./disconnect?session=$session">$T('link-forceDisc')</a> |
<a href="./showlog?session=$session">$T('link-showLog')</a>
$T('logging'):
<select onChange="location = './change_loglevel?session=$session&loglevel='+this.options[this.selectedIndex].value">
<option value="0" <!--#if $loglevel == "0" then "selected" else ""#-->>$T('log-errWarn')</option>
<option value="1" <!--#if $loglevel == "1" then "selected" else ""#-->>$T('log-info')</option>
<option value="2" <!--#if $loglevel == "2" then "selected" else ""#-->>$T('log-debug')</option>
</select>
</span>
<h2>$T('connections')</h2>
<!--#if $servers#-->
<ul>
<!--#for $server in $servers#-->
<li>
$server[0]: $server[2]
<!--#if not $server[5]#-->
<a href="./unblock_server?server=$server[0]&session=$session">($T('server-blocked'))</a>
&nbsp;&nbsp;$server[6]
<!--#end if#-->
<ul>
<!--#for $thrd in $server[3]#-->
<li>$T('thread') #$thrd[0] -&gt; $thrd[1] -&gt; $thrd[2] -&gt; $thrd[3]</li>
<!--#end for#-->
</ul>
</li>
<!--#end for#-->
</ul>
<!--#end if#-->
<!--#if $warnings#-->
<h2>$T('lastWarnings') (<a href="./clearwarnings?session=$session">$T('clearWarnings')</a>)</h2>
<!--#for $warn in $warnings#-->
$warn<br/>
<!--#end for#-->
<!--#end if#-->
<!--#include $webdir + "/inc_bottom.tmpl"#-->

1
package.py

@ -326,7 +326,6 @@ data_files = [
'licenses/',
'locale/',
'email/',
'interfaces/Classic/',
'interfaces/smpl/',
'interfaces/Plush/',
'interfaces/Mobile/',

2
sabnzbd/constants.py

@ -86,7 +86,7 @@ DEF_INT_LANGUAGE = 'locale'
DEF_EMAIL_TMPL = 'email'
DEF_STDCONFIG = 'Config'
DEF_STDINTF = 'Plush'
DEF_SKIN_COLORS = {'smpl':'white', 'classic':'darkblue', 'mobile':'light', 'plush' : 'gold'}
DEF_SKIN_COLORS = {'smpl':'white','mobile':'light', 'plush' : 'gold'}
DEF_MAIN_TMPL = 'templates/main.tmpl'
DEF_INI_FILE = 'sabnzbd.ini'
DEF_HOST = 'localhost'

Loading…
Cancel
Save