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:
parent
bc1f5319b1
commit
48c6d7e8a4
12 changed files with 388 additions and 42 deletions
|
|
@ -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']))
|
||||
{
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue