Grouping +/-NEW
1.7.29 Semantic UI theme
You can collapse or expand grouped rows
HIDE CODE
<?php $xcrud = Xcrud::get_instance(); $xcrud->table('payments'); $xcrud->unset_remove(); $xcrud->column_hide('customerNumber'); $xcrud->group_table_collapsed(true); $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: 112 (3 items) | |||
+ Customernumber: 114 (4 items) | |||
+ Customernumber: 119 (1 items) | |||
+ Customernumber: 121 (2 items) |