From 61668e4cf7627f3f2d56d92c6e80ff72b38965fa Mon Sep 17 00:00:00 2001 From: plegall Date: Fri, 27 Jan 2006 22:40:51 +0000 Subject: 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 --- category.php | 10 ++++++++++ 1 file changed, 10 insertions(+) (limited to 'category.php') 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) { -- cgit v1.2.3