Orders example

function orders_management()
{
$crud = new grocery_CRUD();
 
$crud->set_relation('customerNumber','customers','contactLastName');
$crud->display_as('customerNumber','Customer');
$crud->set_table('orders');
$crud->set_subject('Order');
$crud->unset_add();
$crud->unset_delete();
 
$output = $crud->render();
 
$this->_example_output($output);
}
Note: The below example is an iframe so it might appeared with a scroll bar. If you like you can view the example on a new tab