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



Generate an html multi-select check boxes block for selecting multiple the RS resource types. The
selected field type is posted as an array of the values of the "ref" column of the selected
resource types.


$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.
$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


include/plugin_functions.php lines 1015 to 1036


function config_multi_rtype_select($name$label$current$width=300)
    <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($rtypes as $rtype) { ?>
                <input type="checkbox"
                    value=" echo escape_quoted_data($rtype['ref']) ?>"
                    name=" echo escape_quoted_data($name?>[]"
                    id=" echo escape_quoted_data($name $rtype['ref']) ?>"
                     echo (in_array($rtype['ref'],$current) ? ' checked="checked"' ''?>>
                <label for=" echo escape_quoted_data($name $rtype['ref']) ?>"> echo htmlspecialchars(lang_or_i18n_get_translated($rtype['name'],'resourcetype-')) ?></label>
                <br />
        <div class="clearerleft"></div>

This article was last updated 29th November 2023 08:35 Europe/London time based on the source file dated 7th September 2023 11:45 Europe/London time.