summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorN0YB <Al_Stu@Frontier.com>2014-06-16 00:14:10 -0700
committerN0YB <Al_Stu@Frontier.com>2014-06-16 00:14:10 -0700
commitb4e9a4da0f438888abfd7f050964776d5bdf463e (patch)
tree60bc7c268642fa63008556d865cd86f1e8b095c7
parentbc3885336de75542b9f5b53b1e8d6b3041b4a513 (diff)
downloadpfsense-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
-rw-r--r--usr/local/www/system_advanced_admin.php2
-rw-r--r--usr/local/www/system_advanced_firewall.php2
-rw-r--r--usr/local/www/system_crlmanager.php4
-rw-r--r--usr/local/www/system_groupmanager.php14
-rw-r--r--usr/local/www/system_usermanager.php14
5 files changed, 28 insertions, 8 deletions
diff --git a/usr/local/www/system_advanced_admin.php b/usr/local/www/system_advanced_admin.php
index b9874c5..5390ee9 100644
--- a/usr/local/www/system_advanced_admin.php
+++ b/usr/local/www/system_advanced_admin.php
@@ -360,7 +360,7 @@ function prot_change() {
if ($pconfig['ssl-certref'] == $cert['refid'])
$selected = "selected=\"selected\"";
?>
- <option value="<?=$cert['refid'];?>"<?=$selected;?>><?=$cert['descr'];?></option>
+ <option value="<?=$cert['refid'];?>" <?=$selected;?>><?=$cert['descr'];?></option>
<?php endforeach; ?>
</select>
</td>
diff --git a/usr/local/www/system_advanced_firewall.php b/usr/local/www/system_advanced_firewall.php
index e3a523d..60d1f04 100644
--- a/usr/local/www/system_advanced_firewall.php
+++ b/usr/local/www/system_advanced_firewall.php
@@ -324,7 +324,7 @@ function update_description(itemnum) {
<option value="conservative"<?php if($config['system']['optimization']=="conservative") echo " selected=\"selected\""; ?>><?=gettext("conservative");?></option>
</select>
<br />
- <textarea readonly="readonly" cols="60" rows="2" id="info" name="info"style="padding:5px; border:1px dashed #990000; background-color: #ffffff; color: #000000; font-size: 8pt;"></textarea>
+ <textarea readonly="readonly" cols="60" rows="2" id="info" name="info" style="padding:5px; border:1px dashed #990000; background-color: #ffffff; color: #000000; font-size: 8pt;"></textarea>
<script type="text/javascript">
//<![CDATA[
update_description(document.forms[0].optimization.selectedIndex);
diff --git a/usr/local/www/system_crlmanager.php b/usr/local/www/system_crlmanager.php
index b66b1ac..099a6e1 100644
--- a/usr/local/www/system_crlmanager.php
+++ b/usr/local/www/system_crlmanager.php
@@ -311,7 +311,7 @@ function method_change() {
if ($pconfig['method'] == $method)
$selected = "selected=\"selected\"";
?>
- <option value="<?=$method;?>"<?=$selected;?>><?=$desc;?></option>
+ <option value="<?=$method;?>" <?=$selected;?>><?=$desc;?></option>
<?php endforeach; ?>
</select>
</td>
@@ -333,7 +333,7 @@ function method_change() {
if ($pconfig['caref'] == $ca['refid'])
$selected = "selected=\"selected\"";
?>
- <option value="<?=$ca['refid'];?>"<?=$selected;?>><?=$ca['descr'];?></option>
+ <option value="<?=$ca['refid'];?>" <?=$selected;?>><?=$ca['descr'];?></option>
<?php endforeach; ?>
</select>
</td>
diff --git a/usr/local/www/system_groupmanager.php b/usr/local/www/system_groupmanager.php
index c62a8c8..b2e65f7 100644
--- a/usr/local/www/system_groupmanager.php
+++ b/usr/local/www/system_groupmanager.php
@@ -299,14 +299,19 @@ function presubmit() {
<br />
<select size="10" style="width: 75%" name="notmembers[]" class="formselect" id="notmembers" onchange="clear_selected('members')" multiple="multiple">
<?php
+ $rowIndex = 0;
foreach ($config['system']['user'] as $user):
if (is_array($pconfig['members']) && in_array($user['uid'],$pconfig['members']))
continue;
+ $rowIndex++;
?>
<option value="<?=$user['uid'];?>" <?=$selected;?>>
<?=htmlspecialchars($user['name']);?>
</option>
- <?php endforeach; ?>
+ <?php endforeach;
+ if ($rowIndex == 0)
+ echo "<option></option>";
+ ?>
</select>
<br />
</td>
@@ -325,14 +330,19 @@ function presubmit() {
<br />
<select size="10" style="width: 75%" name="members[]" class="formselect" id="members" onchange="clear_selected('notmembers')" multiple="multiple">
<?php
+ $rowIndex = 0;
foreach ($config['system']['user'] as $user):
if (!(is_array($pconfig['members']) && in_array($user['uid'],$pconfig['members'])))
continue;
+ $rowIndex++;
?>
<option value="<?=$user['uid'];?>">
<?=htmlspecialchars($user['name']);?>
</option>
- <?php endforeach; ?>
+ <?php endforeach;
+ if ($rowIndex == 0)
+ echo "<option></option>";
+ ?>
</select>
<br />
</td>
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>
OpenPOWER on IntegriCloud