'.$group.'
'; // populate settings for each group foreach ($settings as $set) { if($set["Group"] == $group) { $html = $html. '';
$html = $html.'';
$html = $html.
'
'.$set['Code_Name'].'';
$html = $html.getString ($set['Code_Name'].'_description', $set['Description']);
$html = $html.
'
';
// render different input types based on the settings type
$input = "";
// text - textbox
if($set['Type'] == 'text' )
{
$input = '';
}
// password - hidden text
elseif ($set['Type'] == 'password')
{
$input = '';
}
// readonly
elseif ($set['Type'] == 'readonly')
{
$input = '';
}
// boolean - checkbox
elseif ($set['Type'] == 'boolean')
{
$checked = "";
if ($set['Value'] == "True") { $checked = "checked";};
$input = '';
}
// integer - number input
elseif ($set['Type'] == 'integer')
{
$input = '';
}
// selecttext - dropdown
elseif ($set['Type'] == 'selecttext')
{
$input = '';
}
// selectinteger - dropdown
elseif ($set['Type'] == 'selectinteger')
{
$input = '';
}
// multiselect
elseif ($set['Type'] == 'multiselect')
{
$input = '';
}
// multiselect
elseif ($set['Type'] == 'subnets')
{
$input = $input.
'
';
// Add interface button
$input = $input.
'
';
// list all interfaces as options
$input = $input.'
';
// Remove all interfaces button
$input = $input.'';
}
$html = $html.$input;
$html = $html.'