change burst form
This commit is contained in:
parent
702f2b443c
commit
8072fe40eb
@ -2,6 +2,13 @@
|
|||||||
|
|
||||||
# CHANGELOG
|
# CHANGELOG
|
||||||
|
|
||||||
|
## 2024.2.21
|
||||||
|
|
||||||
|
- Fix SQL Installer
|
||||||
|
- remove multiple space in language
|
||||||
|
- Change Phone Number require OTP by @Focuslinkstech
|
||||||
|
- Change burst Form
|
||||||
|
|
||||||
## 2024.2.20
|
## 2024.2.20
|
||||||
|
|
||||||
- Fix list admin
|
- Fix list admin
|
||||||
|
@ -44,6 +44,7 @@ switch ($action) {
|
|||||||
run_hook('view_edit_bandwith'); #HOOK
|
run_hook('view_edit_bandwith'); #HOOK
|
||||||
$d = ORM::for_table('tbl_bandwidth')->find_one($id);
|
$d = ORM::for_table('tbl_bandwidth')->find_one($id);
|
||||||
if($d){
|
if($d){
|
||||||
|
$ui->assign('burst',explode(" ", $d['burst']));
|
||||||
$ui->assign('d',$d);
|
$ui->assign('d',$d);
|
||||||
$ui->display('bandwidth-edit.tpl');
|
$ui->display('bandwidth-edit.tpl');
|
||||||
}else{
|
}else{
|
||||||
@ -67,8 +68,19 @@ switch ($action) {
|
|||||||
$rate_down_unit = _post('rate_down_unit');
|
$rate_down_unit = _post('rate_down_unit');
|
||||||
$rate_up = _post('rate_up');
|
$rate_up = _post('rate_up');
|
||||||
$rate_up_unit = _post('rate_up_unit');
|
$rate_up_unit = _post('rate_up_unit');
|
||||||
$burst = _post('burst');
|
|
||||||
run_hook('add_bandwidth'); #HOOK
|
run_hook('add_bandwidth'); #HOOK
|
||||||
|
$isBurst = true;
|
||||||
|
$burst = "";
|
||||||
|
if(isset($_POST['burst'])){
|
||||||
|
foreach($_POST['burst'] as $b){
|
||||||
|
if(empty($b)){
|
||||||
|
$isBurst = false;
|
||||||
|
}
|
||||||
|
}
|
||||||
|
if($isBurst){
|
||||||
|
$burst = implode(' ', $_POST['burst']);
|
||||||
|
};
|
||||||
|
}
|
||||||
$msg = '';
|
$msg = '';
|
||||||
if(Validator::Length($name,16,4) == false){
|
if(Validator::Length($name,16,4) == false){
|
||||||
$msg .= 'Name should be between 5 to 15 characters'. '<br>';
|
$msg .= 'Name should be between 5 to 15 characters'. '<br>';
|
||||||
@ -104,8 +116,19 @@ switch ($action) {
|
|||||||
$rate_down_unit = _post('rate_down_unit');
|
$rate_down_unit = _post('rate_down_unit');
|
||||||
$rate_up = _post('rate_up');
|
$rate_up = _post('rate_up');
|
||||||
$rate_up_unit = _post('rate_up_unit');
|
$rate_up_unit = _post('rate_up_unit');
|
||||||
$burst = _post('burst');
|
run_hook('edit_bandwidth'); #HOOK
|
||||||
run_hook('edit_bandwidth'); #HOOK
|
$isBurst = true;
|
||||||
|
$burst = "";
|
||||||
|
if(isset($_POST['burst'])){
|
||||||
|
foreach($_POST['burst'] as $b){
|
||||||
|
if(empty($b)){
|
||||||
|
$isBurst = false;
|
||||||
|
}
|
||||||
|
}
|
||||||
|
if($isBurst){
|
||||||
|
$burst = implode(' ', $_POST['burst']);
|
||||||
|
};
|
||||||
|
}
|
||||||
$msg = '';
|
$msg = '';
|
||||||
if(Validator::Length($name,16,4) == false){
|
if(Validator::Length($name,16,4) == false){
|
||||||
$msg .= 'Name should be between 5 to 15 characters'. '<br>';
|
$msg .= 'Name should be between 5 to 15 characters'. '<br>';
|
||||||
|
@ -438,5 +438,8 @@
|
|||||||
"OTP": "OTP",
|
"OTP": "OTP",
|
||||||
"Enter_OTP_that_was_sent_to_your_phone": "Enter OTP that was sent to your phone",
|
"Enter_OTP_that_was_sent_to_your_phone": "Enter OTP that was sent to your phone",
|
||||||
"Update": "Update",
|
"Update": "Update",
|
||||||
"OTP_is_required_when_user_want_to_change_phone_number": "OTP is required when user want to change phone number"
|
"OTP_is_required_when_user_want_to_change_phone_number": "OTP is required when user want to change phone number",
|
||||||
|
"Rate": "Rate",
|
||||||
|
"Burst": "Burst",
|
||||||
|
"Editing_Bandwidth_will_not_automatically_update_the_plan__you_need_to_edit_the_plan_then_save_again": "Editing Bandwidth will not automatically update the plan, you need to edit the plan then save again"
|
||||||
}
|
}
|
@ -40,7 +40,31 @@
|
|||||||
<div class="form-group">
|
<div class="form-group">
|
||||||
<label class="col-md-2 control-label">Burst Limit</label>
|
<label class="col-md-2 control-label">Burst Limit</label>
|
||||||
<div class="col-md-6">
|
<div class="col-md-6">
|
||||||
<input type="text" class="form-control" id="burst" name="burst" placeholder="[Burst/Limit] [Burst/Threshold] [Burst/Time] [Priority] [Limit/At]">
|
<input type="text" class="form-control" name="burst[]" placeholder="[Burst/Limit]">
|
||||||
|
</div>
|
||||||
|
</div>
|
||||||
|
<div class="form-group">
|
||||||
|
<label class="col-md-2 control-label">Burst Threshold</label>
|
||||||
|
<div class="col-md-6">
|
||||||
|
<input type="text" class="form-control" name="burst[]" placeholder="[Burst/Threshold]">
|
||||||
|
</div>
|
||||||
|
</div>
|
||||||
|
<div class="form-group">
|
||||||
|
<label class="col-md-2 control-label">Burst Time</label>
|
||||||
|
<div class="col-md-6">
|
||||||
|
<input type="text" class="form-control" name="burst[]" placeholder="[Burst/Time]">
|
||||||
|
</div>
|
||||||
|
</div>
|
||||||
|
<div class="form-group">
|
||||||
|
<label class="col-md-2 control-label">Priority</label>
|
||||||
|
<div class="col-md-6">
|
||||||
|
<input type="number" class="form-control" name="burst[]" placeholder="[Priority]">
|
||||||
|
</div>
|
||||||
|
</div>
|
||||||
|
<div class="form-group">
|
||||||
|
<label class="col-md-2 control-label">Limit At</label>
|
||||||
|
<div class="col-md-6">
|
||||||
|
<input type="text" class="form-control" name="burst[]" placeholder="[Limit/At]">
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
<div class="form-group">
|
<div class="form-group">
|
||||||
|
@ -43,11 +43,39 @@
|
|||||||
</select>
|
</select>
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
|
|
||||||
<div class="form-group">
|
<div class="form-group">
|
||||||
<label class="col-md-2 control-label">Burst Limit</label>
|
<label class="col-md-2 control-label">Burst Limit</label>
|
||||||
<div class="col-md-6">
|
<div class="col-md-6">
|
||||||
<input type="text" class="form-control" id="burst" name="burst" value="{$d['burst']}" placeholder="[Burst/Limit] [Burst/Threshold] [Burst/Time] [Priority] [Limit/At]">
|
<input type="text" class="form-control" name="burst[]" placeholder="[Burst/Limit]" value="{$burst[0]}">
|
||||||
|
</div>
|
||||||
|
</div>
|
||||||
|
<div class="form-group">
|
||||||
|
<label class="col-md-2 control-label">Burst Threshold</label>
|
||||||
|
<div class="col-md-6">
|
||||||
|
<input type="text" class="form-control" name="burst[]" placeholder="[Burst/Threshold]" value="{$burst[1]}">
|
||||||
|
</div>
|
||||||
|
</div>
|
||||||
|
<div class="form-group">
|
||||||
|
<label class="col-md-2 control-label">Burst Time</label>
|
||||||
|
<div class="col-md-6">
|
||||||
|
<input type="text" class="form-control" name="burst[]" placeholder="[Burst/Time]" value="{$burst[2]}">
|
||||||
|
</div>
|
||||||
|
</div>
|
||||||
|
<div class="form-group">
|
||||||
|
<label class="col-md-2 control-label">Priority</label>
|
||||||
|
<div class="col-md-6">
|
||||||
|
<input type="number" class="form-control" name="burst[]" placeholder="[Priority]" value="{$burst[3]}">
|
||||||
|
</div>
|
||||||
|
</div>
|
||||||
|
<div class="form-group">
|
||||||
|
<label class="col-md-2 control-label">Limit At</label>
|
||||||
|
<div class="col-md-6">
|
||||||
|
<input type="text" class="form-control" name="burst[]" placeholder="[Limit/At]" value="{$burst[4]}">
|
||||||
|
</div>
|
||||||
|
</div>
|
||||||
|
<div class="form-group">
|
||||||
|
<div class="col-lg-offset-2 col-lg-10">
|
||||||
|
<small>{Lang::T('Editing Bandwidth will not automatically update the plan, you need to edit the plan then save again')}</small>
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
<div class="form-group">
|
<div class="form-group">
|
||||||
|
@ -28,8 +28,8 @@
|
|||||||
<thead>
|
<thead>
|
||||||
<tr>
|
<tr>
|
||||||
<th>{Lang::T('Bandwidth Name')}</th>
|
<th>{Lang::T('Bandwidth Name')}</th>
|
||||||
<th>{Lang::T('Rate Download')}</th>
|
<th>{Lang::T('Rate')}</th>
|
||||||
<th>{Lang::T('Rate Upload')}</th>
|
<th>{Lang::T('Burst')}</th>
|
||||||
<th>{Lang::T('Manage')}</th>
|
<th>{Lang::T('Manage')}</th>
|
||||||
</tr>
|
</tr>
|
||||||
</thead>
|
</thead>
|
||||||
@ -37,8 +37,8 @@
|
|||||||
{foreach $d as $ds}
|
{foreach $d as $ds}
|
||||||
<tr>
|
<tr>
|
||||||
<td>{$ds['name_bw']}</td>
|
<td>{$ds['name_bw']}</td>
|
||||||
<td>{$ds['rate_down']} {$ds['rate_down_unit']}</td>
|
<td>{$ds['rate_down']} {$ds['rate_down_unit']} / {$ds['rate_up']} {$ds['rate_up_unit']}</td>
|
||||||
<td>{$ds['rate_up']} {$ds['rate_up_unit']}</td>
|
<td>{$ds['burst']}</td>
|
||||||
<td>
|
<td>
|
||||||
<a href="{$_url}bandwidth/edit/{$ds['id']}" class="btn btn-sm btn-warning">{Lang::T('Edit')}</a>
|
<a href="{$_url}bandwidth/edit/{$ds['id']}" class="btn btn-sm btn-warning">{Lang::T('Edit')}</a>
|
||||||
<a href="{$_url}bandwidth/delete/{$ds['id']}" id="{$ds['id']}" class="btn btn-danger btn-sm" onclick="return confirm('{Lang::T('Delete')}?')" ><i class="glyphicon glyphicon-trash"></i></a>
|
<a href="{$_url}bandwidth/delete/{$ds['id']}" id="{$ds['id']}" class="btn btn-danger btn-sm" onclick="return confirm('{Lang::T('Delete')}?')" ><i class="glyphicon glyphicon-trash"></i></a>
|
||||||
|
@ -1,3 +1,3 @@
|
|||||||
{
|
{
|
||||||
"version": "2024.2.20"
|
"version": "2024.2.21"
|
||||||
}
|
}
|
Loading…
x
Reference in New Issue
Block a user