mirror of
https://github.com/librenms/librenms.git
synced 2024-10-07 16:52:45 +00:00
Indent cleaning for bills (#10268)
* Correct indentation and empty lines * Update new_bill.inc.php * Update addoreditbill.inc.php
This commit is contained in:
@@ -2,7 +2,6 @@
|
||||
|
||||
use LibreNMS\Config;
|
||||
|
||||
|
||||
function format_bytes_billing($value)
|
||||
{
|
||||
return format_number($value, Config::get('billing.base')).'B';
|
||||
|
@@ -73,16 +73,15 @@ if (LegacyAuth::user()->hasGlobalAdmin()) {
|
||||
</div>
|
||||
|
||||
<?php
|
||||
|
||||
if (Config::get('billing.95th_default_agg') == 1) {
|
||||
$bill_data['dir_95th'] = 'agg';
|
||||
} else {
|
||||
$bill_data['dir_95th'] = 'in';
|
||||
}
|
||||
$bill_data['bill_type'] = 'cdr';
|
||||
$quota = array('select_gb' => ' selected');
|
||||
$cdr = array('select_mbps' => ' selected');
|
||||
include 'includes/html/pages/bill/addoreditbill.inc.php';
|
||||
if (Config::get('billing.95th_default_agg') == 1) {
|
||||
$bill_data['dir_95th'] = 'agg';
|
||||
} else {
|
||||
$bill_data['dir_95th'] = 'in';
|
||||
}
|
||||
$bill_data['bill_type'] = 'cdr';
|
||||
$quota = array('select_gb' => ' selected');
|
||||
$cdr = array('select_mbps' => ' selected');
|
||||
include 'includes/html/pages/bill/addoreditbill.inc.php';
|
||||
?>
|
||||
<div class="form-group">
|
||||
<div class="col-sm-offset-4 col-sm-4">
|
||||
|
@@ -43,19 +43,19 @@
|
||||
<div class="col-sm-8">
|
||||
<label class="radio-inline">
|
||||
<input type="radio" name="dir_95th" id="dir_95th_inout" value="in"
|
||||
<?php
|
||||
if ($bill_data['dir_95th'] == 'in' || $bill_data['dir_95th'] == 'out') {
|
||||
echo "checked";
|
||||
}
|
||||
?> /> Max In/Out
|
||||
<?php
|
||||
if ($bill_data['dir_95th'] == 'in' || $bill_data['dir_95th'] == 'out') {
|
||||
echo "checked";
|
||||
}
|
||||
?> /> Max In/Out
|
||||
</label>
|
||||
<label class="radio-inline">
|
||||
<input type="radio" name="dir_95th" id="dir_95th_agg" value="agg"
|
||||
<?php
|
||||
if ($bill_data['dir_95th'] == 'agg') {
|
||||
echo "checked";
|
||||
}
|
||||
?> /> Aggregate
|
||||
<?php
|
||||
if ($bill_data['dir_95th'] == 'agg') {
|
||||
echo "checked";
|
||||
}
|
||||
?> /> Aggregate
|
||||
</label>
|
||||
</div>
|
||||
</div>
|
||||
|
Reference in New Issue
Block a user