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: 124 (7 items) | ||||
1 | AE215433 | 101244.59 | View Edit | |
2 | BG255406 | 85410.87 | View Edit | |
3 | ET64396 | 83598.04 | View Edit | |
4 | HI366474 | 47142.7 | View Edit | |
5 | HR86578 | 55639.66 | View Edit | |
7 | LF217299 | 43369.3 | View Edit | |
8 | NT141748 | 45084.38 | View Edit | |
total | 461489.54 | |||
Customernumber: 12496 (1 items) | ||||
6 | KI131716 | 111654.4 | View Edit | |
total | 111654.4 | |||
Customernumber: 128 (2 items) | ||||
9 | DI925118 | 10549.01 | View Edit | |
10 | FA465482 | 24101.81 | View Edit | |
total | 34650.82 |