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

config_multi_group_select()

Parameters

ColumnTypeDefaultDescription
$name
$label
$current array
$width 300

Location

include/plugin_functions.php lines 881 to 900

Definition

 
function config_multi_group_select($name$label$current=array(), $width=300)
    {
    global 
$lang;
?>
  <div class="Question">
    <label for=" echo $name?>" title=" echo escape(str_replace('%cvn'$name$lang['plugins-configvar'])); ?>"> echo escape($label); ?></label>
    <select name=" echo $name?>[]" id=" echo $name?>" class="MultiSelect" multiple="multiple" size="7" style="width: echo $width ?>px">

    $usergroups
=get_usergroups();
    foreach (
$usergroups as $usergroup)
        {
        echo 
'    <option value="' $usergroup['ref'] . '"' . ((in_array($usergroup['ref'],$current))?' selected':'') . '>' $usergroup['name'] . '</option>';
        }
?>
    </select>
    <div class="clearerleft"></div>
  </div>
  

    
}

This article was last updated 14th July 2024 18:35 Europe/London time based on the source file dated 12th July 2024 13:45 Europe/London time.