+sub subclass {
+ &Header::openbox('100%', 'center', $Lang::tr{'Subclass'});
+ print <<END
+ <form method='post' action='$ENV{'SCRIPT_NAME'}'>
+ <table width='66%'>
+END
+;
+ if ( $message ne "" ) {
+ print "<tr><td colspan='3' align='center'>$message";
+ }
+ print <<END
+ <tr><td colspan='3' width='100%'>$Lang::tr{'current class'}: $qossettings{'CLASS'}
+ <tr><td width='100%' colspan='3'>$Lang::tr{'enter data'}
+ <tr><td width='33%' align='right'>$Lang::tr{'Subclass'}:<td width='33%' align='left'><select name='SCLASS'>
+END
+;
+ if ($qossettings{'CLASS'} >= 100 && $qossettings{'CLASS'} < 121) {
+ $qossettings{'DEVICE'} = $qossettings{'RED_DEV'};
+ for ( $c = 1000 ; $c <= 1020 ; $c++ )
+ {
+ if ( $qossettings{'SCLASS'} ne $c )
+ { print "<option value='$c'>$c</option>\n"; }
+ else { print "<option selected value='$c'>$c</option>\n"; }
+ }
+ } elsif ($qossettings{'CLASS'} >= 200 && $qossettings{'CLASS'} < 221) {
+ $qossettings{'DEVICE'} = $qossettings{'IMQ_DEV'};
+ for ( $c = 2000 ; $c <= 2020 ; $c++ )
+ {
+ if ( $qossettings{'SCLASS'} ne $c )
+ { print "<option value='$c'>$c</option>\n"; }
+ else { print "<option selected value='$c'>$c</option>\n"; }
+ }
+ }
+ print <<END
+ </select>
+ <td width='33%' align='center'>
+ <tr><td width='33%' align='right'>$Lang::tr{'priority'}:<td width='33%' align='left'><select name='PRIO'>
+END
+;
+ for ( $c = 1 ; $c <= 7 ; $c++ )
+ {
+ if ( $qossettings{'PRIO'} ne $c )
+ { print "<option value='$c'>$c</option>\n"; }
+ else { print "<option selected value='$c'>$c</option>\n"; }
+ }
+ print <<END
+ <td width='33%' align='center'>
+ <tr><td width='33%' align='right'>$Lang::tr{'guaranteed bandwith'}:
+ <td width='33%' align='left'><input type='text' name='MINBWDTH' maxlength='8' required='1' value="$qossettings{'MINBWDTH'}" />
+ <td width='33%' align='center'>
+ <tr><td width='33%' align='right'>$Lang::tr{'max bandwith'}:
+ <td width='33%' align='left'><input type='text' name='MAXBWDTH' maxlength='8' required='1' value="$qossettings{'MAXBWDTH'}" />
+ <td width='33%' align='center'>
+ <tr><td width='33%' align='right'>Burst:
+ <td width='33%' align='left'><input type='text' name='BURST' maxlength='8' value="$qossettings{'BURST'}" />
+ <td width='33%' align='center'>
+ <tr><td width='33%' align='right'>Ceilburst:
+ <td width='33%' align='left'><input type='text' name='CBURST' maxlength='8' value="$qossettings{'CBURST'}" />
+ <td width='33%' align='center'>
+ <tr><td width='33%' align='right'>TOS-Bit:
+ <td width='33%' align='left'><select name='TOS'>
+ <option value='0'>$Lang::tr{'disabled'} (0)</option>
+ <option value='8'>$Lang::tr{'min delay'} (8)</option>
+ <option value='4'>$Lang::tr{'max throughput'} (4)</option>
+ <option value='2'>$Lang::tr{'max reliability'} (2)</option>
+ <option value='1'>$Lang::tr{'min costs'} (1)</option></select>
+ <td width='33%' align='center'><input type='hidden' name='CLASS' value="$qossettings{'CLASS'}" />
+ <input type='hidden' name='DEVICE' value="$qossettings{'DEVICE'}" />
+ <input type='submit' name='DOSCLASS' value='$Lang::tr{'save'}' /> <input type='reset' value='$Lang::tr{'reset'}' />
+ </table></form>
+END
+;
+ &Header::closebox();
+}
+