mirror of
https://github.com/hotspotbilling/phpnuxbill.git
synced 2025-07-31 08:14:50 +02:00
Show Offline routers in the dashboard
This commit is contained in:
parent
7963c2f388
commit
11ec4185e7
3 changed files with 76 additions and 45 deletions
|
@ -209,6 +209,12 @@ if (file_exists($cacheMSfile) && time() - filemtime($cacheMSfile) < 43200) {
|
|||
file_put_contents($cacheMSfile, json_encode($monthlySales));
|
||||
}
|
||||
|
||||
if ($config['router_check']) {
|
||||
$routeroffs = ORM::for_table('tbl_routers')->selects(['id', 'name', 'last_seen'])->where('status', 'Offline')->order_by_desc('name')->find_array();
|
||||
print_r($routeroffs);
|
||||
$ui->assign('routeroffs', $routeroffs);
|
||||
}
|
||||
|
||||
// Assign the monthly sales data to Smarty
|
||||
$ui->assign('start_date', $start_date);
|
||||
$ui->assign('current_date', $current_date);
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue