some search.php refactoring; fixed 'ignore' checkbox