
<a href="${helpuri}Configure+Sorting-0-7" id="help" target="_blank">$T('menu-help')</a><h3>$T('configSort')</h3>
<!--action="config/directories/saveDirectories" method="post"-->
<form id="configSorting" class="cmxform" action="">
<div class="EntryBlock">
<fieldset class="EntryFieldSet">
<input id="complete_dir" type="hidden" value="$complete_dir" />
<legend>$T('seriesSorting')</legend>
<hr />

  <label><span class="label">$T('opt-tvsort'):</span>
  <input class="radio" type="checkbox" name="enable_tv_sorting" value="1" <!--#if $enable_tv_sorting > 0 then "checked=1" else ""#--> />
  <span class="tips">$T('explain-tvsort')</span></label>
  <br class="clear" />
  <label class="label">$T('affectedCat'):</label>
  <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" />
  <a onclick="javascript:toggle('Keytable','',{duration:0.2})">[$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="">Original Filename</span>
      <span class="">%fn</span>
      <span class="">Episode Name</span>
      <br />-->
  </div><br class="clear" /><br class="clear" />
  <label class="label">$T('sortString'):</label>
  <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" />
  <label class="label">$T('presetSort'):</label>
  <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" />
  $T('example'): <span id="previewtv"></span>
  <br class="clear" /><br class="clear" />
</fieldset>

<fieldset class="EntryFieldSet">
<legend>$T('genericSort')</legend>
<hr />
  <label><span class="label">$T('opt-movieSort'):</span>
  <input class="radio" type="checkbox" name="enable_movie_sorting" value="1" <!--#if $enable_movie_sorting > 0 then "checked=1" else ""#--> />
  <span class="tips">$T('explain-movieSort')</span></label>
  <br class="clear" />
  <label><span class="label">$T('opt-movieExtra'):</span>
  <input class="radio" type="checkbox" name="movie_extra_folder" id="movie_extra_folder" value="1" <!--#if $movie_extra_folder > 0 then "checked=1" else ""#--> />
  <span class="tips">$T('explain-movieExtra')</span></label>
  <br class="clear" />
  <label class="label">$T('affectedCat'):</label>
  <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" />
  <a onclick="javascript:toggle('Keytable2','',{duration:0.2})">[$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" />
  <label class="label">$T('sortString'):</label>
  <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" />
  <label class="label">Multi-part label:</label>
  <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" />
  <label class="label">$T('presetSort'):</label>
  <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" />
  $T('example'): <span id="previewmovie"></span>
  <br class="clear" /><br class="clear" />
</fieldset>

<br class="clear" />
<fieldset class="EntryFieldSet">
<legend>$T('dateSorting')</legend>
<hr />
  <label><span class="label">$T('opt-dateSort'):</span>
  <input class="radio" type="checkbox" name="enable_date_sorting" value="1" <!--#if $enable_date_sorting > 0 then "checked=1" else ""#--> />
  <span class="tips">$T('explain-dateSort')</span></label>
  <br class="clear" />
  <label class="label">$T('affectedCat'):</label>
  <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" />
  <a onclick="javascript:toggle('Keytable3','',{duration:0.2})">[$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" /><br class="clear" />
  <label class="label">$T('sortString'):</label>
  <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" />
  <label class="label">$T('presetSort'):</label>
  <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" />
  $T('example'): <span id="previewdate"></span>

</fieldset>


</div><br class="clear" />
<input type="button" size="40" value="$T('button-save')" onclick="javascript:submitconfig('config/sorting/saveSorting', this, 'configSorting')">
</form>


