Inline Editing (Multiple Instances) Bootstrap 4.5 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 | 10.01.2003 00:00:00 | 18.01.2003 00:00:00 | 14.01.2003 00:00:00 | Shipped | | 181 | |
2 | 29.01.2003 00:00:00 | 07.02.2003 00:00:00 | 02.02.2003 00:00:00 | Shipped | | 121 | |
3 | 31.01.2003 00:00:00 | 09.02.2003 00:00:00 | 01.02.2003 00:00:00 | Shipped | | 141 | |
4 | 11.02.2003 00:00:00 | 21.02.2003 00:00:00 | 12.02.2003 00:00:00 | Shipped | Item 1 | 145 | |
5 | 17.02.2003 00:00:00 | 02.05.2022 20:29:12 | 21.02.2003 00:00:00 | Shipped | Great Itemasd asdasdasd | 278 | |
6 | 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 | |
7 | 03.03.2003 00:00:00 | 12.03.2003 00:00:00 | 08.03.2003 00:00:00 | Shipped | | 385 | |
8 | 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 | |
9 | 18.03.2003 00:00:00 | 24.03.2003 00:00:00 | 20.03.2003 00:00:00 | Shipped | | 187 | |
10 | 25.03.2003 00:00:00 | 31.03.2003 00:00:00 | 30.03.2003 00:00:00 | Shipped | | 129 | |
Payments
Payments
# | Customernumber | Checknumber | Paymentdate | Amount | |
1 | 124 | HR86578 | 02.11.2004 00:00:00 | 55639.66 | |
2 | 128 | FA465482 | 18.10.2003 00:00:00 | 24101.81 | |
3 | 128 | FH668230 | 24.03.2004 00:00:00 | 33820.62 | |
4 | 128 | IP383901 | 18.11.2004 00:00:00 | 7466.32 | |
5 | 129 | DM826140 | 08.12.2004 00:00:00 | 26248 | |
6 | 129 | ID449593 | 11.12.2003 00:00:00 | 23923.93 | |
7 | 129 | PI42991 | 09.04.2003 00:00:00 | 16537.85 | |
8 | 131 | CL442705 | 12.03.2003 00:00:00 | 22292.62 | |
9 | 131 | MA724562 | 02.12.2004 00:00:00 | 50025.35 | |
10 | 131 | NB445135 | 11.09.2004 00:00:00 | 35321.97 | |