slot gacor
slot gacor
Nested tables - Default theme - eXtended CRUD & Data Management System
DEMO SITE v1.7.28

Nested tables Default theme

Example of table nesting

HIDE CODE
<?php  
	$xcrud = Xcrud::get_instance();
    $xcrud->table('orders');
    $xcrud->default_tab('Order info');
    $xcrud->parsley_active(true);
	//Make extension mandatory
	$xcrud->set_attr('comments',array('required'=>'required'));
    
    $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

Add Export into CSV Print
Search
#OrderdateRequireddateShippeddateStatusCommentsCustomernumber
Actions
120.02.2003 00:00:0028.05.2003 00:00:0023.04.2003 22:00:00ShippedDifficult to negotiate with customer. We need…131 View Edit Remove
203.03.2003 00:00:0012.03.2003 00:00:0008.03.2003 00:00:00Shipped385 View Edit Remove
310.03.2003 00:00:0019.03.2003 00:00:0011.03.2003 00:00:00ShippedCustomer requested that FedEx Ground is used for…486 View Edit Remove
418.03.2003 00:00:0024.03.2003 00:00:0020.03.2003 00:00:00Shipped187 View Edit Remove
525.03.2003 00:00:0031.03.2003 00:00:0030.03.2003 00:00:00Shipped129 View Edit Remove
624.03.2003 00:00:0003.04.2003 00:00:0029.03.2003 00:00:00ShippedCustomer requested that ad materials (such as…144 View Edit Remove
726.03.2003 00:00:0002.04.2003 00:00:0027.03.2003 00:00:00Shipped124 View Edit Remove
801.04.2003 00:00:0007.04.2003 00:00:0002.04.2003 00:00:00Shipped172 View Edit Remove
904.04.2003 00:00:0012.04.2003 00:00:0007.04.2003 00:00:00Shipped424 View Edit Remove
1011.04.2003 00:00:0019.04.2003 00:00:0013.04.2003 00:00:00Shipped381 View Edit Remove
?>
 
slot thailand
slot thailand slot gacor
slot gacor