Changeset 9912


Ignore:
Timestamp:
Mar 29, 2011, 11:46:33 AM (13 years ago)
Author:
patdenice
Message:

feature:2236
add "all photos" prefilter

Location:
trunk
Files:
4 edited

Legend:

Unmodified
Added
Removed
  • trunk/admin/batch_manager.php

    r9068 r9912  
    5656  if (isset($_POST['filter_prefilter_use']))
    5757  {
    58     $prefilters = array('caddie', 'last import', 'with no album', 'with no tag', 'with no virtual album', 'duplicates');
     58    $prefilters = array('caddie', 'last import', 'with no album', 'with no tag', 'with no virtual album', 'duplicates', 'all photos');
    5959    if (in_array($_POST['filter_prefilter'], $prefilters))
    6060    {
     
    234234  FROM '.IMAGES_TABLE.'
    235235  WHERE file IN (\''.implode("','", $duplicate_files).'\')
     236;';
     237
     238    array_push(
     239      $filter_sets,
     240      array_from_query($query, 'id')
     241      );
     242  }
     243
     244  if ('all photos' == $_SESSION['bulk_manager_filter']['prefilter'])
     245  {
     246    $query = '
     247SELECT id
     248  FROM '.IMAGES_TABLE.'
    236249;';
    237250
  • trunk/admin/themes/default/template/batch_manager_global.tpl

    r9815 r9912  
    322322          <option value="caddie" {if $filter.prefilter eq 'caddie'}selected="selected"{/if}>{'caddie'|@translate}</option>
    323323          <option value="last import" {if $filter.prefilter eq 'last import'}selected="selected"{/if}>{'last import'|@translate}</option>
    324           <option value="with no album" {if $filter.prefilter eq 'with no album'}selected="selected"{/if}>{'with no album'|@translate}</option> -->
     324          <option value="with no album" {if $filter.prefilter eq 'with no album'}selected="selected"{/if}>{'with no album'|@translate}</option>
    325325{if $ENABLE_SYNCHRONIZATION}
    326326          <option value="with no virtual album" {if $filter.prefilter eq 'with no virtual album'}selected="selected"{/if}>{'with no virtual album'|@translate}</option>
     
    328328          <option value="with no tag" {if $filter.prefilter eq 'with no tag'}selected="selected"{/if}>{'with no tag'|@translate}</option>
    329329          <option value="duplicates" {if $filter.prefilter eq 'duplicates'}selected="selected"{/if}>{'duplicates'|@translate}</option>
     330          <option value="all photos" {if $filter.prefilter eq 'all photos'}selected="selected"{/if}>{'all photos'|@translate}</option>
    330331        </select>
    331332      </li>
  • trunk/language/en_UK/admin.lang.php

    r9528 r9912  
    778778$lang['Visit language site'] = 'Visit language site';
    779779$lang['New Version'] = 'New Version';
     780$lang['all photos'] = 'all photos';
    780781?>
  • trunk/language/fr_FR/admin.lang.php

    r9799 r9912  
    789789$lang['Visit language site'] = 'Visitez le site de la langue';
    790790$lang['New Version'] = 'Nouvelle version';
     791$lang['all photos'] = 'toutes les photos';
    791792?>
Note: See TracChangeset for help on using the changeset viewer.