From 901aa8b943e6442e4b3540a73fe7c79c9a9cd419 Mon Sep 17 00:00:00 2001 From: Michael Tremer Date: Fri, 25 Oct 2013 11:40:06 +0200 Subject: [PATCH] firewall: Fix layout of protocol selection. --- html/cgi-bin/firewall.cgi | 167 ++++++++++++++++++-------------------- 1 file changed, 79 insertions(+), 88 deletions(-) diff --git a/html/cgi-bin/firewall.cgi b/html/cgi-bin/firewall.cgi index 84c007425..802b2bed3 100755 --- a/html/cgi-bin/firewall.cgi +++ b/html/cgi-bin/firewall.cgi @@ -1730,17 +1730,25 @@ END print"
"; &Header::closebox; #---PROTOCOL------------------------------------------------------ + $fwdfwsettings{'SRC_PORT'} =~ s/\|/,/g; + $fwdfwsettings{'TGT_PORT'} =~ s/\|/,/g; + $fwdfwsettings{'dnatport'} =~ tr/|/,/; + + # The dnatport may be empty, if it matches TGT_PORT + if ($fwdfwsettings{'dnatport'} eq $fwdfwsettings{'TGT_PORT'}) { + $fwdfwsettings{'dnatport'} = ""; + } + &Header::openbox('100%', 'left', $Lang::tr{'fwhost prot'}); #Fix Protocol for JQuery if ($fwdfwsettings{'grp3'} eq 'cust_srv' || $fwdfwsettings{'grp3'} eq 'cust_srvgrp'){ $fwdfwsettings{'PROT'} = 'template'; } print< - +
- - -
- +
- - -
- - - - + +
$Lang::tr{'fwhost icmptype'} - + + + + - -
$Lang::tr{'fwhost icmptype'} +
- + +
+ + + + + + + + + + + + + + + + + + +
+ $Lang::tr{'fwdfw use srcport'} + + + + + $Lang::tr{'fwdfw use srv'} + + +
$Lang::tr{'fwdfw external port nat'}: + +
+ + + + +
+ + $Lang::tr{'fwhost cust service'} + + - - - - - - - - - - - - - - - - -
- $Lang::tr{'fwdfw use srcport'} - - - - - $Lang::tr{'fwdfw use srv'} - - -
$Lang::tr{'fwdfw external port nat'}: - -
- - -
- - - - - - - - + + + + + +
- - $Lang::tr{'fwhost cust service'} - -
- - $Lang::tr{'fwhost cust srvgrp'} - -
+ + $Lang::tr{'fwhost cust srvgrp'} + + +
-
- -


END &Header::closebox; -- 2.39.2