Inline Editing (Multiple Instances) Bootstrap 4.5 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 | 28.05.2003 00:00:00 | 23.04.2003 22:00:00 | Shipped | Difficult to negotiate with customer. We need | 131 | View Edit Remove |
2 | 03.03.2003 00:00:00 | 12.03.2003 00:00:00 | 08.03.2003 00:00:00 | Shipped | 385 | View Edit Remove | |
3 | 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 | View Edit Remove |
4 | 18.03.2003 00:00:00 | 24.03.2003 00:00:00 | 20.03.2003 00:00:00 | Shipped | 187 | View Edit Remove | |
5 | 25.03.2003 00:00:00 | 31.03.2003 00:00:00 | 30.03.2003 00:00:00 | Shipped | 129 | View Edit Remove | |
6 | 24.03.2003 00:00:00 | 03.04.2003 00:00:00 | 29.03.2003 00:00:00 | Shipped | Customer requested that ad materials (such as | 144 | View Edit Remove |
7 | 26.03.2003 00:00:00 | 02.04.2003 00:00:00 | 27.03.2003 00:00:00 | Shipped | 124 | View Edit Remove | |
8 | 01.04.2003 00:00:00 | 07.04.2003 00:00:00 | 02.04.2003 00:00:00 | Shipped | 172 | View Edit Remove | |
9 | 04.04.2003 00:00:00 | 12.04.2003 00:00:00 | 07.04.2003 00:00:00 | Shipped | 424 | View Edit Remove | |
10 | 11.04.2003 00:00:00 | 19.04.2003 00:00:00 | 13.04.2003 00:00:00 | Shipped | 381 | View Edit Remove |
Payments
# | Customernumber | Checknumber | Paymentdate | Amount | |
---|---|---|---|---|---|
1 | 124 | AE215433 | 05.03.2005 00:00:00 | 0 | View Edit Remove |
2 | 124 | CQ287967 | 11.04.2003 00:00:00 | 11044.3 | View Edit Remove |
3 | 124 | ET64396 | 16.04.2005 00:00:00 | 83598.04 | View Edit Remove |
4 | 124 | HI366474 | 27.12.2004 00:00:00 | 47142.7 | View Edit Remove |
5 | 124 | HR86578 | 02.11.2004 00:00:00 | 55639.66 | View Edit Remove |
6 | 124 | KI131716 | 15.08.2003 00:00:00 | 111654.4 | View Edit Remove |
7 | 124 | LF217299 | 26.03.2004 00:00:00 | 43369.3 | View Edit Remove |
8 | 124 | NT141748 | 25.11.2003 00:00:00 | 45084.38 | View Edit Remove |
9 | 128 | DI925118 | 28.01.2003 00:00:00 | 10549.01 | View Edit Remove |
10 | 128 | FA465482 | 18.10.2003 00:00:00 | 24101.81 | View Edit Remove |