DEMO SITE v1.7.15

Edit - Side Panel (Nested tab) Bootstrap theme

Edit a form with nested tab, placed on the side

HIDE CODE
<?php  
	
	$xcrud = Xcrud::get_instance();
    $xcrud->table('orders');
    $xcrud->default_tab('Order info');
	//$xcrud->columns('Orderdate,requireddate,Status,comments,customernumber');
    
    $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
    
    $xcrud->is_edit_side(true);
    echo $xcrud->render();
	
?>

Orders

#OrderdateRequireddateShippeddateStatusCommentsCustomernumber 
108.01.2003 00:00:0009.02.2003 00:00:0019.02.2003 00:00:00ShippedHi141
214.02.2003 00:00:0021.02.2003 00:00:0012.02.2003 00:00:00ShippedItem
1qeaewewewewew
 
zukjk
145
317.02.2003 00:00:0024.02.2003 00:00:0021.02.2003 00:00:00ShippedGreat Item278
424.02.2003 00:00:0003.03.2003 00:00:0026.02.2003 00:00:00ShippedDifficult to negotiate with customer. We need…131
503.03.2003 00:00:0012.03.2003 00:00:0008.03.2003 00:00:00Shipped385
610.03.2003 00:00:0019.03.2003 00:00:0011.03.2003 00:00:00ShippedCustomer requested that FedEx Ground is used for…486
718.03.2003 00:00:0024.03.2003 00:00:0020.03.2003 00:00:00Shipped187
825.03.2003 00:00:0031.03.2003 00:00:0030.03.2003 00:00:00Shipped129
924.03.2003 00:00:0003.04.2003 00:00:0029.03.2003 00:00:00ShippedCustomer requested that ad materials (such as…144
1026.03.2003 00:00:0002.04.2003 00:00:0027.03.2003 00:00:00Shipped124
Search