From 97b76cd2917e352cc160f9522b9b356668fa0d0e Mon Sep 17 00:00:00 2001 From: Franco Fichtner Date: Fri, 15 Jul 2022 15:11:49 +0200 Subject: [PATCH] dhcp: remove print_content_box() use and make it all consistent --- src/www/guiconfig.inc | 12 ------------ src/www/services_dhcp.php | 12 +++++------- src/www/services_dhcp_relay.php | 12 ++++++------ src/www/services_dhcpv6.php | 9 ++++----- src/www/services_dhcpv6_relay.php | 9 ++++----- 5 files changed, 19 insertions(+), 35 deletions(-) diff --git a/src/www/guiconfig.inc b/src/www/guiconfig.inc index 04f8172e8..7c07e247a 100644 --- a/src/www/guiconfig.inc +++ b/src/www/guiconfig.inc @@ -207,18 +207,6 @@ function print_alert_box($msg, $alert = 'warning', $button = '') EOFnp; } -function print_content_box($msg) -{ - echo << - - -
{$msg}
- - -EOFnp; -} - function print_info_box_apply($msg, $alert = 'info') { $iface = !empty($_POST['if']) ? $_POST['if'] : (!empty($_GET['if']) ? $_GET['if'] : ''); diff --git a/src/www/services_dhcp.php b/src/www/services_dhcp.php index a456c0fb4..0be2b5f1b 100644 --- a/src/www/services_dhcp.php +++ b/src/www/services_dhcp.php @@ -601,15 +601,15 @@ include("head.inc");
+ + + 0) print_input_errors($input_errors); ?>
" . gettext("You must apply the changes in order for them to take effect."));?>
- - -
@@ -1204,10 +1204,8 @@ include("head.inc");
- - + +
diff --git a/src/www/services_dhcp_relay.php b/src/www/services_dhcp_relay.php index 31672e385..2341867f4 100644 --- a/src/www/services_dhcp_relay.php +++ b/src/www/services_dhcp_relay.php @@ -102,16 +102,16 @@ include("head.inc");
+ 0) print_input_errors($input_errors); ?>
-
@@ -176,10 +176,10 @@ include("head.inc");
-
+
diff --git a/src/www/services_dhcpv6.php b/src/www/services_dhcpv6.php index 96776227f..d82c279bd 100644 --- a/src/www/services_dhcpv6.php +++ b/src/www/services_dhcpv6.php @@ -430,6 +430,9 @@ include("head.inc");
+ + + 0) print_input_errors($input_errors); ?>

@@ -438,9 +441,6 @@ include("head.inc");

- - -
@@ -812,9 +812,8 @@ include("head.inc"); endif; ?>
-
+
diff --git a/src/www/services_dhcpv6_relay.php b/src/www/services_dhcpv6_relay.php index 7b7001613..95793bad1 100644 --- a/src/www/services_dhcpv6_relay.php +++ b/src/www/services_dhcpv6_relay.php @@ -102,12 +102,12 @@ include("head.inc");
+ 0) print_input_errors($input_errors); ?>
-
@@ -178,9 +178,8 @@ include("head.inc");
-
+