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



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.


$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 1139 to 1157


function config_multi_archive_select($name$label$current$choices$width=300)
  <div class="Question">
    <label for=" echo $name?>" title=" echo str_replace('%cvn'$name$lang['plugins-configvar'])?>"> echo $label?></label>
    <fieldset id=" echo $name?>" class="MultiRTypeSelect">

foreach($choices as $statekey => $statename)
'<span id="archivestate' $statekey '"><input type="checkbox" value="'$statekey '" name="' $name '[]" id="' $name $statekey '" ' 
. (isset($current) && $current!='' && in_array($statekey,$current)?' checked="checked"':'') . '> '$statename '<br /></span>';
    <div class="clearerleft"></div>


This article was last updated 23rd April 2021 00:05 Europe/London time based on the source file dated 4th March 2021 12:05 Europe/London time.