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-06-27 00:00:00 | 04.07.2003 00:00:00 | 03.07.2003 00:00:00 | Shipped | NULL | 141 | View Edit Remove |
2 | 2003-07-01 00:00:00 | 10.07.2003 00:00:00 | 05.07.2003 00:00:00 | Shipped | 250 | View Edit Remove | |
3 | 2003-07-02 00:00:00 | 12.07.2003 00:00:00 | 03.07.2003 00:00:00 | Shipped | NULL | 124 | View Edit Remove |
4 | 2003-07-04 00:00:00 | 14.07.2003 00:00:00 | 06.07.2003 00:00:00 | Shipped | Customer is interested in buying more Ferrari | 242 | View Edit Remove |
5 | 2003-07-10 00:00:00 | 20.07.2003 00:00:00 | 15.05.2024 00:00:00 | Shipped | PROVA | 353 | View Edit Remove |
6 | 2003-07-07 00:00:00 | 16.07.2003 00:00:00 | 13.07.2003 00:00:00 | Shipped | 496 | View Edit Remove | |
7 | 2003-07-16 00:00:00 | 23.07.2003 00:00:00 | 21.07.2003 00:00:00 | Shipped | 282 | View Edit Remove | |
8 | 2003-07-24 00:00:00 | 02.08.2003 00:00:00 | 30.07.2003 00:00:00 | Shipped | 161 | View Edit Remove | |
9 | 2003-08-01 00:00:00 | 09.08.2003 00:00:00 | 04.08.2003 00:00:00 | Shipped | 334 | View Edit Remove | |
10 | 2003-08-08 00:00:00 | 16.08.2003 00:00:00 | 13.08.2003 00:00:00 | Shipped | 124 | View Edit Remove |