CKEditor and custom Bootstrap 4.5 theme
CKEditor loading and custom field types
HIDE CODE
<?php Xcrud_config::$editor_url = dirname($_SERVER["SCRIPT_NAME"]).'/../editors/ckeditor/ckeditor.js'; // can be set in config $xcrud = Xcrud::get_instance(); $xcrud->table('orders'); $xcrud->change_type('status','select','','On Hold,In Process,Resolved,Shipped,Disputed,Cancelled'); $xcrud->change_type('orderDate','none'); echo $xcrud->render(); ?>
Orders
# | Orderdate | Requireddate | Shippeddate | Status | Comments | Customernumber | |
---|---|---|---|---|---|---|---|
1 | 2003-05-28 00:00:00 | 07.06.2003 00:00:00 | 02.06.2003 00:00:00 | Shipped | 458 | View Edit Remove | |
2 | 2003-06-03 00:00:00 | 09.06.2003 00:00:00 | 06.06.2003 00:00:00 | Not Shipped | Customer requested special shippment. The | 151 | View Edit Remove |
3 | 2003-06-06 00:00:00 | 12.06.2003 00:00:00 | 11.06.2003 00:00:00 | Shipped | 141 | View Edit Remove | |
4 | 2003-06-12 00:00:00 | 18.06.2003 00:00:00 | 14.06.2003 00:00:00 | Shipped | 324 | View Edit Remove | |
5 | 2003-06-16 00:00:00 | 24.06.2003 00:00:00 | 21.06.2003 00:00:00 | Shipped | 198 | View Edit Remove | |
6 | 2003-06-16 00:00:00 | 25.06.2003 00:00:00 | 21.06.2003 00:00:00 | Shipped | 447 | View Edit Remove | |
7 | 2003-06-25 00:00:00 | 01.07.2003 00:00:00 | 28.06.2003 00:00:00 | Shipped | 323 | View Edit Remove | |
8 | 2003-06-27 00:00:00 | 04.07.2003 00:00:00 | 03.07.2003 00:00:00 | Shipped | 141 | View Edit Remove | |
9 | 2003-07-01 00:00:00 | 10.07.2003 00:00:00 | 05.07.2003 00:00:00 | Shipped | 250 | View Edit Remove | |
10 | 2003-07-02 00:00:00 | 12.07.2003 00:00:00 | 03.07.2003 00:00:00 | Shipped | 124 | View Edit Remove |