// Copyright: Matthias Steffens and the file's // original author(s). // // This code is distributed in the hope that it will be useful, // but WITHOUT ANY WARRANTY. Please see the GNU General Public // License for more details. // // File: ./includes/results_header.inc.php // Repository: $HeadURL: file:///svn/p/refbase/code/branches/bleeding-edge/includes/results_header.inc.php $ // Author(s): Matthias Steffens // // Created: 07-May-04, 14:38 // Modified: $Date: 2008-09-29 21:36:08 +0000 (Mon, 29 Sep 2008) $ // $Author: msteffens $ // $Revision: 1248 $ // This is the results header include file. // It contains functions that build the results header // which gets displayed on every search results page. // TODO: I18n // -------------------------------------------------------------------- function displayResultsHeader($href, $formElementsGroup, $formElementsRefine, $formElementsDisplayOptions, $displayType) { global $useVisualEffects; // these variables are defined in 'ini.inc.php' global $displayResultsHeaderDefault; global $loc; // defined in 'locales/core.php' $resultsHeaderToggleText = "Search & Display Options"; if (isset($displayResultsHeaderDefault[$displayType]) AND ($displayResultsHeaderDefault[$displayType] == "open")) { $resultsHeaderDisplayStyle = "block"; $resultsHeaderToggleImage = "img/open.gif"; $resultsHeaderInitialToggleText = ""; } else { $resultsHeaderDisplayStyle = "none"; $resultsHeaderToggleImage = "img/closed.gif"; $resultsHeaderInitialToggleText = encodeHTML($resultsHeaderToggleText); // function 'encodeHTML()' is defined in 'include.inc.php' } if ($useVisualEffects == "yes") $toggleVisibilityFunction = "toggleVisibilitySlide"; else $toggleVisibilityFunction = "toggleVisibility"; ?>