Collections functions
Encryption functions
General functions
Render functions
Theme permission functions
Video functions
Resource functions

render_advanced_search_buttons()

Parameters

This function accepts no parameters.

Location

include/search_functions.php lines 2899 to 2923

Definition

 
function render_advanced_search_buttons() 
    {
    global 
$lang$swap_clear_and_search_buttons$baseurl_short;
 
    
$button_search "<input name=\"dosearch\" class=\"dosearch\" type=\"submit\" value=\"" $lang["action-viewmatchingresults"] . "\" />";
    
$button_reset "<input name=\"resetform\" class=\"resetform\" type=\"submit\" onClick=\"unsetCookie('search_form_submit','" $baseurl_short "')\" value=\""$lang["clearbutton"] . "\" />";
        
    
$html'
            <div class="QuestionSubmit QuestionSticky">
            <label for="buttons"> </label>
            {button1}
            &nbsp;
            {button2}
            </div>'
;
        
    if (
$swap_clear_and_search_buttons)
            {
            
$content_replace = array("{button1}" => $button_search"{button2}" => $button_reset);
            } else 
            {    
            
$content_replace = array("{button1}" => $button_reset"{button2}" => $button_search);
            }
        
    echo 
strtr($html$content_replace);
    }

This article was last updated 27th November 2020 16:35 Europe/London time based on the source file dated 26th November 2020 14:30 Europe/London time.