default widgets

This commit is contained in:
iBNu Maksum
2025-02-17 13:54:18 +07:00
parent 69a7d842e0
commit 4bb5361d4b
15 changed files with 338 additions and 235 deletions

View File

@ -0,0 +1,17 @@
<?php
class default_info_row
{
public function getWidget()
{
global $config,$ui;
if ($config['enable_balance'] == 'yes'){
$cb = ORM::for_table('tbl_customers')->whereGte('balance', 0)->sum('balance');
$ui->assign('cb', $cb);
}
return $ui->fetch('widget/default_info_row.tpl');
}
}