From 7d8552fc50e0ea445fd59067f67b95557003f687 Mon Sep 17 00:00:00 2001 From: Stephen Beaver Date: Thu, 28 Jan 2016 15:52:59 -0500 Subject: Separator bar stuff moved to pfSenseHelpers.js so that it can be more easily applied to other pages Separators added to firewall_nat.php --- src/usr/local/www/firewall_rules.php | 170 +++-------------------------------- 1 file changed, 12 insertions(+), 158 deletions(-) (limited to 'src/usr/local/www/firewall_rules.php') diff --git a/src/usr/local/www/firewall_rules.php b/src/usr/local/www/firewall_rules.php index fc14e2c..0c2ab29 100644 --- a/src/usr/local/www/firewall_rules.php +++ b/src/usr/local/www/firewall_rules.php @@ -200,7 +200,6 @@ if (!$if || !isset($iflist[$if])) { } if ($_POST) { - $pconfig = $_POST; if ($_POST['apply']) { @@ -290,6 +289,7 @@ if (isset($_POST['del_x'])) { exit; } } else if ($_POST['order-store']) { + /* update rule order, POST[rule] is an array of ordered IDs */ if (is_array($_POST['rule']) && !empty($_POST['rule'])) { $a_filter_new = array(); @@ -469,9 +469,10 @@ $seps = 0; // There can be a separator before any rules are listed if ($config['filter']['separator'][strtolower($if)]['sep0']['row'][0] == "fr-1") { + $cellcolor = $config['filter']['separator'][strtolower($if)]['sep0']['color']; print('' . - '' . '' . $config['filter']['separator'][strtolower($if)]['sep0']['text'] . '' . - '' . + '' . '' . $config['filter']['separator'][strtolower($if)]['sep0']['text'] . '' . + '' . '' . "\n"); } @@ -875,6 +876,14 @@ for ($i = 0; isset($a_filter[$i]); $i++): -- cgit v1.1