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: 124 (5 items) | ||||
1 | ET64396 | 83598.04 | View Edit | |
2 | HI366474 | 47142.7 | View Edit | |
3 | HR86578 | 55639.66 | View Edit | |
4 | LF217299 | 43369.3 | View Edit | |
5 | NT141748 | 45084.38 | View Edit | |
total | 274834.08 | |||
Customernumber: 128 (4 items) | ||||
6 | DI925118 | 10549.01 | View Edit | |
7 | FA465482 | 24101.81 | View Edit | |
8 | FH668230 | 33820.62 | View Edit | |
9 | IP383901 | 7466.32 | View Edit | |
total | 75937.76 | |||
Customernumber: 129 (1 items) | ||||
10 | DM826140 | 26248.78 | View Edit | |
total | 26248.78 |