mirror of
https://github.com/hotspotbilling/phpnuxbill.git
synced 2025-08-04 10:15:03 +02:00
default widgets
This commit is contained in:
parent
69a7d842e0
commit
4bb5361d4b
15 changed files with 338 additions and 235 deletions
15
system/widgets/activity_log.php
Normal file
15
system/widgets/activity_log.php
Normal file
|
@ -0,0 +1,15 @@
|
|||
<?php
|
||||
|
||||
|
||||
class activity_log
|
||||
{
|
||||
public function getWidget()
|
||||
{
|
||||
global $config, $ui, $current_date, $start_date;
|
||||
$dlog = ORM::for_table('tbl_logs')->limit(5)->order_by_desc('id')->findArray();
|
||||
$ui->assign('dlog', $dlog);
|
||||
// $log = ORM::for_table('tbl_logs')->count();
|
||||
// $ui->assign('log', $log);
|
||||
return $ui->fetch('widget/activity_log.tpl');
|
||||
}
|
||||
}
|
Loading…
Add table
Add a link
Reference in a new issue