DEMO SITE v1.7.31

Grouping Level 2NEW
1.7.29
Bootstrap 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

Add
#ChecknumberAmount
Actions
+ Customernumber: 157 (1 items)
+ Amount: 35152.1 (1 items)
161-8861___35152.1 View Edit
+ Customernumber: 161 (4 items)
+ Amount: 5500 (1 items)
2BR3523845500 View Edit
+ Amount: 50743.65 (1 items)
3BR47849450743.65 View Edit
+ Amount: 12692.19 (1 items)
4KG64412512692.19 View Edit
+ Amount: 38675.13 (1 items)
5NI90821438675.13 View Edit
+ Customernumber: 167 (2 items)
+ Amount: 12538.01 (1 items)
6ED74361512538.01 View Edit
+ Amount: 85024.46 (1 items)
7GN22884685024.46 View Edit
+ Customernumber: 171 (2 items)
+ Amount: 18997.89 (1 items)
8GB87803818997.89 View Edit
+ Amount: 42783.81 (1 items)
9IL10442542783.81 View Edit
+ Customernumber: 172 (1 items)
+ Amount: 1960.8 (1 items)
10AD8320911960.8 View Edit
showing_records 1 to 10 of 610
Search