<!--#set global $pane="Switches"#-->
<!--#set global $help_uri="configure-switches-0-7"#-->
<!--#include $webdir + "/_inc_header_uc.tmpl"#-->

<div class="colmask">
    <form action="saveSwitches" method="post" name="fullform" id="fullform">
    <input type="hidden" id="session" name="session" value="$session" />
    <div class="section">
        <div class="col2">
            <h3>$T('swtag-general')</h3>
        </div><!-- /col2 -->
        <div class="col1">
            <fieldset>
                <div class="field-pair alt">
                    <label class="config" for="check_new_rel">$T('opt-check_new_rel')</label>
                    <input type="checkbox" name="check_new_rel" id="check_new_rel" value="1" <!--#if int($check_new_rel) > 0 then 'checked="checked"' else ""#--> />
                    <span class="desc">$T('explain-check_new_rel')</span>
                </div>
                <div class="field-pair">
                    <label class="config" for="auto_browser">$T('opt-auto_browser')</label>
                    <input type="checkbox" name="auto_browser" id="auto_browser" value="1" <!--#if int($auto_browser) > 0 then 'checked="checked"' else ""#--> />
                    <span class="desc">$T('explain-auto_browser')</span>
                </div>
                <div class="field-pair alt <!--#if not $have_ampm then "disabled" else "" #-->">
                    <label class="config" for="ampm">$T('opt-ampm')</label>
                    <input type="checkbox" name="ampm" id="ampm" value="1" <!--#if int($ampm) > 0 then 'checked="checked"' else ""#--> <!--#if not $have_ampm then 'readonly="readonly" disabled="disabled"' else "" #--> />
                    <span class="desc">$T('explain-ampm')</span>
                </div>
                <div class="field-pair">
                    <input type="submit" value="$T('button-saveChanges')" class="saveButton" />
                </div>
            </fieldset>
        </div><!-- /col1 -->
    </div><!-- /section -->
    <div class="section">
        <div class="col2">
            <h3>$T('swtag-server')</h3>
        </div><!-- /col2 -->
        <div class="col1">
            <fieldset>
                <div class="field-pair alt">
                    <label class="config" for="max_art_tries">$T('opt-max_art_tries')</label>
                    <input type="number" name="max_art_tries" id="max_art_tries" value="$max_art_tries" size="8" min="2" />
                    <span class="desc">$T('explain-max_art_tries')</span>
                </div>
                <div class="field-pair">
                    <label class="config" for="max_art_opt">$T('opt-max_art_opt')</label>
                    <input type="checkbox" name="max_art_opt" id="max_art_opt" value="1" <!--#if int($max_art_opt) > 0 then 'checked="checked"' else ""#--> />
                    <span class="desc">$T('explain-max_art_opt')</span>
                </div>
                <div class="field-pair alt">
                    <label class="config" for="auto_disconnect">$T('opt-auto_disconnect')</label>
                    <input type="checkbox" name="auto_disconnect" id="auto_disconnect" value="1" <!--#if int($auto_disconnect) > 0 then 'checked="checked"' else ""#--> />
                    <span class="desc">$T('explain-auto_disconnect')</span>
                </div>
                <div class="field-pair">
                    <label class="config" for="send_group">$T('opt-send_group')</label>
                    <input type="checkbox" name="send_group" id="send_group" value="1" <!--#if int($send_group) > 0 then 'checked="checked"' else ""#--> />
                    <span class="desc">$T('explain-send_group')</span>
                </div>
                <div class="field-pair alt">
                    <label class="config" for="ssl_type">$T('opt-ssl_type')</label>
                    <select name="ssl_type" id="ssl_type">
                        <option value="v23" <!--#if $ssl_type == "v23" then 'selected="selected" class="selected"' else ""#--> >V23</option>
                        <option value="v2"  <!--#if $ssl_type == "v2"  then 'selected="selected" class="selected"' else ""#--> >V2</option>
                        <option value="v3"  <!--#if $ssl_type == "v3"  then 'selected="selected" class="selected"' else ""#--> >V3</option>
                    </select>
                    <span class="desc">$T('explain-ssl_type')</span>
                </div>
                <div class="field-pair">
                    <input type="submit" value="$T('button-saveChanges')" class="saveButton" />
                </div>
            </fieldset>
        </div><!-- /col1 -->
    </div><!-- /section -->
    <div class="section">
        <div class="col2">
            <h3>$T('swtag-queue')</h3>
        </div><!-- /col2 -->
        <div class="col1">
            <fieldset>
                <div class="field-pair alt">
                    <label class="config" for="pre_check">$T('opt-pre_check')</label>
                    <input type="checkbox" name="pre_check" id="pre_check" value="1" <!--#if int($pre_check) > 0 then 'checked="checked"' else ""#--> />
                    <span class="desc">$T('explain-pre_check')</span>
                </div>
                <div class="field-pair">
                    <label class="config" for="no_dupes">$T('opt-no_dupes')</label>
                    <select name="no_dupes" id="no_dupes">
                        <option value="0" <!--#if int($no_dupes) == 0 then 'selected="selected" class="selected"' else ""#--> >$T('nodupes-off')</option>
                        <option value="1" <!--#if int($no_dupes) == 1 then 'selected="selected" class="selected"' else ""#--> >$T('nodupes-ignore')</option>
                        <option value="2" <!--#if int($no_dupes) == 2 then 'selected="selected" class="selected"' else ""#--> >$T('nodupes-pause')</option>
                    </select>
                    <span class="desc">$T('explain-no_dupes')</span>
                </div>
                <div class="field-pair alt">
                    <label class="config" for="pause_on_post_processing">$T('opt-pause_on_post_processing')</label>
                    <input type="checkbox" name="pause_on_post_processing" id="pause_on_post_processing" value="1" <!--#if int($pause_on_post_processing) > 0 then 'checked="checked"' else ""#--> />
                    <span class="desc">$T('explain-pause_on_post_processing')</span>
                </div>
                <div class="field-pair">
                    <label class="config" for="pause_on_pwrar">$T('opt-pause_on_pwrar')</label>
                    <input type="checkbox" name="pause_on_pwrar" id="pause_on_pwrar" value="1" <!--#if int($pause_on_pwrar) > 0 then 'checked="checked"' else ""#--> />
                    <span class="desc">$T('explain-pause_on_pwrar')</span>
                </div>
                <div class="field-pair alt">
                    <label class="config" for="top_only">$T('opt-top_only')</label>
                    <input type="checkbox" name="top_only" id="top_only" value="1" <!--#if int($top_only) > 0 then 'checked="checked"' else ""#--> />
                    <span class="desc">$T('explain-top_only')</span>
                </div>
                <div class="field-pair">
                    <label class="config" for="auto_sort">$T('opt-auto_sort')</label>
                    <input type="checkbox" name="auto_sort" id="auto_sort" value="1" <!--#if int($auto_sort) > 0 then 'checked="checked"' else ""#--> />
                    <span class="desc">$T('explain-auto_sort')</span>
                </div>
                <div class="field-pair alt">
                    <label class="config" for="pre_script">$T('opt-pre_script')</label>
                    <select name="pre_script" id="pre_script">
                    <!--#for $sc in $script_list#-->
                        <!--#if $sc.lower() == $pre_script.lower()#-->
                            <option value="$sc" selected="selected" class="selected">$Tspec($sc)</option>
                        <!--#else#-->
                            <option value="$sc">$Tspec($sc)</option>
                        <!--#end if#-->
                    <!--#end for#-->
                    </select>
                    <span class="desc">$T('explain-pre_script')</span>
                </div>
                <div class="field-pair">
                    <input type="submit" value="$T('button-saveChanges')" class="saveButton" />
                </div>
            </fieldset>
        </div><!-- /col1 -->
    </div><!-- /section -->
    <div class="section">
        <div class="col2">
            <h3>$T('swtag-pp')</h3>
        </div><!-- /col2 -->
        <div class="col1">
            <fieldset>
                <div class="field-pair alt">
                    <label class="config" for="ignore_samples">$T('opt-ignore_samples')</label>
                    <select name="ignore_samples" id="ignore_samples">
                        <option value="0" <!--#if int($ignore_samples) == 0 then 'selected="selected" class="selected"' else ""#--> >$T('igsam-off')</option>
                        <option value="1" <!--#if int($ignore_samples) == 1 then 'selected="selected" class="selected"' else ""#--> >$T('igsam-del')</option>
                        <option value="2" <!--#if int($ignore_samples) == 2 then 'selected="selected" class="selected"' else ""#--> >$T('igsam-not')</option>
                    </select>
                    <span class="desc">$T('explain-ignore_samples')</span>
                </div>
                <div class="field-pair">
                    <label class="config" for="quick_check">$T('opt-quick_check')</label>
                    <input type="checkbox" name="quick_check" id="quick_check" value="1" <!--#if int($quick_check) > 0 then 'checked="checked"' else ""#--> />
                    <span class="desc">$T('explain-quick_check')</span>
                </div>
                <div class="field-pair alt">
                    <label class="config" for="enable_unrar">$T('opt-enable_unrar')</label>
                    <input type="checkbox" name="enable_unrar" id="enable_unrar" value="1" <!--#if int($enable_unrar) > 0 then 'checked="checked"' else ""#--> />
                    <span class="desc">$T('explain-enable_unrar')</span>
                </div>
                <div class="field-pair">
                    <label class="config" for="enable_unzip">$T('opt-enable_unzip')</label>
                    <input type="checkbox" name="enable_unzip" id="enable_unzip" value="1" <!--#if int($enable_unzip) > 0 then 'checked="checked"' else ""#--> />
                    <span class="desc">$T('explain-enable_unzip')</span>
                </div>
                <div class="field-pair alt">
                    <label class="config" for="enable_filejoin">$T('opt-enable_filejoin')</label>
                    <input type="checkbox" name="enable_filejoin" id="enable_filejoin" value="1" <!--#if int($enable_filejoin) > 0 then 'checked="checked"' else ""#--> />
                    <span class="desc">$T('explain-enable_filejoin')</span>
                </div>
                <div class="field-pair">
                    <label class="config" for="enable_tsjoin">$T('opt-enable_tsjoin')</label>
                    <input type="checkbox" name="enable_tsjoin" id="enable_tsjoin" value="1" <!--#if int($enable_tsjoin) > 0 then 'checked="checked"' else ""#--> />
                    <span class="desc">$T('explain-ts_join')</span>
                </div>
                <div class="field-pair alt">
                    <label class="config" for="enable_par_cleanup">$T('opt-enable_par_cleanup')</label>
                    <input type="checkbox" name="enable_par_cleanup" id="enable_par_cleanup" value="1" <!--#if int($enable_par_cleanup) > 0 then 'checked="checked"' else ""#--> />
                    <span class="desc">$T('explain-enable_par_cleanup')</span>
                </div>
                <div class="field-pair">
                    <label class="config" for="fail_on_crc">$T('opt-fail_on_crc')</label>
                    <input type="checkbox" name="fail_on_crc" id="fail_on_crc" value="1" <!--#if int($fail_on_crc) > 0 then 'checked="checked"' else ""#--> />
                    <span class="desc">$T('explain-fail_on_crc')</span>
                </div>
                <div class="field-pair alt">
                    <label class="config" for="safe_postproc">$T('opt-safe_postproc')</label>
                    <input type="checkbox" name="safe_postproc" id="safe_postproc" value="1" <!--#if int($safe_postproc) > 0 then 'checked="checked"' else ""#--> />
                    <span class="desc">$T('explain-safe_postproc')</span>
                </div>
                <div class="field-pair">
                    <label class="config" for="sfv_check">$T('opt-sfv_check')</label>
                    <input type="checkbox" name="sfv_check" id="sfv_check" value="1" <!--#if int($sfv_check) > 0 then 'checked="checked"' else ""#--> />
                    <span class="desc">$T('explain-sfv_check')</span>
                </div>
                <div class="field-pair alt">
                    <label class="config" for="unpack_check">$T('opt-unpack_check')</label>
                    <input type="checkbox" name="unpack_check" id="unpack_check" value="1" <!--#if int($unpack_check) > 0 then 'checked="checked"' else ""#--> />
                    <span class="desc">$T('explain-unpack_check')</span>
                </div>
                <div class="field-pair <!--#if not $nt then "disabled" else "" #-->">
                    <label class="config" for="par2_multicore">$T('opt-par2_multicore')</label>
                    <input type="checkbox" name="par2_multicore" id="par2_multicore" value="1" <!--#if int($par2_multicore) > 0 then 'checked="checked"' else ""#--> <!--#if not $nt then 'readonly="readonly" disabled="disabled"' else "" #--> />
                    <span class="desc">$T('explain-par2_multicore')</span>
                </div>
                <div class="field-pair alt">
                    <label class="config" for="par_option">$T('opt-par_option')</label>
                    <input type="text" name="par_option" id="par_option" value="$par_option" size="20" />
                    <span class="desc">$T('explain-par_option')</span>
                </div>
                <div class="field-pair <!--#if not $have_nice then "disabled" else "" #-->">
                    <label class="config" for="nice">$T('opt-nice')</label>
                    <input type="text" name="nice" id="nice" value="$nice" size="20" <!--#if not $have_nice then 'readonly="readonly" disabled="disabled"' else "" #--> />
                    <span class="desc">$T('explain-nice')</span>
                </div>
                <div class="field-pair alt <!--#if not $have_ionice then "disabled" else "" #-->">
                    <label class="config" for="ionice">$T('opt-ionice')</label>
                    <input type="text" name="ionice" id="ionice" value="$ionice" size="20" <!--#if not $have_ionice then 'readonly="readonly" disabled="disabled"' else "" #--> />
                    <span class="desc">$T('explain-ionice')</span>
                </div>
                <div class="field-pair">
                    <input type="submit" value="$T('button-saveChanges')" class="saveButton" />
                </div>
            </fieldset>
        </div><!-- /col1 -->
    </div><!-- /section -->
    <div class="section">
        <div class="col2">
            <h3>$T('swtag-naming')</h3>
        </div><!-- /col2 -->
        <div class="col1">
            <fieldset>
                <div class="field-pair alt">
                    <label class="config" for="folder_rename">$T('opt-folder_rename')</label>
                    <input type="checkbox" name="folder_rename" id="folder_rename" value="1" <!--#if int($folder_rename) > 0 then 'checked="checked"' else ""#--> />
                    <span class="desc">$T('explain-folder_rename')</span>
                </div>
                <div class="field-pair">
                    <label class="config" for="replace_spaces">$T('opt-replace_spaces')</label>
                    <input type="checkbox" name="replace_spaces" id="replace_spaces" value="1" <!--#if int($replace_spaces) > 0 then 'checked="checked"' else ""#--> />
                    <span class="desc">$T('explain-replace_spaces')</span>
                </div>
                <div class="field-pair alt">
                    <label class="config" for="replace_dots">$T('opt-replace_dots')</label>
                    <input type="checkbox" name="replace_dots" id="replace_dots" value="1" <!--#if int($replace_dots) > 0 then 'checked="checked"' else ""#--> />
                    <span class="desc">$T('explain-replace_dots')</span>
                </div>
                <div class="field-pair">
                    <label class="config" for="replace_illegal">$T('opt-replace_illegal')</label>
                    <input type="checkbox" name="replace_illegal" id="replace_illegal" value="1" <!--#if int($replace_illegal) > 0 then 'checked="checked"' else ""#--> />
                    <span class="desc">$T('explain-replace_illegal')</span>
                </div>
                <div class="field-pair">
                    <input type="submit" value="$T('button-saveChanges')" class="saveButton" />
                </div>
            </fieldset>
        </div><!-- /col1 -->
    </div><!-- /section -->
    <div class="section">
        <div class="col2">
            <h3>$T('swtag-quota')</h3>
        </div><!-- /col2 -->
        <div class="col1">
            <fieldset>
                <div class="field-pair alt">
                    <label class="config" for="quota_size">$T('opt-quota_size')</label>
                    <input type="text" name="quota_size" id="quota_size" value="$quota_size" size="8" />
                    <span class="desc">$T('explain-quota_size')</span>
                </div>
                <div class="field-pair">
                    <label class="config" for="quota_period">$T('opt-quota_period')</label>
                    <select name="quota_period" id="quota_period">
                        <option value="d" <!--#if $quota_period == "d" then 'selected="selected" class="selected"' else ""#--> >$T('day').capitalize()</option>
                        <option value="w" <!--#if $quota_period == "w" then 'selected="selected" class="selected"' else ""#--> >$T('week').capitalize()</option>
                        <option value="m" <!--#if $quota_period == "m" then 'selected="selected" class="selected"' else ""#--> >$T('month').capitalize()</option>
                        <option value="x" <!--#if $quota_period == "x" then 'selected="selected" class="selected"' else ""#--> >$T('manual').capitalize()</option>
                    </select>
                    <span class="desc">$T('explain-quota_period')</span>
                </div>
                <div class="field-pair alt">
                    <label class="config" for="quota_day">$T('opt-quota_day')</label>
                    <input type="text" name="quota_day" id="quota_day" value="$quota_day" size="20" />
                    <span class="desc">$T('explain-quota_day')</span>
                </div>
                <div class="field-pair">
                    <label class="config" for="quota_resume">$T('opt-quota_resume')</label>
                    <input type="checkbox" name="quota_resume" id="quota_resume" value="1" <!--#if int($quota_resume) > 0 then 'checked="checked"' else ""#--> />
                    <span class="desc">$T('explain-quota_resume')</span>
                </div>
                <div class="field-pair">
                    <input type="submit" value="$T('button-saveChanges')" class="saveButton" />
                </div>
            </fieldset>
        </div><!-- /col1 -->
    </div><!-- /section -->
    <div class="padding alt">
        <input type="submit" value="$T('button-saveChanges')" class="saveButton" />
        <input type="button" value="$T('button-restart') SABnzbd" class="sabnzbd_restart" />
    </div>
    </form>
</div><!-- /colmask -->

<!--#include $webdir + "/_inc_footer_uc.tmpl"#-->
