add "Your Favorites" to the filters of the Batch Manager 

git-svn-id: http://piwigo.org/svn/trunk@23746 68402e56-0260-453c-a942-63ccdbb3a9ee
This commit is contained in:
flop25 2013-07-02 19:59:34 +00:00
parent 251bbd5704
commit 46040738d8
3 changed files with 24 additions and 2 deletions

View file

@ -168,6 +168,19 @@ SELECT element_id
);
}
if ('favorites' == $_SESSION['bulk_manager_filter']['prefilter'])
{
$query = '
SELECT image_id
FROM '.FAVORITES_TABLE.'
WHERE user_id = '.$user['id'].'
;';
array_push(
$filter_sets,
array_from_query($query, 'image_id')
);
}
if ('last import'== $_SESSION['bulk_manager_filter']['prefilter'])
{
$query = '

View file

@ -432,6 +432,7 @@ $base_url = get_root_url().'admin.php';
$prefilters = array(
array('ID' => 'caddie', 'NAME' => l10n('Caddie')),
array('ID' => 'favorites', 'NAME' => l10n('Your favorites')),
array('ID' => 'last import', 'NAME' => l10n('Last import')),
array('ID' => 'with no album', 'NAME' => l10n('With no album')),
array('ID' => 'with no tag', 'NAME' => l10n('With no tag')),

View file

@ -29,7 +29,14 @@ jQuery().ready(function(){
if (ext_update)
jQuery(".warnings ul").append('<li>'+ext_need_update_msg+'</li>');
}
});
});
jQuery('.tips').cluetip({
multiple: true,
width: 300,
splitTitle: '|',
positionBy: 'bottomTop',
attribute:'data-help'
});
});
{/literal}
{/footer_script}
@ -46,7 +53,8 @@ jQuery().ready(function(){
{/if}
</ul>
</dd>
<a href="javascript:void(0)" class="externalLink tips" data-help="{'Piwigo Announcements Newsletter'|@translate}|{'Keep in touch with Piwigo project, subscribe to Piwigo Announcement Newsletter. You will receive emails when a new release is available (sometimes including a security bug fix, it\'s important to know and upgrade) and when major events happen to the project. Only a few emails a year.'|@translate|@htmlspecialchars|@nl2br}">TRIGGER</a>
<span data-help="TITLE|BLABLA">TEXT</span>
<dt>{'Environment'|@translate}</dt>
<dd>
<ul>