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 | 01.07.2003 00:00:00 | 10.07.2003 00:00:00 | 05.07.2003 00:00:00 | Shipped | gfchchf
rtrtyrty | 250 | View Edit Remove |
| 2 | 02.07.2003 00:00:00 | 12.07.2003 00:00:00 | 03.07.2003 00:00:00 | Shipped | NULL | 124 | View Edit Remove |
| 3 | 01.08.2003 00:00:00 | 09.08.2003 00:00:00 | 04.08.2003 00:00:00 | Shipped | www | 334 | View Edit Remove |
| 4 | 19.09.2003 00:00:00 | 27.09.2003 00:00:00 | 21.09.2003 00:00:00 | Shipped | They want to reevaluate their terms agreement
| 148 | View Edit Remove |
| 5 | 21.09.2003 00:00:00 | 30.09.2003 00:00:00 | 24.09.2003 00:00:00 | Shipped | | 311 | View Edit Remove |
| 6 | 25.09.2003 00:00:00 | 03.10.2003 00:00:00 | 01.10.2003 00:00:00 | Shipped | | 333 | View Edit Remove |
| 7 | 28.09.2003 00:00:00 | 05.10.2003 00:00:00 | 03.10.2003 00:00:00 | Shipped | | 141 | View Edit Remove |
| 8 | 02.10.2003 00:00:00 | 12.10.2003 00:00:00 | 08.10.2003 00:00:00 | Shipped | | 219 | View Edit Remove |
| 9 | 06.10.2003 00:00:00 | 13.10.2003 00:00:00 | 07.10.2003 00:00:00 | Shipped | | 186 | View Edit Remove |
| 10 | 08.10.2003 00:00:00 | 17.10.2003 00:00:00 | 11.10.2003 00:00:00 | Shipped | | 141 | View Edit Remove |