CKEditor and custom
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-18 00:00:00 | 26.10.2003 00:00:00 | 19.10.2003 00:00:00 | Shipped | 321 | View Edit Remove | |
| 2 | 2003-10-20 00:00:00 | 27.10.2003 00:00:00 | 24.10.2003 00:00:00 | Shipped | 424 | View Edit Remove | |
| 3 | 2003-10-21 00:00:00 | 30.10.2003 00:00:00 | 23.10.2003 00:00:00 | Shipped | Questo ordine รจ stato contestato, ma risolto | 452 | View Edit Remove |
| 4 | 2003-10-22 00:00:00 | 31.10.2003 00:00:00 | 26.12.2003 00:00:00 | Shipped | This order was on hold because customers's credit | 148 | View Edit Remove |
| 5 | 2003-10-21 00:00:00 | 30.10.2003 00:00:00 | 27.10.2003 00:00:00 | Shipped | 462 | View Edit Remove | |
| 6 | 2003-10-23 00:00:00 | 30.10.2003 00:00:00 | Cancelled | Customer called to cancel. The warehouse was | 448 | View Edit Remove | |
| 7 | 2003-10-28 00:00:00 | 03.11.2003 00:00:00 | 01.11.2003 00:00:00 | Shipped | 161 | View Edit Remove | |
| 8 | 2003-11-04 00:00:00 | 14.11.2003 00:00:00 | 09.11.2003 00:00:00 | Shipped | 276 | View Edit Remove | |
| 9 | 2003-11-04 00:00:00 | 12.11.2003 00:00:00 | 07.11.2003 00:00:00 | Shipped | 452 | View Edit Remove | |
| 10 | 2003-11-05 00:00:00 | 13.11.2003 00:00:00 | 07.11.2003 00:00:00 | Shipped | 233 | View Edit Remove |