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 | Action | Comments | Customernumber | |
---|---|---|---|---|---|---|---|---|
1 | 2003-10-11 00:00:00 | 17.10.2003 00:00:00 | 17.10.2003 00:00:00 | Shipped | 0 | 347 | View Edit Remove | |
2 | 2003-10-17 00:00:00 | 25.10.2003 00:00:00 | 20.10.2003 00:00:00 | Shipped | 0 | 227 | View Edit Remove | |
3 | 2003-10-18 00:00:00 | 26.10.2003 00:00:00 | 19.10.2003 00:00:00 | Shipped | 0 | 321 | View Edit Remove | |
4 | 2003-10-20 00:00:00 | 27.10.2003 00:00:00 | 24.10.2003 00:00:00 | Shipped | 0 | 424 | View Edit Remove | |
5 | 2003-10-21 00:00:00 | 30.10.2003 00:00:00 | 23.10.2003 00:00:00 | Resolved | 0 | This order was disputed, but resolved on | 452 | View Edit Remove |
6 | 2003-10-22 00:00:00 | 31.10.2003 00:00:00 | 26.12.2003 00:00:00 | Shipped | 0 | This order was on hold because customers's credit | 148 | View Edit Remove |
7 | 2003-10-21 00:00:00 | 30.10.2003 00:00:00 | 27.10.2003 00:00:00 | Shipped | 0 | 462 | View Edit Remove | |
8 | 2003-10-23 00:00:00 | 30.10.2003 00:00:00 | Cancelled | 0 | Customer called to cancel. The warehouse was | 448 | View Edit Remove | |
9 | 2003-11-04 00:00:00 | 12.11.2003 00:00:00 | 07.11.2003 00:00:00 | Shipped | 0 | 452 | View Edit Remove | |
10 | 2003-11-05 00:00:00 | 13.11.2003 00:00:00 | 07.11.2003 00:00:00 | Shipped | 0 | 233 | View Edit Remove |