diff options
author | N0YB <Al_Stu@Frontier.com> | 2014-06-16 00:14:10 -0700 |
---|---|---|
committer | N0YB <Al_Stu@Frontier.com> | 2014-06-16 00:14:10 -0700 |
commit | b4e9a4da0f438888abfd7f050964776d5bdf463e (patch) | |
tree | 60bc7c268642fa63008556d865cd86f1e8b095c7 /usr/local/www/system_usermanager.php | |
parent | bc3885336de75542b9f5b53b1e8d6b3041b4a513 (diff) | |
download | pfsense-b4e9a4da0f438888abfd7f050964776d5bdf463e.zip pfsense-b4e9a4da0f438888abfd7f050964776d5bdf463e.tar.gz |
XHTML Compliance - System Menu
Advanced - Admin Access Tab
Advanced - Firewall / NAT Tab
Cert Manager - Certificate Revocation Tab
User Manager - Users Tab
User Manager - Groups Tab
Diffstat (limited to 'usr/local/www/system_usermanager.php')
-rw-r--r-- | usr/local/www/system_usermanager.php | 14 |
1 files changed, 12 insertions, 2 deletions
diff --git a/usr/local/www/system_usermanager.php b/usr/local/www/system_usermanager.php index cf7db11..a844922 100644 --- a/usr/local/www/system_usermanager.php +++ b/usr/local/www/system_usermanager.php @@ -523,16 +523,21 @@ function sshkeyClicked(obj) { <br /> <select size="10" style="width: 75%" name="notgroups[]" class="formselect" id="notgroups" onchange="clear_selected('groups')" multiple="multiple"> <?php + $rowIndex = 0; foreach ($config['system']['group'] as $group): if ($group['gid'] == 1998) /* all users group */ continue; if (is_array($pconfig['groups']) && in_array($group['name'],$pconfig['groups'])) continue; + $rowIndex++; ?> <option value="<?=$group['name'];?>" <?=$selected;?>> <?=htmlspecialchars($group['name']);?> </option> - <?php endforeach; ?> + <?php endforeach; + if ($rowIndex == 0) + echo "<option></option>"; + ?> </select> <br /> </td> @@ -551,18 +556,23 @@ function sshkeyClicked(obj) { <br /> <select size="10" style="width: 75%" name="groups[]" class="formselect" id="groups" onchange="clear_selected('nogroups')" multiple="multiple"> <?php + $rowIndex = 0; if (is_array($pconfig['groups'])) { foreach ($config['system']['group'] as $group): if ($group['gid'] == 1998) /* all users group */ continue; if (!in_array($group['name'],$pconfig['groups'])) continue; + $rowIndex++; ?> <option value="<?=$group['name'];?>"> <?=htmlspecialchars($group['name']);?> </option> <?php endforeach; - } ?> + } + if ($rowIndex == 0) + echo "<option></option>"; + ?> </select> <br /> </td> |