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: 155 (1 items) | |||
1 | MA724562vvv | 492 | View Edit |
total | 492 | ||
- Customernumber: 131 (1 items) | |||
2 | NB445135 | 490 | View Edit |
total | 490 | ||
- Customernumber: 141 (7 items) | |||
3 | lDL4606180 | 160 | View Edit |
4 | 32-686 | 160 | View Edit |
5 | ID10962 | 1608 | View Edit |
6 | JN355280 | 1608 | View Edit |
7 | JN722010 | 1608 | View Edit |
8 | KT52578 | 63843.55 | View Edit |
9 | MC46946 | 35420.74 | View Edit |
total | 104408.29 | ||
- Customernumber: 144 (1 items) | |||
10 | LA685678 | 7674.94 | View Edit |
total | 7674.94 |