DEMO SITE v1.7.28

Edit - Modal (Nested Tab) Bootstrap 4.5 theme

Edit through a Modal Form with nested tab

HIDE CODE
<?php  
	$xcrud = Xcrud::get_instance();
    $xcrud->table('orders');
    $xcrud->default_tab('Order info');
	$xcrud->columns('orderDate,requiredDate,status,comments,customerNumber');
	
	$xcrud->fields_arrange('orderDate,requiredDate,shippedDate','Dates',true); 
	$xcrud->fields_arrange('status,customerNumber','Customer',true); 
	$xcrud->fields_arrange('comments','Other Info',true); 
	   
    $orderdetails = $xcrud->nested_table('Order details','orderNumber','orderdetails','orderNumber'); // 2nd level
    $orderdetails->columns('productCode,quantityOrdered,priceEach');
	$orderdetails->fields_arrange('productCode','Product',true);
	$orderdetails->fields_arrange('quantityOrdered,priceEach','Quantity',true);
	
    $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');
	$products->is_edit_modal(true);   
    $productLines = $products->nested_table('Product Lines','productLine','productlines','productLine'); // 4th level    
    $xcrud->is_edit_modal(true);	
    echo $xcrud->render();
?>

Orders

Add
#OrderdateRequireddateStatusCommentsCustomernumber
Actions
127.06.2003 00:00:0004.07.2003 00:00:00ShippedNULL141 View Edit Remove
201.07.2003 00:00:0010.07.2003 00:00:00Shipped250 View Edit Remove
302.07.2003 00:00:0012.07.2003 00:00:00ShippedNULL124 View Edit Remove
404.07.2003 00:00:0014.07.2003 00:00:00ShippedCustomer is interested in buying more Ferrari…242 View Edit Remove
510.07.2003 00:00:0020.07.2003 00:00:00ShippedPROVA353 View Edit Remove
607.07.2003 00:00:0016.07.2003 00:00:00Shipped496 View Edit Remove
716.07.2003 00:00:0023.07.2003 00:00:00Shipped282 View Edit Remove
824.07.2003 00:00:0002.08.2003 00:00:00Shipped161 View Edit Remove
901.08.2003 00:00:0009.08.2003 00:00:00Shipped334 View Edit Remove
1008.08.2003 00:00:0016.08.2003 00:00:00Shipped124 View Edit Remove
showing_records 1 to 10 of 332
Search
 
slot thailand
slot thailand slot gacor
slot gacor