Project

General

Profile

« Previous | Next » 

Revision 8cd558b6

Added by ayvis over 11 years ago

xhtml Compliance
replaced <br>, <br/> and </br> with <br />

View differences:

etc/inc/shaper.inc
633 633
	 * to the user like the traffic wizard does.
634 634
	 */
635 635
	function build_form() {
636
		$form = "<tr><td valign=\"middle\" class=\"vncellreq\"><br/>";
636
		$form = "<tr><td valign=\"middle\" class=\"vncellreq\"><br />";
637 637
		$form .= gettext("Enable/Disable");
638
		$form .= "<br/></td><td class=\"vncellreq\">";
638
		$form .= "<br /></td><td class=\"vncellreq\">";
639 639
		$form .= " <input type=\"checkbox\" id=\"enabled\" name=\"enabled\" value=\"on\"";
640 640
		if ($this->GetEnabled() == "on")
641 641
			$form .=  " checked=\"checked\"";
642 642
		$form .= " /><span class=\"vexpl\"> " . gettext("Enable/disable discipline and its children") . "</span>";
643 643
		$form .= "</td></tr>";
644
		$form .= "<tr><td valign=\"middle\" class=\"vncellreq\"><br/><span class=\"vexpl\">" . gettext("Name") . "</span></td>";
644
		$form .= "<tr><td valign=\"middle\" class=\"vncellreq\"><br /><span class=\"vexpl\">" . gettext("Name") . "</span></td>";
645 645
		$form .= "<td class=\"vncellreq\">";
646 646
		$form .= "<strong>".$this->GetQname()."</strong>";
647 647
		$form .= "</td></tr>";
......
670 670
			$form .= " selected=\"selected\"";
671 671
		$form .= ">PRIQ</option>";
672 672
		$form .= "</select>";
673
		$form .= "<br/> <span class=\"vexpl\">";
673
		$form .= "<br /> <span class=\"vexpl\">";
674 674
		$form .= gettext("NOTE: Changing this changes all child queues!");
675 675
		$form .= gettext(" Beware you can lose information.");
676 676
		$form .= "</span>";
......
709 709
		$form .= "<br /><input type=\"text\" id=\"tbrconfig\" name=\"tbrconfig\" value=\"";
710 710
		$form .= $this->GetTbrConfig();
711 711
		$form .= "\" />";
712
		$form .= "<br/> <span class=\"vexpl\">";
712
		$form .= "<br /> <span class=\"vexpl\">";
713 713
		$form .= gettext("Adjusts the size, in bytes, of the token bucket regulator. "
714 714
		      .  "If not specified, heuristics based on the interface "
715 715
		      .  "bandwidth are used to determine the size.");
......
1161 1161
	 * need to update it.
1162 1162
	 */
1163 1163
	function build_form() {
1164
		$form = "<tr><td valign=\"middle\" class=\"vncellreq\"><br/>";
1164
		$form = "<tr><td valign=\"middle\" class=\"vncellreq\"><br />";
1165 1165
		$form .= gettext("Enable/Disable");
1166
		$form .= "<br/></td><td class=\"vncellreq\">";
1166
		$form .= "<br /></td><td class=\"vncellreq\">";
1167 1167
		$form .= " <input type=\"checkbox\" id=\"enabled\" name=\"enabled\" value=\"on\"";
1168 1168
		if ($this->GetEnabled() == "on")
1169 1169
			$form .=  " checked=\"checked\"";
......
1185 1185
		$form .= "<td width=\"78%\" class=\"vtable\"> <input name=\"priority\" type=\"text\" id=\"priority\" size=\"5\" value=\"";
1186 1186
		$form .= htmlspecialchars($this->GetQpriority());
1187 1187
		$form .= "\" />";
1188
		$form .= "<br/> <span class=\"vexpl\">" . gettext("For hfsc, the range is 0 to 7. The default is 1.  Hfsc queues with a higher priority are preferred in the case of overload.") . "</span></td>";
1188
		$form .= "<br /> <span class=\"vexpl\">" . gettext("For hfsc, the range is 0 to 7. The default is 1.  Hfsc queues with a higher priority are preferred in the case of overload.") . "</span></td>";
1189 1189
		$form .= "</tr>";
1190 1190
		$form .= "<tr>";
1191 1191
		$form .= "<td width=\"22%\" valign=\"middle\" class=\"vncellreq\">" . gettext("Queue limit") . "</td>";
1192 1192
		$form .= "<td width=\"78%\" class=\"vtable\"> <input name=\"qlimit\" type=\"text\" id=\"qlimit\" size=\"8\" value=\"";
1193 1193
		$form .= htmlspecialchars($this->GetQlimit());
1194 1194
		$form .= "\" />";
1195
		$form .= "<br/> <span class=\"vexpl\">" . gettext("Queue limit in packets.");
1195
		$form .= "<br /> <span class=\"vexpl\">" . gettext("Queue limit in packets.");
1196 1196
		$form .= "</span></td></tr>";
1197 1197
		$form .= "<tr>";
1198 1198
		$form .= "<td width=\"22%\" valign=\"middle\" class=\"vncell\">" . gettext("Scheduler options") . "</td>";
......
1200 1200
		if (empty($this->subqueues)) {
1201 1201
			if ($this->GetDefault()) {
1202 1202
				$form .= "<input type=\"checkbox\" id=\"default\" checked=\"checked\" name=\"default\" value=\"default\"";
1203
				$form .= " /> " . gettext("Default queue") . "<br/>";
1203
				$form .= " /> " . gettext("Default queue") . "<br />";
1204 1204
			} else {
1205 1205
				$form .= "<input type=\"checkbox\" id=\"default\" name=\"default\" value=\"default\"";
1206
				$form .= " /> " . gettext("Default queue") . "<br/>";
1206
				$form .= " /> " . gettext("Default queue") . "<br />";
1207 1207
			}
1208 1208
		}
1209 1209
		$form .= "<input type=\"checkbox\" id=\"red\" name=\"red\" value=\"red\" ";
1210 1210
		$tmpvalue = $this->GetRed();
1211 1211
		if(!empty($tmpvalue))
1212 1212
			$form .=  " checked=\"checked\"";
1213
		$form .= " /> <a target=\"_new\" href=\"http://www.openbsd.org/faq/pf/queueing.html#red\">" . gettext("Random Early Detection") . "</a><br/>";
1213
		$form .= " /> <a target=\"_new\" href=\"http://www.openbsd.org/faq/pf/queueing.html#red\">" . gettext("Random Early Detection") . "</a><br />";
1214 1214
		$form .= "<input type=\"checkbox\" id=\"rio\" name=\"rio\" value=\"rio\"";
1215 1215
		$tmpvalue = $this->GetRio();
1216 1216
		if(!empty($tmpvalue))
1217 1217
			$form .=  " checked=\"checked\"";
1218
		$form .= " /> <a target=\"_new\" href=\"http://www.openbsd.org/faq/pf/queueing.html#rio\">" . gettext("Random Early Detection In and Out") . "</a><br/>";
1218
		$form .= " /> <a target=\"_new\" href=\"http://www.openbsd.org/faq/pf/queueing.html#rio\">" . gettext("Random Early Detection In and Out") . "</a><br />";
1219 1219
		$form .= "<input type=\"checkbox\" id=\"ecn\" name=\"ecn\" value=\"ecn\"";
1220 1220
		$tmpvalue = $this->GetEcn();
1221 1221
		if(!empty($tmpvalue))
1222 1222
			$form .=  " checked=\"checked\"";
1223
		$form .= " /> <a target=\"_new\" href=\"http://www.openbsd.org/faq/pf/queueing.html#ecn\">" . gettext("Explicit Congestion Notification") . "</a><br/>";
1223
		$form .= " /> <a target=\"_new\" href=\"http://www.openbsd.org/faq/pf/queueing.html#ecn\">" . gettext("Explicit Congestion Notification") . "</a><br />";
1224 1224
		$form .= "<input type=\"checkbox\" id=\"codel\" name=\"codel\" value=\"codel\"";
1225 1225
		$tmpvalue = $this->GetCodel();
1226 1226
		if(!empty($tmpvalue))
1227 1227
			$form .=  " checked=\"checked\"";
1228
		$form .= " /> <a target=\"_new\" href=\"http://www.bufferbloat.net/projects/codel/wiki\">" . gettext("Codel Active Queue") . "</a><br/>";
1229
		$form .= "<span class=\"vexpl\"><br/>" . gettext("Select options for this queue");
1228
		$form .= " /> <a target=\"_new\" href=\"http://www.bufferbloat.net/projects/codel/wiki\">" . gettext("Codel Active Queue") . "</a><br />";
1229
		$form .= "<span class=\"vexpl\"><br />" . gettext("Select options for this queue");
1230 1230
		$form .= "</span></td></tr><tr>";
1231 1231
		$form .= "<td width=\"22%\" class=\"vncellreq\">" . gettext("Description") . "</td>";
1232 1232
		$form .= "<td width=\"78%\" class=\"vtable\">";
......
1934 1934
		if ($this->GetBwscale() == "%")
1935 1935
			$form .= " selected=\"selected\"";
1936 1936
		$form .= ">%</option>";
1937
		$form .= "</select> <br/>";
1937
		$form .= "</select> <br />";
1938 1938
		$form .= "<span class=\"vexpl\">" . gettext("Choose the amount of bandwidth for this queue");
1939 1939
		$form .= "</span></td></tr>";
1940 1940
		$form .= "<tr>";
......
1999 1999
		if ($this->GetLinkshare() == "")
2000 2000
			$form .= " disabled=\"disabled\"";
2001 2001
		$form .= " /></td><td>" . gettext("The bandwidth share of a backlogged queue - this overrides priority.") . "</td></tr>";
2002
		$form .= "</table><br/>";
2002
		$form .= "</table><br />";
2003 2003
		$form .= gettext("The format for service curve specifications is (m1, d, m2).  m2 controls "
2004 2004
		      .  "the bandwidth assigned to the queue.  m1 and d are optional and can be "
2005 2005
		      .  "used to control the initial bandwidth assignment.  For the first d milliseconds the queue gets the bandwidth given as m1, afterwards the value "
......
2420 2420
		if ($this->GetBwscale() == "%")
2421 2421
			$form .= " selected=\"selected\"";
2422 2422
		$form .= ">%</option>";
2423
		$form .= "</select> <br/>";
2423
		$form .= "</select> <br />";
2424 2424
		$form .= "<span class=\"vexpl\">" . gettext("Choose the amount of bandwidth for this queue");
2425 2425
		$form .= "</span></td></tr>";
2426 2426
		$form .= "<tr><td class=\"vncellreq\">" . gettext("Scheduler specific options") . "</td>";
2427 2427
		$form .= "<td class=\"vtable\"><input type=\"checkbox\" id=\"borrow\" name=\"borrow\"";
2428 2428
		if($this->GetBorrow() == "on")
2429 2429
			$form .=  " checked=\"checked\" ";
2430
		$form .= " /> " . gettext("Borrow from other queues when available") . "<br/></td></tr>";
2430
		$form .= " /> " . gettext("Borrow from other queues when available") . "<br /></td></tr>";
2431 2431

  
2432 2432
		return $form;
2433 2433
	}
......
2694 2694
		if ($this->GetBwscale() == "%")
2695 2695
			$form .= " selected=\"selected\"";
2696 2696
		$form .= ">%</option>";
2697
		$form .= "</select> <br/>";
2697
		$form .= "</select> <br />";
2698 2698
		$form .= "<span class=\"vexpl\">" . gettext("Choose the amount of bandwidth for this queue");
2699 2699
		$form .= "</span></td></tr>";
2700 2700
		$form .= "<tr><td class=\"vncellreq\">" . gettext("Scheduler specific options") . "</td>";
......
2703 2703
		$tmpvalue = trim($this->GetBuckets());
2704 2704
		if(!empty($tmpvalue))
2705 2705
			$form .=  $this->GetBuckets();
2706
		$form .= "\" /> " . gettext("Number of buckets available.") . "<br/></td></tr>";
2706
		$form .= "\" /> " . gettext("Number of buckets available.") . "<br /></td></tr>";
2707 2707
		$form .= "<tr><td class=\"vtable\"><input id=\"hogs\" name=\"hogs\" value=\"";
2708 2708
		$tmpvalue = trim($this->GetHogs());
2709 2709
		if(!empty($tmpvalue))
2710 2710
			$form .=  $this->GetHogs();
2711
		$form .= "\" /> " . gettext("Bandwidth limit for hosts to not saturate link.") . "<br/></td></tr>";
2711
		$form .= "\" /> " . gettext("Bandwidth limit for hosts to not saturate link.") . "<br /></td></tr>";
2712 2712
		$form .= "</table></td></tr>";
2713 2713
		return $form;
2714 2714
	}
......
3297 3297
			}
