diff options
author | N0YB <Al_Stu@Frontier.com> | 2014-02-26 12:39:39 -0800 |
---|---|---|
committer | N0YB <Al_Stu@Frontier.com> | 2014-02-26 12:39:39 -0800 |
commit | cd83111a4c4802ccb542d344bea8832ad9e47556 (patch) | |
tree | ddfba6e6517bd4611cdce3665b6cfb016709a4f0 /usr/local/www/firewall_rules_edit.php | |
parent | a73ba11b3cdd6fc04fc92be2969a5cd87f69c68b (diff) | |
download | pfsense-cd83111a4c4802ccb542d344bea8832ad9e47556.zip pfsense-cd83111a4c4802ccb542d344bea8832ad9e47556.tar.gz |
XHTML Compliance
Firewall - Rules - Edit
Diffstat (limited to 'usr/local/www/firewall_rules_edit.php')
-rwxr-xr-x | usr/local/www/firewall_rules_edit.php | 27 |
1 files changed, 18 insertions, 9 deletions
diff --git a/usr/local/www/firewall_rules_edit.php b/usr/local/www/firewall_rules_edit.php index c2c61f6..ad4077e 100755 --- a/usr/local/www/firewall_rules_edit.php +++ b/usr/local/www/firewall_rules_edit.php @@ -791,7 +791,7 @@ include("head.inc"); <?=gettext("You cannot edit the interface, protocol, source, or destination of associated filter rules.");?><br /> <br /> <?php - $edit_disabled = "disabled"; + $edit_disabled = "disabled=\"disabled\""; if (is_array($config['nat']['rule'])) { foreach( $config['nat']['rule'] as $index => $nat_rule ) { if( isset($nat_rule['associated-rule-id']) && $nat_rule['associated-rule-id']==$pconfig['associated-rule-id'] ) { @@ -874,7 +874,7 @@ include("head.inc"); </select> <input type="hidden" id="floating" name="floating" value="floating" /> </td> - <tr> + </tr> <?php endif; ?> <tr> <td width="22%" valign="top" class="vncellreq"><?=gettext("TCP/IP Version");?></td> @@ -988,7 +988,7 @@ include("head.inc"); <tr> <td><?=gettext("Address:");?> </td> <td> - <input <?=$edit_disabled;?> autocomplete='off' name="src" type="text" class="formfldalias ipv4v6" id="src" size="20" value="<?php if (!is_specialnet($pconfig['src'])) echo htmlspecialchars($pconfig['src']);?>" /> / + <input <?=$edit_disabled;?> style="autocomplete:off" name="src" type="text" class="formfldalias ipv4v6" id="src" size="20" value="<?php if (!is_specialnet($pconfig['src'])) echo htmlspecialchars($pconfig['src']);?>" /> / <select <?=$edit_disabled;?> name="srcmask" class="formselect ipv4v6" id="srcmask"> <?php for ($i = 127; $i > 0; $i--): ?> <option value="<?=$i;?>" <?php if ($i == $pconfig['srcmask']) echo "selected=\"selected\""; ?>><?=$i;?></option> @@ -1018,7 +1018,7 @@ include("head.inc"); <option value="<?=$wkport;?>" <?php if ($wkport == $pconfig['srcbeginport']) { echo "selected=\"selected\""; $bfound = 1; } ?>><?=htmlspecialchars($wkportdesc);?></option> <?php endforeach; ?> </select> - <input <?=$edit_disabled;?> autocomplete='off' class="formfldalias" name="srcbeginport_cust" id="srcbeginport_cust" type="text" size="5" value="<?php if (!$bfound && $pconfig['srcbeginport']) echo htmlspecialchars($pconfig['srcbeginport']); ?>" /> + <input <?=$edit_disabled;?> style="autocomplete:off" class="formfldalias" name="srcbeginport_cust" id="srcbeginport_cust" type="text" size="5" value="<?php if (!$bfound && $pconfig['srcbeginport']) echo htmlspecialchars($pconfig['srcbeginport']); ?>" /> </td> </tr> <tr> @@ -1031,7 +1031,7 @@ include("head.inc"); <option value="<?=$wkport;?>" <?php if ($wkport == $pconfig['srcendport']) { echo "selected=\"selected\""; $bfound = 1; } ?>><?=htmlspecialchars($wkportdesc);?></option> <?php endforeach; ?> </select> - <input <?=$edit_disabled;?> autocomplete='off' class="formfldalias" name="srcendport_cust" id="srcendport_cust" type="text" size="5" value="<?php if (!$bfound && $pconfig['srcendport']) echo htmlspecialchars($pconfig['srcendport']); ?>" /> + <input <?=$edit_disabled;?> style="autocomplete:off" class="formfldalias" name="srcendport_cust" id="srcendport_cust" type="text" size="5" value="<?php if (!$bfound && $pconfig['srcendport']) echo htmlspecialchars($pconfig['srcendport']); ?>" /> </td> </tr> </table> @@ -1088,7 +1088,7 @@ include("head.inc"); <tr> <td><?=gettext("Address:");?> </td> <td> - <input <?=$edit_disabled;?> autocomplete='off' name="dst" type="text" class="formfldalias ipv4v6" id="dst" size="20" value="<?php if (!is_specialnet($pconfig['dst'])) echo htmlspecialchars($pconfig['dst']);?>" /> + <input <?=$edit_disabled;?> style="autocomplete:off" name="dst" type="text" class="formfldalias ipv4v6" id="dst" size="20" value="<?php if (!is_specialnet($pconfig['dst'])) echo htmlspecialchars($pconfig['dst']);?>" /> / <select <?=$edit_disabled;?> name="dstmask" class="formselect ipv4v6" id="dstmask"> <?php @@ -1116,7 +1116,7 @@ $i--): ?> <option value="<?=$wkport;?>" <?php if ($wkport == $pconfig['dstbeginport']) { echo "selected=\"selected\""; $bfound = 1; }?>><?=htmlspecialchars($wkportdesc);?></option> <?php endforeach; ?> </select> - <input <?=$edit_disabled;?> autocomplete='off' class="formfldalias" name="dstbeginport_cust" id="dstbeginport_cust" type="text" size="5" value="<?php if (!$bfound && $pconfig['dstbeginport']) echo htmlspecialchars($pconfig['dstbeginport']); ?>" /> + <input <?=$edit_disabled;?> style="autocomplete:off" class="formfldalias" name="dstbeginport_cust" id="dstbeginport_cust" type="text" size="5" value="<?php if (!$bfound && $pconfig['dstbeginport']) echo htmlspecialchars($pconfig['dstbeginport']); ?>" /> </td> </tr> <tr> @@ -1129,7 +1129,7 @@ $i--): ?> <option value="<?=$wkport;?>" <?php if ($wkport == $pconfig['dstendport']) { echo "selected=\"selected\""; $bfound = 1; } ?>><?=htmlspecialchars($wkportdesc);?></option> <?php endforeach; ?> </select> - <input <?=$edit_disabled;?> autocomplete='off' class="formfldalias" name="dstendport_cust" id="dstendport_cust" type="text" size="5" value="<?php if (!$bfound && $pconfig['dstendport']) echo htmlspecialchars($pconfig['dstendport']); ?>" /> + <input <?=$edit_disabled;?> style="autocomplete:off" class="formfldalias" name="dstendport_cust" id="dstendport_cust" type="text" size="5" value="<?php if (!$bfound && $pconfig['dstendport']) echo htmlspecialchars($pconfig['dstendport']); ?>" /> </td> </tr> </table> @@ -1274,7 +1274,7 @@ $i--): ?> <input type="button" onclick="show_advanced_tcpflags()" value="<?=gettext("Advanced"); ?>" /> - <?=gettext("Show advanced option");?> </div> <div id="showtcpflagsadv" <?php if (empty($pconfig['tcpflags_any']) && empty($pconfig['tcpflags1']) && empty($pconfig['tcpflags2'])) echo "style='display:none'"; ?>> - <div id="tcpheader" align="center"> + <div id="tcpflagsadv" align="center"> <table border="0" cellspacing="0" cellpadding="0"> <?php $setflags = explode(",", $pconfig['tcpflags1']); @@ -1660,6 +1660,15 @@ $has_updated_time = (isset($a_filter[$id]['updated']) && is_array($a_filter[$id] </form> <script type="text/javascript"> //<![CDATA[ +var autocomplete_off = ['src', 'srcbeginport_cust', 'srcendport_cust', 'dst', 'dstbeginport_cust', 'dstendport_cust']; +for (var i = 0; i < autocomplete_off.length; i++) { + var node = document.getElementById(autocomplete_off[i]); + node.setAttribute("autocomplete",node.style.autocomplete); +} +//]]> +</script> +<script type="text/javascript"> +//<![CDATA[ ext_change(); typesel_change(); proto_change(); |