Inline Editing (Multiple Instances) Minimal theme
Inline Editing for two xcrud instances
HIDE CODE
SHOW CODE
<?php
$xcrud1 = Xcrud::get_instance();
$xcrud1->table('orders');
$xcrud1->fields_inline('orderNumber,orderDate,requiredDate,shippedDate,comments');//set the fields to allow inline editing
echo $xcrud1->render();
$xcrud2 = Xcrud::get_instance();
$xcrud2->table('payments');
$xcrud2->fields_inline('customerNumber,checkNumber,paymentDate,amount');//set the fields to allow inline editing
echo $xcrud2->render();
?>
Orders
Orders
| # | Orderdate | Requireddate | Shippeddate | Status | Comments | Customernumber | |
| 1 | 05.11.2003 00:00:00 | 13.11.2003 00:00:00 | 07.11.2003 00:00:00 | Shipped | | 233 | View Edit Remove |
| 2 | 05.11.2003 00:00:00 | 14.11.2003 00:00:00 | 11.11.2003 00:00:00 | Shipped | | 175 | View Edit Remove |
| 3 | 06.11.2003 00:00:00 | 15.11.2003 00:00:00 | 12.11.2003 00:00:00 | Shipped | | 386 | View Edit Remove |
| 4 | 07.11.2003 00:00:00 | 17.11.2003 00:00:00 | 12.11.2003 00:00:00 | Shipped | | 344 | View Edit Remove |
| 5 | 08.11.2003 00:00:00 | 16.11.2003 00:00:00 | 10.11.2003 00:00:00 | Shipped | Custom shipping instructions sent to warehouse | 242 | View Edit Remove |
| 6 | 11.11.2003 00:00:00 | 17.11.2003 00:00:00 | 13.11.2003 00:00:00 | Cancelled | Customer cancelled due to urgent budgeting
| 496 | View Edit Remove |
| 7 | 11.11.2003 00:00:00 | 19.11.2003 00:00:00 | 14.11.2003 00:00:00 | Shipped | | 171 | View Edit Remove |
| 8 | 12.11.2003 00:00:00 | 19.11.2003 00:00:00 | 15.11.2003 00:00:00 | Shipped | | 167 | View Edit Remove |
| 9 | 12.11.2003 00:00:00 | 21.11.2003 00:00:00 | 18.11.2003 00:00:00 | Shipped | | 124 | View Edit Remove |
| 10 | 13.11.2003 00:00:00 | 22.11.2003 00:00:00 | 15.11.2003 00:00:00 | Shipped | We need to keep in close contact with their
| 339 | View Edit Remove |