mirror of
https://github.com/vincentmli/bpfire.git
synced 2026-04-10 19:15:54 +02:00
qos.cgi: Reindent change bandwidth window
Signed-off-by: Michael Tremer <michael.tremer@ipfire.org> Signed-off-by: Arne Fitzenreiter <arne_f@ipfire.org>
This commit is contained in:
committed by
Arne Fitzenreiter
parent
58d471a4a8
commit
2d42f1df3b
@@ -749,26 +749,43 @@ END
|
||||
|
||||
sub changebandwidth {
|
||||
&Header::openbox('100%', 'center', $Lang::tr{'bandwidthsettings'});
|
||||
|
||||
if ($qossettings{'ENABLED'} eq 'on') {
|
||||
print "$Lang::tr{'bandwidtherror'}";
|
||||
print "<a href='/cgi-bin/qos.cgi'>$Lang::tr{'back'}</a>";
|
||||
} else {
|
||||
print <<END
|
||||
<form method='post' action='$ENV{'SCRIPT_NAME'}'>
|
||||
<input type='hidden' name='DEF_OUT_SPD' value='' /><input type='hidden' name='DEF_INC_SPD' value='' />
|
||||
<table width='66%'>
|
||||
<tr><td width='100%' colspan='3'>$Lang::tr{'down and up speed'}</td></tr>
|
||||
<tr><td width='50%' align='right'>$Lang::tr{'downlink speed'}:</td>
|
||||
<td width='30%' align='left'><input type='text' name='INC_SPD' maxlength='8' value="$qossettings{'INC_SPD'}" /></td>
|
||||
<td width='20%' align='center' rowspan='2'><input type='submit' name='ACTION' value="$Lang::tr{'template'}" /><br /><input type='submit' name='ACTION' value="$Lang::tr{'save'}" /><br /><input type='reset' name='ACTION' value="$Lang::tr{'reset'}" /></td></tr>
|
||||
<tr><td width='50%' align='right'>$Lang::tr{'uplink speed'}:</td>
|
||||
<td width='30%' align='left'><input type='text' name='OUT_SPD' maxlength='8' value="$qossettings{'OUT_SPD'}" /></td></tr>
|
||||
</table>
|
||||
</form>
|
||||
<font color='red'>$Lang::tr{'template warning'}</font>
|
||||
print <<END;
|
||||
<form method='post' action='$ENV{'SCRIPT_NAME'}'>
|
||||
<input type='hidden' name='DEF_OUT_SPD' value='' /><input type='hidden' name='DEF_INC_SPD' value='' />
|
||||
<table width='66%'>
|
||||
<tr>
|
||||
<td width='100%' colspan='3'>$Lang::tr{'down and up speed'}</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td width='50%' align='right'>$Lang::tr{'downlink speed'}:</td>
|
||||
<td width='30%' align='left'>
|
||||
<input type='text' name='INC_SPD' maxlength='8' value="$qossettings{'INC_SPD'}" />
|
||||
</td>
|
||||
<td width='20%' align='center' rowspan='2'>
|
||||
<input type='submit' name='ACTION' value="$Lang::tr{'template'}" />
|
||||
<br />
|
||||
<input type='submit' name='ACTION' value="$Lang::tr{'save'}" />
|
||||
<br />
|
||||
<input type='reset' name='ACTION' value="$Lang::tr{'reset'}" />
|
||||
</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td width='50%' align='right'>$Lang::tr{'uplink speed'}:</td>
|
||||
<td width='30%' align='left'>
|
||||
<input type='text' name='OUT_SPD' maxlength='8' value="$qossettings{'OUT_SPD'}" />
|
||||
</td>
|
||||
</tr>
|
||||
</table>
|
||||
</form>
|
||||
<font color='red'>$Lang::tr{'template warning'}</font>
|
||||
END
|
||||
;
|
||||
}
|
||||
|
||||
&Header::closebox();
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user