3298 3298
		}
3299 3299

  
3300
		$form = "<tr><td valign=\"middle\" class=\"vncellreq\"><br/>";
3300
		$form = "<tr><td valign=\"middle\" class=\"vncellreq\"><br />";
3301 3301
		$form .= gettext("Enable");
3302 3302
		$form .= "</td><td class=\"vncellreq\">";
3303 3303
		$form .= " <input type=\"checkbox\" id=\"enabled\" name=\"enabled\" value=\"on\"";
......
3305 3305
			$form .=  " checked=\"checked\"";
3306 3306
		$form .= " /><span class=\"vexpl\"> " . gettext("Enable limiter and its children") . "</span>";
3307 3307
		$form .= "</td></tr>";
3308
		$form .= "<tr><td valign=\"middle\" class=\"vncellreq\"><br/><span class=\"vexpl\">" . gettext("Name") . "</span></td>";
3308
		$form .= "<tr><td valign=\"middle\" class=\"vncellreq\"><br /><span class=\"vexpl\">" . gettext("Name") . "</span></td>";
3309 3309
		$form .= "<td class=\"vncellreq\">";
3310 3310
		$form .= "<input type=\"text\" id=\"newname\" name=\"newname\" value=\"";
3311 3311
		$form .= $this->GetQname()."\" />";
