<!--#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')
    <!--#if $varExists('newzbinDetails')#--> $T('reportId') / <!--#end if#-->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"#-->
