mirror of
https://github.com/Piwigo/Piwigo.git
synced 2026-06-01 20:04:51 +02:00
feature 519: quick search (first version)
git-svn-id: http://piwigo.org/svn/trunk@1537 68402e56-0260-453c-a942-63ccdbb3a9ee
This commit is contained in:
+20
-8
@@ -61,14 +61,26 @@ $template->set_filenames(array('search_rules' => 'search_rules.tpl'));
|
||||
|
||||
$search = get_search_array($_GET['search_id']);
|
||||
|
||||
$template->assign_vars(
|
||||
array(
|
||||
'INTRODUCTION'
|
||||
=> 'OR' == $search['mode']
|
||||
? l10n('At least one listed rule must be satisfied.')
|
||||
: l10n('Each listed rule must be satisfied.'),
|
||||
)
|
||||
);
|
||||
if (isset($search['q']))
|
||||
{
|
||||
$template->assign_block_vars(
|
||||
'words',
|
||||
array(
|
||||
'CONTENT' => $search['q']
|
||||
)
|
||||
);
|
||||
}
|
||||
else
|
||||
{
|
||||
$template->assign_vars(
|
||||
array(
|
||||
'INTRODUCTION'
|
||||
=> 'OR' == $search['mode']
|
||||
? l10n('At least one listed rule must be satisfied.')
|
||||
: l10n('Each listed rule must be satisfied.'),
|
||||
)
|
||||
);
|
||||
}
|
||||
|
||||
if (isset($search['fields']['allwords']))
|
||||
{
|
||||
|
||||
Reference in New Issue
Block a user