summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorErmal Luçi <eri@pfsense.org>2008-07-16 22:52:52 +0000
committerErmal Luçi <eri@pfsense.org>2008-07-16 22:52:52 +0000
commit2e1abb31502d7b988ad4c541ae23878b26bc375e (patch)
tree08c1998eaf5320d06940b4820f82b2618fe6cd37
parenta83afb1f3fcc048923bcaf0dc239fe529be26554 (diff)
downloadpfsense-2e1abb31502d7b988ad4c541ae23878b26bc375e.zip
pfsense-2e1abb31502d7b988ad4c541ae23878b26bc375e.tar.gz
Improve my crunkines with html.
-rw-r--r--etc/inc/shaper.inc67
1 files changed, 34 insertions, 33 deletions
diff --git a/etc/inc/shaper.inc b/etc/inc/shaper.inc
index b028c56..2f1391f 100644
--- a/etc/inc/shaper.inc
+++ b/etc/inc/shaper.inc
@@ -2712,8 +2712,40 @@ class dnpipe_class extends dummynet_class {
$form .= ">Bit/s</option>";
$form .= "</select>";
$form .= "</td></tr>";
+ $form .= "<tr><td valign=\"top\" class=\"vncellreq\">Mask</td>";
+ $form .= "<td class=\"vncellreq\">";
+ $form .= "<select name=\"mask\" class=\"formselect\">";
+ $form .= "<option value=\"none\"";
+ if ($this->GetMask() == "none")
+ $form .= " selected=\"yes\"";
+ $form .= ">none</option>";
+ $form .= "<option value=\"srcaddress\"";
+ if ($this->GetMask() == "srcaddress")
+ $form .= " selected=\"yes\"";
+ $form .= ">Source addresses</option>";
+ $form .= "<option value=\"dstaddress\"";
+ if ($this->GetMask() == "dstaddress")
+ $form .= " selected=\"yes\"";
+ $form .= ">Destination addresses</option>";
+ $form .= "</select>";
+ $form .= "&nbsp;slots<br>";
+ $form .= "<span class=\"vexpl\">If 'source' or 'destination' is chosen, \n";
+ $form .= "a dynamic pipe with the bandwidth, delay, packet loss and queue size given above will \n";
+ $form .= "be created for each source/destination IP address encountered, \n";
+ $form .= "respectively. This makes it possible to easily specify bandwidth \n";
+ $form .= "limits per host.</span>";
+ $form .= "</td></tr>";
+ $form .= "<tr><td valign=\"top\" class=\"vncellreq\">Description</td>";
+ $form .= "<td class=\"vncellreq\">";
+ $form .= "<input type=\"text\" class=\"formfld unknown\" size=\"50%\" id=\"description\" name=\"description\" value=\"";
+ $form .= $this->GetDescription();
+ $form .= "\">";
+ $form .= "<br> <span class=\"vexpl\">";
+ $form .= "You may enter a description here ";
+ $form .= "for your reference (not parsed).</span>";
+ $form .= "</td></tr>";
$form .= "<tr id=\"sprtable4\" name=\"sprtable4\">";
- $form .= "<td valign=\"top\" class=\"vncellreq\">Advanced</td>";
+ $form .= "<td></td>";
$form .= "<td><div id=\"showadvancedboxspr\">";
$form .= "<p><input type=\"button\" onClick=\"show_source_port_range()\"";
$form .= " value=\"Show\"></input> - Show source port range</a>";
@@ -2747,38 +2779,7 @@ class dnpipe_class extends dummynet_class {
$form .= "then they are delayed by value specified in the Delay field, and then they ";
$form .= "are delivered to their destination.</span>";
$form .= "</td></tr>";
- $form .= "<tr><td valign=\"top\" class=\"vncellreq\">Mask</td>";
- $form .= "<td class=\"vncellreq\">";
- $form .= "<select name=\"mask\" class=\"formselect\">";
- $form .= "<option value=\"none\"";
- if ($this->GetMask() == "none")
- $form .= " selected=\"yes\"";
- $form .= ">none</option>";
- $form .= "<option value=\"srcaddress\"";
- if ($this->GetMask() == "srcaddress")
- $form .= " selected=\"yes\"";
- $form .= ">Source addresses</option>";
- $form .= "<option value=\"dstaddress\"";
- if ($this->GetMask() == "dstaddress")
- $form .= " selected=\"yes\"";
- $form .= ">Destination addresses</option>";
- $form .= "</select>";
- $form .= "&nbsp;slots<br>";
- $form .= "<span class=\"vexpl\">If 'source' or 'destination' is chosen, \n";
- $form .= "a dynamic pipe with the bandwidth, delay, packet loss and queue size given above will \n";
- $form .= "be created for each source/destination IP address encountered, \n";
- $form .= "respectively. This makes it possible to easily specify bandwidth \n";
- $form .= "limits per host.</span>";
- $form .= "</td></tr>";
- $form .= "<tr><td valign=\"top\" class=\"vncellreq\">Description</td>";
- $form .= "<td class=\"vncellreq\">";
- $form .= "<input type=\"text\" class=\"formfld unknown\" size=\"50%\" id=\"description\" name=\"description\" value=\"";
- $form .= $this->GetDescription();
- $form .= "\">";
- $form .= "<br> <span class=\"vexpl\">";
- $form .= "You may enter a description here ";
- $form .= "for your reference (not parsed).</span>";
- $form .= "</td></tr>";
+
return $form;
OpenPOWER on IntegriCloud