Nested tables in tabs Default theme

Example of table nesting in tabs implementation

<?php  
	$xcrud = Xcrud::get_instance();
    $xcrud->table('orders');
    $xcrud->default_tab('Order info');
    
    $orderdetails = $xcrud->nested_table('Order details','orderNumber','orderdetails','orderNumber'); // 2nd level
    $orderdetails->columns('productCode,quantityOrdered,priceEach');
    $orderdetails->fields('productCode,quantityOrdered,priceEach');
    $orderdetails->default_tab('Detail information');
    
    $customers = $xcrud->nested_table('Customers','customerNumber','customers','customerNumber'); // 2nd level 2
    $customers->columns('customerName,city,country');
    
    $products = $orderdetails->nested_table('Products','productCode','products','productCode'); // 3rd level
    $products->default_tab('Product details');
    
    $productLines = $products->nested_table('Product Lines','productLine','productlines','productLine'); // 4th level
    
    echo $xcrud->render();
?>

Orders

#OrderdateRequireddateShippeddateStatusCommentsCustomernumber 
106.01.2003 00:00:0013.01.2003 00:00:0010.01.2003 00:00:00Shipped363
209.01.2003 00:00:0018.01.2003 00:00:0011.01.2003 00:00:00ShippedCheck on availability.128
310.01.2003 00:00:0018.01.2003 00:00:0014.01.2003 00:00:00Shipped181
429.01.2003 00:00:0007.02.2003 00:00:0002.02.2003 00:00:00Shipped121
531.01.2003 00:00:0009.02.2003 00:00:0001.02.2003 00:00:00Shipped141
611.02.2003 00:00:0021.02.2003 00:00:0012.02.2003 00:00:00Shipped145
717.02.2003 00:00:0024.02.2003 00:00:0021.02.2003 00:00:00Shipped278
824.02.2003 00:00:0003.03.2003 00:00:0026.02.2003 00:00:00ShippedDifficult to negotiate with customer. We need…131
903.03.2003 00:00:0012.03.2003 00:00:0008.03.2003 00:00:00Shipped385
1010.03.2003 00:00:0019.03.2003 00:00:0011.03.2003 00:00:00ShippedCustomer requested that FedEx Ground is used for…486
Add Export into CSV PrintSearch

 
Buy it nowfor only $13