Coding standards
Security in ResourceSpace
Developer reference
Database
Action functions
Admin functions
Ajax functions
Annotation functions
API functions
Collections functions
Comment functions
Config functions
CSV export functions
Dash functions
Debug functions
Encryption functions
Facial recognition functions
File functions
General functions
Language functions
Log functions
Login functions
Message functions
Migration functions
Node functions
PDF functions
Plugin functions
Render functions
Reporting functions
Request functions
Research functions
Slideshow functions
Theme permission functions
User functions
Video functions
Database functions
Metadata functions
Resource functions
Search functions
Map functions
Job functions
Tab functions
Test functions

config_single_group_select()

Parameters

ColumnTypeDefaultDescription
$name
$label
$current array
$width 300

Location

include/plugin_functions.php lines 836 to 855

Definition

 
function config_single_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?>" style="width: echo $width ?>px">

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

    
}

This article was last updated 7th September 2024 21:35 Europe/London time based on the source file dated 29th July 2024 11:00 Europe/London time.