Column Grouping Semantic UI 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: 161 (3 items) | |||
| 1 | BR478494ee | 99 | View Edit |
| 2 | KG644125 | 58 | View Edit |
| 3 | NI908214 | 28 | View Edit |
| total | 185 | ||
| - Customernumber: 167 (1 items) | |||
| 4 | GN228846 | 28 | View Edit |
| total | 28 | ||
| - Customernumber: 171 (2 items) | |||
| 5 | GB878038 | 28 | View Edit |
| 6 | IL104425 | 28 | View Edit |
| total | 56 | ||
| - Customernumber: 172 (2 items) | |||
| 7 | 83-2091___ | 28 | View Edit |
| 8 | EH208589 | 28 | View Edit |
| total | 56 | ||
| - Customernumber: 173 (2 items) | |||
| 9 | GP545698 | 28 | View Edit |
| 10 | IG462397 | 20355.24 | View Edit |
| total | 20383.24 | ||