CKEditor and custom Bootstrap 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-10-21 00:00:00 | 30.10.2003 00:00:00 | 27.10.2003 00:00:00 | Shipped | 462 | View Edit Remove | |
| 2 | 2003-10-23 00:00:00 | 30.10.2003 00:00:00 | Cancelled | Customer called to cancel. The warehouse was | 448 | View Edit Remove | |
| 3 | 2003-10-28 00:00:00 | 03.11.2003 00:00:00 | 01.11.2003 00:00:00 | Shipped | 161 | View Edit Remove | |
| 4 | 2003-11-04 00:00:00 | 14.11.2003 00:00:00 | 09.11.2003 00:00:00 | Shipped | 276 | View Edit Remove | |
| 5 | 2003-11-04 00:00:00 | 12.11.2003 00:00:00 | 07.11.2003 00:00:00 | Shipped | 452 | View Edit Remove | |
| 6 | 2003-11-05 00:00:00 | 13.11.2003 00:00:00 | 07.11.2003 00:00:00 | Shipped | 233 | View Edit Remove | |
| 7 | 2003-11-05 00:00:00 | 14.11.2003 00:00:00 | 11.11.2003 00:00:00 | Shipped | 175 | View Edit Remove | |
| 8 | 2003-11-05 00:00:00 | 15.11.2003 00:00:00 | 09.11.2003 00:00:00 | Shipped | Cautious optimism. We have happy customers here, | 278 | View Edit Remove |
| 9 | 2003-11-06 00:00:00 | 15.11.2003 00:00:00 | 10.11.2003 00:00:00 | Shipped | 333 | View Edit Remove | |
| 10 | 2003-11-06 00:00:00 | 14.11.2003 00:00:00 | 09.11.2003 00:00:00 | Shipped | 324 | View Edit Remove |