Inline Editing (Multiple Instances) Material Design theme
Inline Editing for two xcrud instances
HIDE 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
| # | Orderdate | Requireddate | Shippeddate | Status | Comments | Customernumber | |
|---|---|---|---|---|---|---|---|
| 1 | 20.02.2003 00:00:00 | 29.07.2020 00:00:00 | 30.07.2020 00:00:00 | Shipped | Great | 363 | |
| 2 | 10.01.2003 00:00:00 | 18.01.2003 00:00:00 | 14.01.2003 00:00:00 | Shipped | Great Great | 181 | |
| 3 | 29.01.2003 00:00:00 | 07.02.2003 00:00:00 | 02.02.2003 00:00:00 | Shipped | MMM | 121 | |
| 4 | 31.01.2003 00:00:00 | 09.02.2003 00:00:00 | 19.02.2003 00:00:00 | Shipped | Hi | 141 | |
| 5 | 11.02.2003 00:00:00 | 21.02.2003 00:00:00 | 12.02.2003 00:00:00 | Shipped | Item 1 | 145 | |
| 6 | 17.02.2003 00:00:00 | 24.02.2003 00:00:00 | 21.02.2003 00:00:00 | Shipped | Great Item | 278 | |
| 7 | 24.02.2003 00:00:00 | 03.03.2003 00:00:00 | 26.02.2003 00:00:00 | Shipped | Difficult to negotiate with customer. We need | 131 | |
| 8 | 03.03.2003 00:00:00 | 12.03.2003 00:00:00 | 08.03.2003 00:00:00 | Shipped | 385 | ||
| 9 | 10.03.2003 00:00:00 | 19.03.2003 00:00:00 | 11.03.2003 00:00:00 | Shipped | Customer requested that FedEx Ground is used for | 486 | |
| 10 | 18.03.2003 00:00:00 | 24.03.2003 00:00:00 | 20.03.2003 00:00:00 | Shipped | 187 |
Payments
| # | Customernumber | Checknumber | Paymentdate | Amount | Test1 | |
|---|---|---|---|---|---|---|
| 1 | 1 | BO86400 | 24.12.2020 00:00:00 | 123457 | ||
| 2 | 10364 | OM3149 | 16.07.2020 00:00:00 | 605002 | ||
| 3 | 103600 | OM31491 | 23.07.2020 00:00:00 | 605000 | ||
| 4 | 11310 | HQ5502 | 20.12.2001 00:00:00 | 14190 | ||
| 5 | 11221 | HQ55023 | 29.06.1995 00:00:00 | 99 | ||
| 6 | 112 | HQ55022 | 30.07.2020 00:00:00 | 99 | ||
| 7 | 113 | GG31455 | 16.05.2003 00:00:00 | 45870 | ||
| 8 | 114 | MA76552 | 15.12.2004 00:00:00 | 82261 | ||
| 9 | 114 | NP60385 | 31.05.2003 00:00:00 | 7565 | ||
| 10 | 114 | NR27552 | 10.03.2004 00:00:00 | 44894 |