Column Grouping Bootstrap 4.5 theme
simple column grouping,summation of a column value, inline editing
HIDE CODE
<?php $xcrud = Xcrud::get_instance(); $xcrud->table('payments'); $xcrud->unset_remove(); $xcrud->column_hide('customerNumber'); $xcrud->group_by_columns('customerNumber');//Allows only one field $xcrud->group_sum_columns('amount');//Allows only one field $xcrud->columns('customerNumber,checkNumber,amount'); $xcrud->fields_inline('customerNumber,checkNumber,paymentDate,amount'); echo $xcrud->render(); ?>
Payments
# | Checknumber | Amount | ||
---|---|---|---|---|
Customernumber: 11 (1 items) | ||||
1 | simonepppp | 100 | View Edit | |
total | 100 | |||
Customernumber: 114 (2 items) | ||||
2 | NP60385 | 100 | View Edit | |
3 | NR27552 | 100 | View Edit | |
total | 200 | |||
Customernumber: 119 (1 items) | ||||
4 | DB933704 | 100 | View Edit | |
total | 100 | |||
Customernumber: 124 (6 items) | ||||
5 | AE215433 | 82261009 | View Edit | |
6 | BG255406 | 82261 | View Edit | |
7 | CQ287967 | 82261009 | View Edit | |
8 | ET64396 | 82261 | View Edit | |
9 | HI366474 | 47142.7 | View Edit | |
10 | HR86578 | 55639.66 | View Edit | |
total | 164789322.36 |