Changeset 8419


Ignore:
Timestamp:
12/31/10 17:43:59 (8 years ago)
Author:
plg
Message:

feature 2091: Batch Manager, find all orphan photos

Location:
trunk
Files:
4 edited

Legend:

Unmodified
Added
Removed
  • trunk/admin/batch_manager.php

    r8413 r8419  
    178178  } 
    179179 
     180  if ('with no album' == $_SESSION['bulk_manager_filter']['prefilter']) 
     181  { 
     182    $query = ' 
     183SELECT 
     184    id 
     185  FROM '.IMAGES_TABLE.' 
     186    LEFT JOIN '.IMAGE_CATEGORY_TABLE.' ON id = image_id 
     187  WHERE category_id is null 
     188;'; 
     189    array_push( 
     190      $filter_sets, 
     191      array_from_query($query, 'id') 
     192      ); 
     193  } 
     194 
    180195  if ('duplicates' == $_SESSION['bulk_manager_filter']['prefilter']) 
    181196  { 
  • trunk/admin/themes/default/template/batch_manager_global.tpl

    r8413 r8419  
    345345          <option value="caddie" {if $filter.prefilter eq 'caddie'}selected="selected"{/if}>{'caddie'|@translate}</option> 
    346346          <option value="last import" {if $filter.prefilter eq 'last import'}selected="selected"{/if}>{'last import'|@translate}</option> 
     347          <option value="with no album" {if $filter.prefilter eq 'with no album'}selected="selected"{/if}>{'with no album'|@translate}</option> --> 
    347348{if $ENABLE_SYNCHRONIZATION} 
    348349          <option value="with no virtual album" {if $filter.prefilter eq 'with no virtual album'}selected="selected"{/if}>{'with no virtual album'|@translate}</option> 
    349350{/if} 
    350351          <option value="duplicates" {if $filter.prefilter eq 'duplicates'}selected="selected"{/if}>{'duplicates'|@translate}</option> 
    351 <!--          <option value="with no album">with no album</option> --> 
    352352<!--          <option value="with no tag">with no tag</option> --> 
    353353        </select> 
  • trunk/language/en_UK/admin.lang.php

    r8418 r8419  
    798798$lang['Type here the title'] = 'Type here the title'; 
    799799$lang['remove creation date'] = 'remove creation date'; 
     800$lang['with no album'] = 'with no album'; 
    800801?> 
  • trunk/language/fr_FR/admin.lang.php

    r8418 r8419  
    803803$lang['Type here the title'] = 'Entrez ici le titre'; 
    804804$lang['remove creation date'] = 'supprimer la date de création'; 
     805$lang['with no album'] = 'sans album'; 
    805806?> 
Note: See TracChangeset for help on using the changeset viewer.