From 9defff1cf4153d389362883427ff4d0ae94ade1e Mon Sep 17 00:00:00 2001 From: glaszig Date: Mon, 19 Aug 2019 00:28:01 +0100 Subject: [PATCH] use template for dhcp page --- includes/dhcp.php | 199 ++------------------------------------------- templates/dhcp.php | 188 ++++++++++++++++++++++++++++++++++++++++++ 2 files changed, 196 insertions(+), 191 deletions(-) create mode 100644 templates/dhcp.php diff --git a/includes/dhcp.php b/includes/dhcp.php index 81bf14c8..a70cdb13 100755 --- a/includes/dhcp.php +++ b/includes/dhcp.php @@ -132,195 +132,12 @@ function DisplayDHCPConfig() } } -?> -
-
-
-
- - dnsmasq -
- -
-

showMessages(); ?>

-
- - - - -
-
-

DHCP server settings

-
-
- - -
-
-
-
- - -
-
- -
-
- - -
-
- -
-
- - -
-
- - -
-
- - " name="savedhcpdsettings" /> - '; - } else { - echo''; - } - ?> -
- -
-

Client list

-
-
-
-
- -
-
- - - - - - - - - - - -'.PHP_EOL; - $lease_items = explode(' ', $lease); - foreach ($lease_items as $lease_item) { - echo ' '.PHP_EOL; - } - echo ' '.PHP_EOL; -}; -?> - -
'.htmlspecialchars($lease_item, ENT_QUOTES).'
-
-
-
-
-
-
- -
-
- - -
-
- " class="form-control"> -
-
- " class="form-control"> -
-
- -
-
- -
- -
-
-
- " class="form-control" autofocus="autofocus"> -
-
- " class="form-control"> -
-
- -
-
- - - - " name="savedhcpdsettings" /> - '; - } else { - echo''; - } - ?> -
- -
-
-
- -
-
-
- +
+
+
+ + dnsmasq +
+ +
+

showMessages(); ?>

+
+ + + + +
+
+

DHCP server settings

+
+
+ + +
+
+
+
+ + +
+
+ +
+
+ + +
+
+ +
+
+ + +
+
+ + +
+
+ +" name="savedhcpdsettings" /> +'; +} else { + echo''; +} +?> +
+ +
+

Client list

+
+
+
+
+ +
+
+ + + + + + + + + + + +'.PHP_EOL; +$lease_items = explode(' ', $lease); +foreach ($lease_items as $lease_item) { + echo ' '.PHP_EOL; +} +echo ' '.PHP_EOL; +}; +?> + +
'.htmlspecialchars($lease_item, ENT_QUOTES).'
+
+
+
+
+
+
+ +
+
+ + +
+
+ " class="form-control"> +
+
+ " class="form-control"> +
+
+ +
+
+ +
+ +
+
+
+ " class="form-control" autofocus="autofocus"> +
+
+ " class="form-control"> +
+
+ +
+
+ + + + " name="savedhcpdsettings" /> + '; + } else { + echo''; + } + ?> +
+ +
+
+
+ +
+
+ \ No newline at end of file