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



Generate an html checkbox options block

used to generate the values of the checkbox, and the values are the checkbox labels the user sees. (But see
$usekeys, below.)
If set to false the values from $choices will be used for both the values of the options
and the text the user sees. Defaulted to true.


$name string the name of the checkbox block.
$label string the user text displayed to label the checkbox block. Usually a $lang string.
$usekeys boolean true tells whether to use the keys from $choices as the values of the options.
$width integer 300 the width of the input field in pixels. Default: 300.
$columns integer 1 the number of columns to use
$autosave false
$on_change_js null
$hidden false
array string $choices the array of choices -- the list of checkboxes. The keys are


include/config_functions.php lines 761 to 820


function config_checkbox_select($name$label$current$choices$usekeys=true$width=300$columns=1$autosave false,$on_change_js=null$hidden=false)
$wrap 0;
    <div class="Question" id="question_ echo $name?> if ($hidden){echo "style=\"display:none;\"";} ?> >
    <label for=" echo htmlspecialchars($name)?>" > echo htmlspecialchars($label)?></label>
            <div class="AutoSaveStatus">
                <span id="AutoSaveStatus- echo $name?>" style="display:none;"></span>
        <table cellpadding=2 cellspacing=0>
foreach($choices as $key => $choice)
$wrap $columns)
$wrap 1;
            <td width="1">
                <input type="checkbox"
                       name=" echo $name?>"
                       value=" echo $value?>"
if($autosave) { ?> onChange=" echo $on_change_js?>AutoSaveConfigOption(' echo $name?>');" }
            <td> echo htmlspecialchars(i18n_get_translated($choice)); ?>&nbsp;</td>
        <div class="clearerleft"></div>


This article was last updated 17th May 2021 23:35 Europe/London time based on the source file dated 10th May 2021 17:30 Europe/London time.