From 2174be2212cc9388600c3387fd61faac1a1e745d Mon Sep 17 00:00:00 2001 From: Colin Fleming Date: Fri, 22 Mar 2013 14:42:57 +0000 Subject: [PATCH] Tidy up "traffic shaper limiter" XHTML Close INPUT, BR, IMG and P tags Add "alt" to IMG tags Deprecate ampersand in ANCHOR tags Add CDATA section to scripts Move "tree.css" and "tree.js" to the HEAD statement and manually close the HEAD statement Spelling mistatke Updated PHP shorthand tag --- usr/local/www/firewall_shaper_vinterface.php | 43 +++++++++++--------- 1 file changed, 24 insertions(+), 19 deletions(-) diff --git a/usr/local/www/firewall_shaper_vinterface.php b/usr/local/www/firewall_shaper_vinterface.php index 9893de126a..3870e1c0df 100644 --- a/usr/local/www/firewall_shaper_vinterface.php +++ b/usr/local/www/firewall_shaper_vinterface.php @@ -152,7 +152,7 @@ if ($_GET) { $q = new dnqueue_class(); $q->SetPipe($pipe); $output_form .= ""; + $output_form .= " value=\"".$pipe."\" />"; } else if ($addnewpipe) { $q = new dnpipe_class(); $q->SetQname($pipe); @@ -321,23 +321,23 @@ if ($can_add || $addnewaltq) { $output_form .= "GetQname(); + $output_form .= "&queue=" . $queue->GetQname(); } - $output_form .= "&action=add\">"; - $output_form .= ""; + $output_form .= "&action=add\">"; + $output_form .= ""; $output_form .= ""; } $output_form .= "GetQname(); + $output_form .= "&queue=" . $queue->GetQname(); } -$output_form .= "&action=delete\">"; +$output_form .= "&action=delete\">"; $output_form .= ""; + $output_form .= " value=\"" . gettext("Delete this queue") ."\" />"; else - $output_form .= " value=\"" . gettext("Delete virtual interface") ."\">"; + $output_form .= " value=\"" . gettext("Delete virtual interface") ."\" />"; $output_form .= ""; $output_form .= ""; $output_form .= ""; @@ -347,14 +347,13 @@ else $output = "
"; $output .= $output_form; - +$closehead = false; include("head.inc"); ?> - - + + +

-".gettext("You must apply the changes in order for them to take effect."));?>
+".gettext("You must apply the changes in order for them to take effect."));?>

- +
- +
0): ?> -
+

- - " width="17" height="17" border="0"> + + " width="17" height="17" border="0" alt="add" />
- - +
@@ -427,12 +430,14 @@ include("fbegin.inc");