Collections functions
General functions
Render functions
Theme permission functions
User functions
Resource functions

config_multi_archive_select()

Description

Generate an html multi-select check boxes block for selecting multiple the RS archive states.
The selections are posted as an array of the archive states
archive state.

Parameters

ColumnTypeDefaultDescription
$name string the name of the select block. Usually the name of the config variable being set.
$label string the user text displayed to label the select block. Usually a $lang string.
$current
$choices
$width integer 300 the width of the input field in pixels. Default: 300.
array integer $current the current value of the config variable being set

Location

include/plugin_functions.php lines 1062 to 1084

Definition

 
function config_multi_archive_select($name$label$current$choices$width=300)
    {
    global 
$lang;
    
?>
    <div class="Question">
        <label for=" echo escape_quoted_data($name)?>" title=" echo escape_quoted_data(str_replace('%cvn'$name$lang['plugins-configvar']))?>"> echo htmlspecialchars($label)?></label>
        <fieldset id=" echo escape_quoted_data($name)?>" class="MultiRTypeSelect">
             foreach($choices as $statekey => $statename) { ?>
                <span id="archivestate echo escape_quoted_data($statekey?>">
                    <input type="checkbox"
                        value=" echo escape_quoted_data($statekey?>"
                        name=" echo escape_quoted_data($name) . '[]' ?>"
                        id=" echo escape_quoted_data($name $statekey?>
                         echo (isset($current) && $current!='' && in_array($statekey,$current) ? ' checked="checked"' ''?>>
                    <label for=" echo escape_quoted_data($name $statekey?>"> echo htmlspecialchars($statename?></label>
                    <br />
                </span>
             ?>
        </fieldset>
        <div class="clearerleft"></div>
    </div>
    
    
}

This article was last updated 3rd December 2023 01:05 Europe/London time based on the source file dated 7th September 2023 11:45 Europe/London time.