Changeset 9912 for trunk/admin


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

feature:2236
add "all photos" prefilter

Location:
trunk/admin
Files:
2 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>
Note: See TracChangeset for help on using the changeset viewer.