......
3359 3359
		$form .= "</tbody></table>";
3360 3360
		$form .= "<a onclick=\"javascript:addBwRowTo('maintable'); return false;\" href='#'>";
3361 3361
		$form .= "<img border='0' src='/themes/{$g['theme']}/images/icons/icon_plus.gif' alt='add' title='" . gettext("add another schedule") . "' /></a>";
3362
		$form .= "<br/><span class=\"vexpl\">" . gettext("Bandwidth is a rate (e.g. Mbit/s), burst is a total amount of data that will be transferred at full speed after an idle period.") . "</span><br />";
3362
		$form .= "<br /><span class=\"vexpl\">" . gettext("Bandwidth is a rate (e.g. Mbit/s), burst is a total amount of data that will be transferred at full speed after an idle period.") . "</span><br />";
3363 3363
		$form .= "</td></tr>";
3364 3364
		$form .= "<tr><td valign=\"middle\" class=\"vncellreq\">" . gettext("Mask") . "</td>";
3365 3365
		$form .= "<td class=\"vncellreq\">";
......
3378 3378
			$form .= " selected=\"selected\"";
3379 3379
		$form .= ">" . gettext("Destination addresses") . "</option>";
3380 3380
		$form .= "</select>";
3381
		$form .= "&nbsp;<br/>";
