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 | 22.10.2003 00:00:00 | 31.10.2003 00:00:00 | 26.12.2003 00:00:00 | Shipped | This order was on hold because customers's credit
| 148 | View Edit Remove |
| 2 | 21.10.2003 00:00:00 | 30.10.2003 00:00:00 | 27.10.2003 00:00:00 | Shipped | | 462 | View Edit Remove |
| 3 | 23.10.2003 00:00:00 | 30.10.2003 00:00:00 | | Cancelled | Customer called to cancel. The warehouse was
| 448 | View Edit Remove |
| 4 | 28.10.2003 00:00:00 | 03.11.2003 00:00:00 | 01.11.2003 00:00:00 | Shipped | | 161 | View Edit Remove |
| 5 | 04.11.2003 00:00:00 | 14.11.2003 00:00:00 | 09.11.2003 00:00:00 | Shipped | | 276 | View Edit Remove |
| 6 | 04.11.2003 00:00:00 | 12.11.2003 00:00:00 | 07.11.2003 00:00:00 | Shipped | | 452 | View Edit Remove |
| 7 | 05.11.2003 00:00:00 | 13.11.2003 00:00:00 | 07.11.2003 00:00:00 | Shipped | | 233 | View Edit Remove |
| 8 | 05.11.2003 00:00:00 | 14.11.2003 00:00:00 | 11.11.2003 00:00:00 | Shipped | | 175 | View Edit Remove |
| 9 | 05.11.2003 00:00:00 | 15.11.2003 00:00:00 | 09.11.2003 00:00:00 | Shipped | Cautious optimism. We have happy customers here,
| 278 | View Edit Remove |
| 10 | 06.11.2003 00:00:00 | 15.11.2003 00:00:00 | 10.11.2003 00:00:00 | Shipped | | 333 | View Edit Remove |