Project

General

Profile

« Previous | Next » 

Revision f5e511d3

Added by Ermal LUÇI about 15 years ago

Remove priority from HFSC it is a null config option. Center most of the text in the center of a <td> and add some space between objects.

View differences:

etc/inc/shaper.inc
593 593
	 * to the user like the traffic wizard does.
594 594
	 */
595 595
	function build_form() { 
596
		$form = "<tr><td valign=\"top\" class=\"vncellreq\"><br>";
596
		$form = "<tr><td valign=\"center\" class=\"vncellreq\"><br>";
597 597
		$form .= "Enable/Disable";
598
		$form .= "</td><td class=\"vncellreq\">";
598
		$form .= "<br/></td><td class=\"vncellreq\">";
599 599
		$form .= " <input type=\"checkbox\" id=\"enabled\" name=\"enabled\" value=\"on\"";
600 600
                if ($this->GetEnabled() == "on")
601 601
                        $form .=  " CHECKED";
602 602
		$form .= " ><span class=\"vexpl\"> Enable/disable discipline and its children</span>";
603 603
		$form .= "</td></tr>";
604
		$form .= "<tr><td valign=\"top\" class=\"vncellreq\"><br><span class=\"vexpl\">Name</span></td>";
604
		$form .= "<tr><td valign=\"center\" class=\"vncellreq\"><br><span class=\"vexpl\">Name</span></td>";
605 605
		$form .= "<td class=\"vncellreq\">";
606 606
		$form .= "<strong>".$this->GetQname()."</strong>";
607 607
		$form .= "</td></tr>";
608
		$form .= "<tr><td valign=\"top\" class=\"vncellreq\">Scheduler Type ";
608
		$form .= "<tr><td valign=\"center\" class=\"vncellreq\">Scheduler Type ";
609 609
		$form .= "</td>";
610 610
		$form .= "<td class=\"vncellreq\">";
611 611
		$form .= "<select id=\"scheduler\" name=\"scheduler\" class=\"formselect\">";
......
631 631
		$form .= " Beware you can lose information.";
632 632
		$form .= "</span>";
633 633
		$form .= "</td></tr>";
634
		$form .= "<tr><td valign=\"top\" class=\"vncellreq\">Bandwidth";
634
		$form .= "<tr><td valign=\"center\" class=\"vncellreq\">Bandwidth";
635 635
		$form .= "</td><td class=\"vncellreq\">";
636 636
		$form .= "<input type=\"text\" id=\"bandwidth\" name=\"bandwidth\" value=\"";
637 637
		$form .= $this->GetBandwidth() . "\">"; 
......
654 654
		$form .= ">Bit/s</option>";
655 655
		$form .= "</select>";
656 656
		$form .= "</td></tr>";
657
		$form .= "<tr><td valign=\"top\" class=\"vncellreq\">Queue Limit</td>";
657
		$form .= "<tr><td valign=\"center\" class=\"vncellreq\">Queue Limit</td>";
658 658
		$form .= "<td class=\"vncellreq\">";
659 659
		$form .= "<input type=\"text\" id=\"qlimit\" name=\"qlimit\" value=\"";
660 660
		$form .= $this->GetQlimit();
661 661
		$form .= "\">";
662 662
		$form .= "</td></tr>";
663
		$form .= "<tr><td valign=\"top\" class=\"vncellreq\">TBR Size</td>";
663
		$form .= "<tr><td valign=\"center\" class=\"vncellreq\">TBR Size</td>";
664 664
		$form .= "<td class=\"vncellreq\">";
665
		$form .= "<input type=\"text\" id=\"tbrconfig\" name=\"tbrconfig\" value=\"";
665
		$form .= "<br /><input type=\"text\" id=\"tbrconfig\" name=\"tbrconfig\" value=\"";
666 666
		$form .= $this->GetTbrConfig();
667 667
		$form .= "\">";
668 668
		$form .= "<br> <span class=\"vexpl\">";
......
1075 1075
	 * need to update it.
1076 1076
	 */
1077 1077
	function build_form() {
1078
		$form = "<tr><td valign=\"top\" class=\"vncellreq\"><br>";
1078
		$form = "<tr><td valign=\"center\" class=\"vncellreq\"><br>";
1079 1079
                $form .= "Enable/Disable";
1080
                $form .= "</td><td class=\"vncellreq\">";
1080
                $form .= "<br/></td><td class=\"vncellreq\">";
1081 1081
                $form .= " <input type=\"checkbox\" id=\"enabled\" name=\"enabled\" value=\"on\"";
1082 1082
                if ($this->GetEnabled() == "on")
1083 1083
                        $form .=  " CHECKED";
1084 1084
                $form .= " ><span class=\"vexpl\"> Enable/Disable queue and its children</span>";
1085 1085
                $form .= "</td></tr>";
1086 1086
		$form .= "<tr>";
1087
		$form .= "<td width=\"22%\" valign=\"top\" class=\"vncellreq\">";
1087
		$form .= "<td width=\"22%\" valign=\"center\" class=\"vncellreq\">";
1088 1088
		$form .= "Queue Name</td><td width=\"78%\" class=\"vtable\">";
1089 1089
		$form .= "<input name=\"name\" type=\"text\" id=\"name\" class=\"formfld unknown\" size=\"15\" maxlength=\"15\" value=\"";
1090 1090
		$form .= htmlspecialchars($this->GetQname());
1091 1091
		$form .= "\">";
1092
		$form .= "<br> <span class=\"vexpl\">Enter the name of the queue here.  Do not use spaces and limit the size to 15 characters.";
1093
		$form .= "</span></td>";
1092
		$form .= "<br /> <span class=\"vexpl\">Enter the name of the queue here.  Do not use spaces and limit the size to 15 characters.";
1093
		$form .= "</span><br /></td>";
1094 1094
		$form .= "</tr><tr>";
1095
		$form .= "<td width=\"22%\" valign=\"top\" class=\"vncellreq\">Priority</td>";
1095
/* 		HFSC actually does not use the priority at all.
1096
		$form .= "<td width=\"22%\" valign=\"center\" class=\"vncellreq\">Priority</td>";
1096 1097
		$form .= "<td width=\"78%\" class=\"vtable\"> <input name=\"priority\" type=\"text\" id=\"priority\" size=\"5\" value=\"";
1097 1098
		$form .= htmlspecialchars($this->GetQpriority());
1098 1099
		$form .= "\">";
1099 1100
		$form .= "<br> <span class=\"vexpl\">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>";
1100 1101
		$form .= "</tr>";
1101
		$form .= "</tr>";
1102
		$form .= "<td width=\"22%\" valign=\"top\" class=\"vncellreq\">Queue limit</td>";
1103
		$form .= "<td width=\"78%\" class=\"vtable\"> <input name=\"qlimit\" type=\"text\" id=\"qlimit\" size=\"5\" value=\"";
1102
*/
1103
		$form .= "<tr>";
1104
		$form .= "<td width=\"22%\" valign=\"center\" class=\"vncellreq\">Queue limit</td>";
1105
		$form .= "<td width=\"78%\" class=\"vtable\"> <input name=\"qlimit\" type=\"text\" id=\"qlimit\" size=\"8\" value=\"";
1104 1106
		$form .= htmlspecialchars($this->GetQlimit());
1105 1107
		$form .= "\">";
1106 1108
		$form .= "<br> <span class=\"vexpl\">Queue limit in packets per second."; 
1107 1109
		$form .= "</span></td>";
1108 1110
		$form .= "<tr>";
1109
		$form .= "<td width=\"22%\" valign=\"top\" class=\"vncell\">Scheduler options</td>";
1111
		$form .= "<td width=\"22%\" valign=\"center\" class=\"vncell\">Scheduler options</td>";
1110 1112
		$form .= "<td width=\"78%\" class=\"vtable\">";
1111 1113
		$tmpvalue = $this->GetDefault();	
1112 1114
		if (!empty($tmpvalue)) { 
......
1161 1163
		$form .= "<td width=\"50%\" class=\"vncellreq\">";
1162 1164
		$form .= "Bandwidth: " . $this->GetBandwidth().$this->GetBwscale();
1163 1165
		$form .= "</td><td width=\"50%\"></td></tr>";
1166
/*		HFSC does not need priority.
1164 1167
		$form .= "<tr><td width=\"20%\" class=\"vncellreq\">";
1165 1168
		$tmpvalue = $this->GetQpriority();
1166 1169
		if (!empty($tmpvalue))
1167 1170
			$form .= "Priority: on </td></tr>";
1171
*/
1168 1172
		$tmpvalue = $this->GetDefault();
1169 1173
		if (!empty($tmpvalue))
1170 1174
			$form .= "<tr><td class=\"vncellreq\">Default: on </td></tr>";
......
1793 1797
	function build_form() {
1794 1798
		$form = parent::build_form();
1795 1799
		$form .= "<tr>";
1796
		$form .= "<td valign=\"top\" class=\"vncellreq\">Bandwidth</td>";
1800
		$form .= "<td valign=\"center\" class=\"vncellreq\">Bandwidth</td>";
1797 1801
		$form .= "<td class=\"vtable\"> <input name=\"bandwidth\" id=\"bandwidth\" class=\"formfld unknown\" value=\"";
1798 1802
		$form .= htmlspecialchars($this->GetBandwidth());
1799 1803
		$form .= "\">";
......
1822 1826
		$form .= "<span class=\"vexpl\">Choose the amount of bandwidth for this queue";
1823 1827
		$form .= "</span></td></tr>";
1824 1828
		$form .= "<tr>";
1825
		$form .= "<td width=\"22%\" valign=\"top\" class=\"vncellreq\">Service Curve (sc)</td>";
1829
		$form .= "<td width=\"22%\" valign=\"center\" class=\"vncellreq\">Service Curve (sc)</td>";
1826 1830
		$form .= "<td width=\"78%\" class=\"vtable\">";
1827 1831
		$form .= "<table>";
1828 1832
		$form .= "<tr><td>&nbsp;</td><td><center>m1</center></td><td><center>d</center></td><td><center><b>m2</b></center></td></tr>";
......
2265 2269
	}
2266 2270

  
2267 2271
	function build_form() {
2268
		$form = "<tr>";
2269
		$form .= "<td valign=\"top\" class=\"vncellreq\">Bandwidth</td>";
2272
		$form = parent::build_form();
2273
		$form .= "<tr>";
2274
		$form .= "<td valign=\"center\" class=\"vncellreq\">Bandwidth</td>";
2270 2275
		$form .= "<td class=\"vtable\"> <input name=\"bandwidth\" id=\"bandwidth\" class=\"formfld unknown\" value=\"";
2271 2276
		if ($this->GetBandwidth() > 0)
2272 2277
			$form .= htmlspecialchars($this->GetBandwidth());
......
2295 2300
		$form .= "</select> <br>";
2296 2301
		$form .= "<span class=\"vexpl\">Choose the amount of bandwidth for this queue";
2297 2302
		$form .= "</span></td></tr>";
2298
		$form .= parent::build_form();
2299 2303
		$form .= "<tr><td class=\"vncellreq\">Scheduler specific options</td>";
2300 2304
		$form .= "<td class=\"vtable\"><input type=\"checkbox\" id=\"borrow\" name=\"borrow\"";
2301 2305
		if($this->GetBorrow() == "on") 
......
2528 2532
	}
2529 2533

  
2530 2534
	function build_form() {
2531
		$form = "<tr>";
2532
		$form .= "<td valign=\"top\" class=\"vncellreq\">Bandwidth</td>";
2535
		$form = parent::build_form();
2536
		$form .= "<tr>";
2537
		$form .= "<td valign=\"center\" class=\"vncellreq\">Bandwidth</td>";
2533 2538
		$form .= "<td class=\"vtable\"> <input name=\"bandwidth\" id=\"bandwidth\" class=\"formfld unknown\" value=\"";
2534 2539
		if ($this->GetBandwidth() > 0)
2535 2540
			$form .= htmlspecialchars($this->GetBandwidth());
......
2558 2563
		$form .= "</select> <br>";
2559 2564
		$form .= "<span class=\"vexpl\">Choose the amount of bandwidth for this queue";
2560 2565
		$form .= "</span></td></tr>";
2561
		$form .= parent::build_form();
2562 2566
		$form .= "<tr><td class=\"vncellreq\">Scheduler specific options</td>";
2563 2567
		$form .= "<td class=\"vtable\"><table><tr><td>";
2564 2568
		$form .= "<input id=\"buckets\" name=\"buckets\" value=\"";
......
2923 2927
	}
2924 2928

  
2925 2929
        function build_form() { 
2926
		$form = "<tr><td valign=\"top\" class=\"vncellreq\"><br>";
2930
		$form = "<tr><td valign=\"center\" class=\"vncellreq\"><br>";
2927 2931
                $form .= "Enable/Disable";
2928 2932
                $form .= "</td><td class=\"vncellreq\">";
2929 2933
                $form .= " <input type=\"checkbox\" id=\"enabled\" name=\"enabled\" value=\"on\"";
......
2931 2935
                        $form .=  " CHECKED";
2932 2936
                $form .= " ><span class=\"vexpl\"> Enable/Disable limiter and its children</span>";
2933 2937
                $form .= "</td></tr>";
2934
		$form .= "<tr><td valign=\"top\" class=\"vncellreq\"><br><span class=\"vexpl\">Name</span></td>";
2938
		$form .= "<tr><td valign=\"center\" class=\"vncellreq\"><br><span class=\"vexpl\">Name</span></td>";
2935 2939
		$form .= "<td class=\"vncellreq\">";
2936 2940
		$form .= "<input type=\"text\" id=\"name\" name=\"name\" value=\"";
2937 2941
		$form .= $this->GetQname()."\">";
2938 2942
		$form .= "</td></tr>";
2939
		$form .= "<tr><td valign=\"top\" class=\"vncellreq\">Bandwidth";
2943
		$form .= "<tr><td valign=\"center\" class=\"vncellreq\">Bandwidth";
2940 2944
		$form .= "</td><td class=\"vncellreq\">";
2941 2945
		$form .= "<input type=\"text\" id=\"bandwidth\" name=\"bandwidth\" value=\"";
2942 2946
		$form .= $this->GetBandwidth() . "\">"; 
......
2959 2963
		$form .= ">Bit/s</option>";
2960 2964
		$form .= "</select>";
2961 2965
		$form .= "</td></tr>";
2962
		$form .= "<tr><td valign=\"top\" class=\"vncellreq\">Mask</td>";
2966
		$form .= "<tr><td valign=\"center\" class=\"vncellreq\">Mask</td>";
2963 2967
		$form .= "<td class=\"vncellreq\">";
2964 2968
		$form .= "<select name=\"mask\" class=\"formselect\">";
2965 2969
		$form .= "<option value=\"none\"";
......
2982 2986
		$form .= "respectively. This makes it possible to easily specify bandwidth \n";
2983 2987
		$form .= "limits per host.</span>";
2984 2988
		$form .= "</td></tr>";
2985
		$form .= "<tr><td valign=\"top\" class=\"vncellreq\">Description</td>";
2989
		$form .= "<tr><td valign=\"center\" class=\"vncellreq\">Description</td>";
2986 2990
		$form .= "<td class=\"vncellreq\">";
2987 2991
		$form .= "<input type=\"text\" class=\"formfld unknown\" size=\"50%\" id=\"description\" name=\"description\" value=\"";
2988 2992
		$form .= $this->GetDescription();
......
2999 3003
                $form .= "</div></td></tr>";
3000 3004
                $form .= "<tr style=\"display:none\" id=\"sprtable\" name=\"sprtable\">";
3001 3005

  
3002
		$form .= "<td valign=\"top\" class=\"vncellreq\">Delay</td>";
3003
		$form .= "<td valign=\"top\" class=\"vncellreq\">";
3006
		$form .= "<td valign=\"center\" class=\"vncellreq\">Delay</td>";
3007
		$form .= "<td valign=\"center\" class=\"vncellreq\">";
3004 3008
		$form .= "<input name=\"delay\" type=\"text\" id=\"delay\" size=\"5\" value=\"";
3005 3009
		$form .= $this->GetDelay() . "\">";
3006 3010
		$form .= "&nbsp;ms<br> <span class=\"vexpl\">Hint: in most cases, you "; 
3007 3011
		$form .= "should specify 0 here (or leave the field empty)</span>";
3008 3012
		$form .= "</td></tr><br/>";
3009 3013
      		$form .= "<tr style=\"display:none\" id=\"sprtable1\" name=\"sprtable1\">";
3010
		$form .= "<td valign=\"top\" class=\"vncellreq\">Packet loss rate</td>";
3011
		$form .= "<td valign=\"top\" class=\"vncellreq\">";
3014
		$form .= "<td valign=\"center\" class=\"vncellreq\">Packet loss rate</td>";
3015
		$form .= "<td valign=\"center\" class=\"vncellreq\">";
3012 3016
		$form .= "<input name=\"plr\" type=\"text\" id=\"plr\" size=\"5\" value=\"";
3013 3017
		$form .= $this->GetPlr() . "\">";
3014 3018
		$form .= "&nbsp;<br> <span class=\"vexpl\">Hint: in most cases, you "; 
......
3016 3020
		$form .= "A value of 0.001 means one packet in 1000 gets dropped</span>";
3017 3021
		$form .= "</td></tr>";
3018 3022
		$form .= "<tr style=\"display:none\" id=\"sprtable2\" name=\"sprtable2\">";
3019
		$form .= "<td valign=\"top\" class=\"vncellreq\">Queue Size</td>";
3023
		$form .= "<td valign=\"center\" class=\"vncellreq\">Queue Size</td>";
3020 3024
		$form .= "<td class=\"vncellreq\">";
3021 3025
		$form .= "<input type=\"text\" id=\"qlimit\" name=\"qlimit\" value=\"";
3022 3026
		$form .= $this->GetQlimit() . "\">";
......
3027 3031
		$form .= "are delivered to their destination.</span>";
3028 3032
		$form .= "</td></tr>";
3029 3033
		$form .= "<tr style=\"display:none\" id=\"sprtable5\" name=\"sprtable5\">";
3030
                $form .= "<td valign=\"top\" class=\"vncellreq\">Bucket Size</td>";
3034
                $form .= "<td valign=\"center\" class=\"vncellreq\">Bucket Size</td>";
3031 3035
                $form .= "<td class=\"vncellreq\">";
3032 3036
                $form .= "<input type=\"text\" id=\"buckets\" name=\"buckets\" value=\"";
3033 3037
                $form .= $this->GetBuckets() . "\">";
......
3166 3170
	}
3167 3171

  
3168 3172
        function build_form() { 
3169
		$form = "<tr><td valign=\"top\" class=\"vncellreq\"><br>";
3173
		$form = "<tr><td valign=\"center\" class=\"vncellreq\"><br>";
3170 3174
                $form .= "Enable/Disable";
3171 3175
                $form .= "</td><td class=\"vncellreq\">";
3172 3176
                $form .= " <input type=\"checkbox\" id=\"enabled\" name=\"enabled\" value=\"on\"";
......
3174 3178
                        $form .=  " CHECKED";
3175 3179
                $form .= " ><span class=\"vexpl\"> Enable/Disable queue and its children</span>";
3176 3180
                $form .= "</td></tr>";
3177
		$form .= "<tr><td valign=\"top\" class=\"vncellreq\"><br><span class=\"vexpl\">Name</span></td>";
3181
		$form .= "<tr><td valign=\"center\" class=\"vncellreq\"><br><span class=\"vexpl\">Name</span></td>";
3178 3182
		$form .= "<td class=\"vncellreq\">";
3179 3183
		$form .= "<input type=\"text\" id=\"name\" name=\"name\" value=\"";
3180 3184
		$form .= $this->GetQname()."\">";
3181 3185
		$form .= "</td></tr>";
3182
		$form .= "<tr><td valign=\"top\" class=\"vncellreq\">Mask</td>";
3186
		$form .= "<tr><td valign=\"center\" class=\"vncellreq\">Mask</td>";
3183 3187
		$form .= "<td class=\"vncellreq\">";
3184 3188
		$form .= "<select name=\"mask\" class=\"formselect\">";
3185 3189
		$form .= "<option value=\"none\"";
......
3202 3206
		$form .= "respectively. This makes it possible to easily specify bandwidth \n";
3203 3207
		$form .= "limits per host.</span>";
3204 3208
		$form .= "</td></tr>";
3205
		$form .= "<tr><td valign=\"top\" class=\"vncellreq\">Description</td>";
3209
		$form .= "<tr><td valign=\"center\" class=\"vncellreq\">Description</td>";
3206 3210
		$form .= "<td class=\"vncellreq\">";
3207 3211
		$form .= "<input type=\"text\" id=\"description\" class=\"formfld unknown\" size=\"50%\" name=\"description\" value=\"";
3208 3212
		$form .= $this->GetDescription();
......
3218 3222
		$form .= " value=\"Show advanced options\"></input></a>";
3219 3223
                $form .= "</div></td></tr>";
3220 3224
		$form .= "<tr style=\"display:none\" id=\"sprtable\" name=\"sprtable\">";
3221
		$form .= "<td valign=\"top\" class=\"vncellreq\">Weight</td>";
3222
		$form .= "<td valign=\"top\" class=\"vncellreq\">";
3225
		$form .= "<td valign=\"center\" class=\"vncellreq\">Weight</td>";
3226
		$form .= "<td valign=\"center\" class=\"vncellreq\">";
3223 3227
		$form .= "<input name=\"weight\" type=\"text\" id=\"weight\" size=\"5\" value=\"";
3224 3228
		$form .= $this->GetWeight() . "\">";
3225 3229
		$form .= "&nbsp;ms<br> <span class=\"vexpl\">Hint: For queues under the same parent "; 
3226 3230
		$form .= "this specifies the share that a queue gets(values range from 1 to 100, you can leave it blank otherwise)</span>";
3227 3231
		$form .= "</td></tr>";
3228 3232
		$form .= "<tr style=\"display:none\" id=\"sprtable1\" name=\"sprtable1\">";
3229
		$form .= "<td valign=\"top\" class=\"vncellreq\">Packet loss rate</td>";
3230
		$form .= "<td valign=\"top\" class=\"vncellreq\">";
3233
		$form .= "<td valign=\"center\" class=\"vncellreq\">Packet loss rate</td>";
3234
		$form .= "<td valign=\"center\" class=\"vncellreq\">";
3231 3235
		$form .= "<input name=\"plr\" type=\"text\" id=\"plr\" size=\"5\" value=\"";
3232 3236
		$form .= $this->GetPlr() . "\">";
3233 3237
		$form .= "&nbsp;<br> <span class=\"vexpl\">Hint: in most cases, you "; 
......
3235 3239
		$form .= "A value of 0.001 means one packet in 1000 gets dropped</span>";
3236 3240
		$form .= "</td></tr>";
3237 3241
		$form .= "<tr style=\"display:none\" id=\"sprtable2\" name=\"sprtable2\">";
3238
		$form .= "<td valign=\"top\" class=\"vncellreq\">Queue Size</td>";
3242
		$form .= "<td valign=\"center\" class=\"vncellreq\">Queue Size</td>";
3239 3243
		$form .= "<td class=\"vncellreq\">";
3240 3244
		$form .= "<input type=\"text\" id=\"qlimit\" name=\"qlimit\" value=\"";
3241 3245
		$form .= $this->GetQlimit() . "\">";
......
3246 3250
		$form .= "are delivered to their destination.</span>";
3247 3251
		$form .= "</td></tr>";
3248 3252
		$form .= "<tr style=\"display:none\" id=\"sprtable5\" name=\"sprtable5\">";
3249
                $form .= "<td valign=\"top\" class=\"vncellreq\">Bucket Size</td>";
3253
                $form .= "<td valign=\"center\" class=\"vncellreq\">Bucket Size</td>";
3250 3254
                $form .= "<td class=\"vncellreq\">";
3251 3255
                $form .= "<input type=\"text\" id=\"buckets\" name=\"buckets\" value=\"";
3252 3256
                $form .= $this->GetBuckets() . "\">";
......
3384 3388
    }
3385 3389
    
3386 3390
    function build_form() {
3387
        $form = "<tr><td valign=\"top\" class=\"vncellreq\"><br>";
3391
        $form = "<tr><td valign=\"center\" class=\"vncellreq\"><br>";
3388 3392
	$form .= "Enable/Disable";
3389 3393
	$form .= "</td><td class=\"vncellreq\">";
3390 3394
	$form .= " <input type=\"checkbox\" id=\"enabled\" name=\"enabled\" value=\"on\" ";
......
3393 3397
	}
3394 3398
	$form .= " ><span class=\"vexpl\"> Enable/Disable layer7 Container</span>";
3395 3399
	$form .= "</td></tr>";
3396
        $form .= "<tr><td valign=\"top\" class=\"vncellreq\"><br><span class=\"vexpl\">Name</span></td>";
3400
        $form .= "<tr><td valign=\"center\" class=\"vncellreq\"><br><span class=\"vexpl\">Name</span></td>";
3397 3401
	$form .= "<td class=\"vncellreq\">";
3398 3402
	$form .= "<input type=\"text\" id=\"container\" name=\"container\" value=\"";
3399 3403
	$form .= $this->GetRName()."\">";
3400 3404
	$form .= "</td></tr>";
3401
	$form .= "<tr><td valign=\"top\" class=\"vncellreq\">Description</td>";
3405
	$form .= "<tr><td valign=\"center\" class=\"vncellreq\">Description</td>";
3402 3406
	$form .= "<td class=\"vncellreq\">";
3403 3407
	$form .= "<input type=\"text\" class=\"formfld unknown\" size=\"50%\" id=\"description\" name=\"description\" value=\"";
3404 3408
	$form .= $this->GetRDescription();
usr/local/www/firewall_shaper.php
341 341

  
342 342
if (!$dontshow || $newqueue) {
343 343

  
344
$output_form .= "<tr><td width=\"22%\" valign=\"top\" class=\"vncellreq\">";
345
$output_form .= "Queue Actions";
346
$output_form .= "</td><td valign=\"top\" class=\"vncellreq\" width=\"78%\">";
344
$output_form .= "<tr><td width=\"22%\" valign=\"center\" class=\"vncellreq\">";
345
$output_form .= "<br />Queue Actions<br />";
346
$output_form .= "</td><td valign=\"center\" class=\"vncellreq\" width=\"78%\"><br />";
347 347

  
348 348
$output_form .= "<input type=\"submit\" name=\"Submit\" value=\"" . gettext("Save") . "\" class=\"formbtn\" />";
349 349
if ($can_add || $addnewaltq) {
......
368 368
		$output_form .= " value=\"Disable shaper on interface\">";
369 369
	$output_form .= "</a>";  
370 370
}
371
$output_form .= "</td></tr>";
371
$output_form .= "<br /></td></tr>";
372 372
$output_form .= "</div>";
373
} 
373
}
374 374
else 
375 375
	$output_form .= "</div>";
376 376

  

Also available in: Unified diff