diff options
author | plegall <plg@piwigo.org> | 2006-01-27 22:40:51 +0000 |
---|---|---|
committer | plegall <plg@piwigo.org> | 2006-01-27 22:40:51 +0000 |
commit | 61668e4cf7627f3f2d56d92c6e80ff72b38965fa (patch) | |
tree | 052c70867a98c6fb8a0e8d721c0e317e2e0d68ad /category.php | |
parent | a8fd5ee6cf5cf061ed0ff789d6030290b3418be5 (diff) |
Search engine redesign, second part :
improvement: in category.php, an icon opening a popup display the list of
search rules.
modification: function get_search_array is responsible of search rules
retrieving from database. This function is called from get_sql_search_clause
and from search_rules.php
modification: ability to search multiple authors. Warning: this version of
search tool can't search author names including any blank space.
git-svn-id: http://piwigo.org/svn/trunk@1015 68402e56-0260-453c-a942-63ccdbb3a9ee
Diffstat (limited to 'category.php')
-rw-r--r-- | category.php | 10 |
1 files changed, 10 insertions, 0 deletions
diff --git a/category.php b/category.php index 6a0b7a651..5889f505c 100644 --- a/category.php +++ b/category.php @@ -165,6 +165,16 @@ $template->assign_vars( 'U_PROFILE'=> PHPWG_ROOT_PATH.'profile.php' ) ); + +if (isset($page['cat']) and 'search' == $page['cat']) +{ + $template->assign_block_vars( + 'search_rules', + array( + 'URL' => PHPWG_ROOT_PATH.'/search_rules.php?search_id='.$_GET['search'], + ) + ); +} //-------------------------------------------------------------- external links if (count($conf['links']) > 0) { |