DEMO SITE v1.7.15

Form Nav.(Next - Prev) Bootstrap 4.5 theme

Move Next and Previous in a form

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');
	$products->is_edit_modal(true);    
    $productLines = $products->nested_table('Product Lines','productLine','productlines','productLine'); // 4th level
    
    $xcrud->set_next_previous(true);
	$xcrud->unset_remove();
    echo $xcrud->render('edit', 10105);
    //echo $xcrud->render();
	
?>

Orders - Edit



Orderdetails

#ProductcodeQuantityorderedPriceeach 
1S10_475750127.84
2S12_110841205.72
3S12_389129141.88
4S18_314022136.59
5S18_32593887.73
6S18_45224175.48
7S24_201143117.97
8S24_31514473.46
9S24_38165075.47
10S700_11384154
Search

Customers

#CustomernameCityCountry 
1Danish Wholesale ImportsKobenhavnDenmark
Search