3381
		$form .= "&nbsp;<br />";
3382 3382
		$form .= "<span class=\"vexpl\">" . gettext("If 'source' or 'destination' slots is chosen, \n"
3383 3383
		      .  "a dynamic pipe with the bandwidth, delay, packet loss and queue size given above will \n"
3384 3384
		      .  "be created for each source/destination IP address encountered, \n"
......
3391 3391
		if ($mask['type'] == "none")
3392 3392
			$form .= " disabled";
3393 3393
		$form .= " />";
3394
		$form .= "&nbsp; IPV4 mask bits (1-32)<br/>";
3394
		$form .= "&nbsp; IPV4 mask bits (1-32)<br />";
3395 3395
		$form .= "ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff/&nbsp;<input type=\"text\" class=\"formfld unknown\" size=\"2\" id=\"maskbitsv6\" name=\"maskbitsv6\" value=\"";
3396 3396
		if ($mask['type'] <> "none")
3397 3397
		$form .= $mask['bitsv6'];
......
3399 3399
		if ($mask['type'] == "none")
3400 3400
			$form .= " disabled";
3401 3401
		$form .= " />";
3402
		$form .= "&nbsp; IPV6 mask bits (1-128)<br/>";
3402
		$form .= "&nbsp; IPV6 mask bits (1-128)<br />";
3403 3403
		$form .= "<span class=\"vexpl\">" . gettext("If 'source' or 'destination' slots is chosen, \n"
3404 3404
		      .  "leaving the mask bits blank will create one pipe per host. Otherwise specify \n"
3405 3405
		      .  "the number of 'one' bits in the subnet mask used to group multiple hosts \n"
......
3410 3410
		$form .= "<input type=\"text\" class=\"formfld unknown\" size=\"40\" id=\"description\" name=\"description\" value=\"";
3411 3411
		$form .= $this->GetDescription();
3412 3412
		$form .= "\" />";
3413
		$form .= "<br/> <span class=\"vexpl\">";
3413
		$form .= "<br /> <span class=\"vexpl\">";
3414 3414
		$form .= gettext("You may enter a description here for your reference (not parsed).") . "</span>";
3415 3415
		$form .= "</td></tr>";
3416 3416
		$form .= "<tr id=\"sprtable4\">";
......
3425 3425
		$form .= "<td valign=\"middle\" class=\"vncellreq\">";
3426 3426
		$form .= "<input name=\"delay\" type=\"text\" id=\"delay\" size=\"5\" value=\"";
3427 3427
		$form .= $this->GetDelay() . "\" />";
3428
		$form .= "&nbsp;ms<br/> <span class=\"vexpl\">" . gettext("Hint: in most cases, you "
3429
		      .  "should specify 0 here (or leave the field empty)") . "</span><br/>";
3428
		$form .= "&nbsp;ms<br /> <span class=\"vexpl\">" . gettext("Hint: in most cases, you "
3429
		      .  "should specify 0 here (or leave the field empty)") . "</span><br />";
3430 3430
		$form .= "</td></tr>";
3431 3431
		$form .= "<tr style=\"display:none\" id=\"sprtable1\">";
3432 3432
		$form .= "<td valign=\"middle\" class=\"vncellreq\">" . gettext("Packet loss rate") . "</td>";
3433 3433
		$form .= "<td valign=\"middle\" class=\"vncellreq\">";
3434 3434
		$form .= "<input name=\"plr\" type=\"text\" id=\"plr\" size=\"5\" value=\"";
3435 3435
		$form .= $this->GetPlr() . "\" />";
3436
		$form .= "&nbsp;<br/> <span class=\"vexpl\">" . gettext("Hint: in most cases, you "
3436
		$form .= "&nbsp;<br /> <span class=\"vexpl\">" . gettext("Hint: in most cases, you "
3437 3437
		      .  "should specify 0 here (or leave the field empty). "
3438 3438
		      .  "A value of 0.001 means one packet in 1000 gets dropped") . "</span>";
3439 3439
		$form .= "</td></tr>";
......
3442 3442
		$form .= "<td class=\"vncellreq\">";
3443 3443
		$form .= "<input type=\"text\" id=\"qlimit\" name=\"qlimit\" value=\"";
3444 3444
		$form .= $this->GetQlimit() . "\" />";
3445
		$form .= "&nbsp;slots<br/>";
3445
		$form .= "&nbsp;slots<br />";
3446 3446
		$form .= "<span class=\"vexpl\">" . gettext("Hint: in most cases, you "
3447 3447
		      .  "should leave the field empty. All packets in this pipe are placed into a fixed-size queue first, "
3448 3448
		      .  "then they are delayed by value specified in the Delay field, and then they "
......
3453 3453
		$form .= "<td class=\"vncellreq\">";
3454 3454
		$form .= "<input type=\"text\" id=\"buckets\" name=\"buckets\" value=\"";
3455 3455
		$form .= $this->GetBuckets() . "\" />";
3456
		$form .= "&nbsp;slots<br/>";
3456
		$form .= "&nbsp;slots<br />";
3457 3457
		$form .= "<span class=\"vexpl\">" . gettext("Hint: in most cases, you "
3458 3458
			.  "should leave the field empty. It increases the hash size set.");
3459 3459
		$form .= "</span></td></tr>";
......
3623 3623

  
3624 3624

  
3625 3625
	function build_form() {
3626
		$form = "<tr><td valign=\"middle\" class=\"vncellreq\"><br/>";
3626
		$form = "<tr><td valign=\"middle\" class=\"vncellreq\"><br />";
3627 3627
		$form .= gettext("Enable/Disable");
3628 3628
		$form .= "</td><td class=\"vncellreq\">";
3629 3629
		$form .= " <input type=\"checkbox\" id=\"enabled\" name=\"enabled\" value=\"on\"";
......
3631 3631
			$form .=  " checked=\"checked\"";
3632 3632
		$form .= " /><span class=\"vexpl\"> " . gettext("Enable/Disable queue") . "</span>";
3633 3633
		$form .= "</td></tr>";
3634
		$form .= "<tr><td valign=\"middle\" class=\"vncellreq\"><br/><span class=\"vexpl\">" . gettext("Name") . "</span></td>";
3634
		$form .= "<tr><td valign=\"middle\" class=\"vncellreq\"><br /><span class=\"vexpl\">" . gettext("Name") . "</span></td>";
3635 3635
		$form .= "<td class=\"vncellreq\">";
3636 3636
		$form .= "<input type=\"text\" id=\"newname\" name=\"newname\" value=\"";
3637 3637
		$form .= $this->GetQname()."\" />";
......
3659 3659
			$form .= " selected=\"selected\"";
3660 3660
		$form .= ">" . gettext("Destination addresses") . "</option>";
3661 3661
		$form .= "</select>";
3662
		$form .= "&nbsp;slots<br/>";
3662
		$form .= "&nbsp;slots<br />";
3663 3663
		$form .= "<span class=\"vexpl\">" . gettext("If 'source' or 'destination' slots is chosen, \n"
3664 3664
			.  "a dynamic pipe with the bandwidth, delay, packet loss and queue size given above will \n"
3665 3665
			.  "be created for each source/destination IP address encountered, \n"
3666 3666
			.  "respectively. This makes it possible to easily specify bandwidth \n"
3667
			.  "limits per host.") . "</span><br/>";
3667
			.  "limits per host.") . "</span><br />";
3668 3668
		$form .= "255.255.255.255/&nbsp;<input type=\"text\" class=\"formfld unknown\" size=\"2\" id=\"maskbits\" name=\"maskbits\" value=\"";
3669 3669
		if ($mask['type'] <> "none")
3670 3670
			$form .= $mask['bits'];
......
3672 3672
		if ($mask['type'] == "none")
3673 3673
			$form .= " disabled";
3674 3674
		$form .= " />";
3675
		$form .= "&nbsp; IPV4 mask bits (1-32)<br/>";
3675
		$form .= "&nbsp; IPV4 mask bits (1-32)<br />";
3676 3676
		$form .= "ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff/&nbsp;<input type=\"text\" class=\"formfld unknown\" size=\"2\" id=\"maskbitsv6\" name=\"maskbitsv6\" value=\"";
3677 3677
		if ($mask['type'] <> "none")
3678 3678
			$form .= $mask['bitsv6'];
......
3680 3680
		if ($mask['type'] == "none")
3681 3681
			$form .= " disabled";
3682 3682
		$form .= " />";
3683
		$form .= "&nbsp; IPV6 mask bits (1-128)<br/>";
3683
		$form .= "&nbsp; IPV6 mask bits (1-128)<br />";
3684 3684
		$form .= "<span class=\"vexpl\">" . gettext("If 'source' or 'destination' slots is chosen, \n"
3685 3685
			.  "leaving the mask bits blank will create one pipe per host. Otherwise specify \n"
3686 3686
			.  "the number of 'one' bits in the subnet mask used to group multiple hosts \n"
......
3691 3691
		$form .= "<input type=\"text\" id=\"description\" class=\"formfld unknown\" size=\"40\" name=\"description\" value=\"";
3692 3692
		$form .= $this->GetDescription();
3693 3693
		$form .= "\" />";
3694
		$form .= "<br/> <span class=\"vexpl\">";
3694
		$form .= "<br /> <span class=\"vexpl\">";
3695 3695
		$form .= gettext("You may enter a description here for your reference (not parsed).") . "</span>";
3696 3696
		$form .= "</td></tr>";
3697 3697
		$form .= "<tr id=\"sprtable4\">";
......
3705 3705
		$form .= "<td valign=\"middle\" class=\"vncellreq\">";
3706 3706
		$form .= "<input name=\"weight\" type=\"text\" id=\"weight\" size=\"5\" value=\"";
3707 3707
		$form .= $this->GetWeight() . "\" />";
3708
		$form .= "&nbsp;<br/> <span class=\"vexpl\">" . gettext("Hint: For queues under the same parent "
3708
		$form .= "&nbsp;<br /> <span class=\"vexpl\">" . gettext("Hint: For queues under the same parent "
3709 3709
			.  "this specifies the share that a queue gets(values range from 1 to 100, you can leave it blank otherwise)") . "</span>";
3710 3710
		$form .= "</td></tr>";
3711 3711
		$form .= "<tr style=\"display:none\" id=\"sprtable1\">";
......
3713 3713
		$form .= "<td valign=\"middle\" class=\"vncellreq\">";
3714 3714
		$form .= "<input name=\"plr\" type=\"text\" id=\"plr\" size=\"5\" value=\"";
3715 3715
		$form .= $this->GetPlr() . "\" />";
3716
		$form .= "&nbsp;<br/> <span class=\"vexpl\">" . gettext("Hint: in most cases, you "
3716
		$form .= "&nbsp;<br /> <span class=\"vexpl\">" . gettext("Hint: in most cases, you "
3717 3717
			.  "should specify 0 here (or leave the field empty). "
3718 3718
			.  "A value of 0.001 means one packet in 1000 gets dropped") . "</span>";
3719 3719
		$form .= "</td></tr>";
......
3722 3722
		$form .= "<td class=\"vncellreq\">";
3723 3723
		$form .= "<input type=\"text\" id=\"qlimit\" name=\"qlimit\" value=\"";
3724 3724
		$form .= $this->GetQlimit() . "\" />";
3725
		$form .= "&nbsp;slots<br/>";
3725
		$form .= "&nbsp;slots<br />";
3726 3726
		$form .= "<span class=\"vexpl\">" . gettext("Hint: in most cases, you "
3727 3727
			.  "should leave the field empty. All packets in this pipe are placed into a fixed-size queue first, "
3728 3728
			.  "then they are delayed by value specified in the Delay field, and then they "
......
3733 3733
		$form .= "<td class=\"vncellreq\">";
3734 3734
		$form .= "<input type=\"text\" id=\"buckets\" name=\"buckets\" value=\"";
3735 3735
		$form .= $this->GetBuckets() . "\" />";
3736
		$form .= "&nbsp;" . gettext("slots") . "<br/>";
3736
		$form .= "&nbsp;" . gettext("slots") . "<br />";
3737 3737
		$form .= "<span class=\"vexpl\">" . gettext("Hint: in most cases, you "
3738 3738
			.  "should leave the field empty. It increases the hash size set.");
3739 3739
		$form .= "</span></td></tr>";
......
3870 3870
	}
3871 3871

  
3872 3872
	function build_form() {
3873
		$form = "<tr><td valign=\"middle\" class=\"vncellreq\"><br/>";
3873
		$form = "<tr><td valign=\"middle\" class=\"vncellreq\"><br />";
3874 3874
		$form .= gettext("Enable/Disable");
3875 3875
		$form .= "</td><td class=\"vncellreq\">";
3876 3876
		$form .= " <input type=\"checkbox\" id=\"enabled\" name=\"enabled\" value=\"on\" ";
......
3879 3879
		}
3880 3880
		$form .= " /><span class=\"vexpl\"> " . gettext("Enable/Disable layer7 Container") . "</span>";
3881 3881
		$form .= "</td></tr>";
3882
		$form .= "<tr><td valign=\"middle\" class=\"vncellreq\"><br/><span class=\"vexpl\">" . gettext("Name") . "</span></td>";
3882
		$form .= "<tr><td valign=\"middle\" class=\"vncellreq\"><br /><span class=\"vexpl\">" . gettext("Name") . "</span></td>";
3883 3883
		$form .= "<td class=\"vncellreq\">";
3884 3884
		$form .= "<input type=\"text\" id=\"container\" name=\"container\" value=\"";
3885 3885
		$form .= $this->GetRName()."\" />";
......
3889 3889
		$form .= "<input type=\"text\" class=\"formfld unknown\" size=\"40\" id=\"description\" name=\"description\" value=\"";
3890 3890
		$form .= $this->GetRDescription();
3891 3891
		$form .= "\" />";
3892
		$form .= "<br/> <span class=\"vexpl\">";
3892
		$form .= "<br /> <span class=\"vexpl\">";
3893 3893
		$form .= gettext("You may enter a description here for your reference (not parsed).") . "</span>";
3894 3894
		$form .= "</td></tr>";
3895 3895

  

Also available in: Unified diff