Column Grouping

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

#ChecknumberAmount
Actions
Customernumber: 141 (5 items)
1JN72201050 View Edit
2KT5257863843.55 View Edit
3MC4694635420.74 View Edit
4MF62960220009.53 View Edit
5NU62770626155 View Edit
total145478.82
Customernumber: 144 (2 items)
6IR84630336005.71 View Edit
7LA6856787674.94 View Edit
total43680.65
Customernumber: 145 (3 items)
8CN3285454710.73 View Edit
9ED3932228211.7 View Edit
10HR18268820564.86 View Edit
total53487.29
Search