Grouping Level 2NEW
1.7.29 Bootstrap 4.5 theme
Grouping Rows to the second level
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,amount');//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) | |||
+ Amount: 492 (1 items) | |||
+ Customernumber: 131 (1 items) | |||
+ Amount: 490 (1 items) | |||
+ Customernumber: 141 (7 items) | |||
+ Amount: 160 (2 items) | |||
+ Amount: 1608 (3 items) | |||
+ Amount: 63843.55 (1 items) | |||
+ Amount: 35420.74 (1 items) | |||
+ Customernumber: 144 (1 items) | |||
+ Amount: 7674.94 (1 items) |