From 931f47ea8f270617589dce416e66db167ef424ba Mon Sep 17 00:00:00 2001 From: Colin Fleming Date: Fri, 4 Apr 2014 17:58:02 +0100 Subject: Tidy up "services_unbound" XHTML Add "cloeahead" variable and manually close HEAD Add CDATA sections to scripts Add SUMMARY to tables Update HTML Boolean operators Close INPUT Remove duplicate closing TD tag Move TFOOT tag between THEAD and TBODY (quirk of HTML) Add dummy table row, but don't display it Remove duplicate opening and closing TR tags Closing IMG and add ALT Deprecate ampersand --- usr/local/www/services_unbound.php | 127 +++++++++++---------- .../www/services_unbound_domainoverride_edit.php | 14 +-- usr/local/www/services_unbound_host_edit.php | 20 ++-- 3 files changed, 83 insertions(+), 78 deletions(-) (limited to 'usr') diff --git a/usr/local/www/services_unbound.php b/usr/local/www/services_unbound.php index 16bacc9..1921426 100644 --- a/usr/local/www/services_unbound.php +++ b/usr/local/www/services_unbound.php @@ -113,13 +113,14 @@ if ($_POST) { } } +$closehead = false; $pgtitle = array(gettext("Services"),gettext("DNS Resolver")); include_once("head.inc"); ?> +
-

+
" . gettext("You must apply the changes in order for them to take effect."));?>
@@ -156,7 +158,7 @@ function show_advanced_dns() {
- +
@@ -164,16 +166,16 @@ function show_advanced_dns() { +

@@ -240,14 +242,14 @@ function show_advanced_dns() { - @@ -315,7 +316,7 @@ function show_advanced_dns() {

 
-

- onClick="enable_change(false)"> + onclick="enable_change(false)" />
-

- > + />

@@ -232,7 +234,7 @@ function show_advanced_dns() {

- /> + />

- /> + />

- > + />

- > + />

- /> + />

+

> - " /> - + " /> -
>


-

- " onclick="enable_change(true)"> + " onclick="enable_change(true)" />
+
@@ -326,7 +327,7 @@ function show_advanced_dns() {
- +
@@ -334,15 +335,28 @@ function show_advanced_dns() { + + + + + + @@ -358,58 +372,57 @@ function show_advanced_dns() { -
- +
- +
add
+ + + + + +
add
+
  - + + - - - - - -
+ - - + +
')">edit')">delete
- - - - - -
-

- +
- - - +

- +
+ + + + + + @@ -422,30 +435,18 @@ function show_advanced_dns() { - + + - - - - - -
- +
- - + +
add
+ + + + + +
add
+
  -  ')"> edit +  ')">delete
- - - - - -
-
diff --git a/usr/local/www/services_unbound_domainoverride_edit.php b/usr/local/www/services_unbound_domainoverride_edit.php index c9dc70c..6201232 100644 --- a/usr/local/www/services_unbound_domainoverride_edit.php +++ b/usr/local/www/services_unbound_domainoverride_edit.php @@ -119,11 +119,11 @@ include("head.inc");
- +
@@ -163,4 +163,4 @@ include("head.inc"); - \ No newline at end of file + diff --git a/usr/local/www/services_unbound_host_edit.php b/usr/local/www/services_unbound_host_edit.php index 3748530..0e4f754 100644 --- a/usr/local/www/services_unbound_host_edit.php +++ b/usr/local/www/services_unbound_host_edit.php @@ -177,6 +177,7 @@ include("head.inc"); -
-
+

mycompany.localdomain 1.168.192.in-addr.arpa @@ -133,7 +133,7 @@ include("head.inc");
-
+

192.168.100.100
@@ -144,7 +144,7 @@ include("head.inc");
-
+
@@ -153,9 +153,9 @@ include("head.inc");
  - "> " onclick="history.back()"> + " /> " onclick="history.back()" /> - +
+
@@ -205,7 +207,7 @@ include("head.inc"); @@ -213,7 +215,7 @@ include("head.inc"); @@ -221,14 +223,14 @@ include("head.inc");
-
+

-
+

-
+

192.168.100.100 fd00:abcd::1
-
+
- +
-- cgit v1.1
@@ -277,19 +279,21 @@ include("head.inc"); " />
  - "> " onclick="history.back()"> + " /> " onclick="history.back()" /> - +