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-11-06 00:00:00 | 14.11.2003 00:00:00 | 15.11.2003 00:00:00 | Shipped | 0 | 324 | View Edit Remove | |
2 | 2003-11-06 00:00:00 | 15.11.2003 00:00:00 | 12.11.2003 00:00:00 | Shipped | 0 | 386 | View Edit Remove | |
3 | 2003-11-08 00:00:00 | 16.11.2003 00:00:00 | 10.11.2003 00:00:00 | Shipped | 0 | Custom shipping instructions sent to warehouse | 242 | View Edit Remove |
4 | 2003-11-12 00:00:00 | 19.11.2003 00:00:00 | 15.11.2003 00:00:00 | Shipped | 0 | 167 | View Edit Remove | |
5 | 2003-11-12 00:00:00 | 21.11.2003 00:00:00 | 18.11.2003 00:00:00 | Shipped | 0 | 124 | View Edit Remove | |
6 | 2003-11-13 00:00:00 | 22.11.2003 00:00:00 | 15.11.2003 00:00:00 | Shipped | 0 | We need to keep in close contact with their | 339 | View Edit Remove |
7 | 2003-11-14 00:00:00 | 22.11.2003 00:00:00 | 20.11.2003 00:00:00 | Shipped | 0 | 484 | View Edit Remove | |
8 | 2003-11-14 00:00:00 | 21.11.2003 00:00:00 | 20.11.2003 00:00:00 | Shipped | 0 | 320 | View Edit Remove | |
9 | 2003-11-14 00:00:00 | 20.11.2003 00:00:00 | 18.11.2003 00:00:00 | Shipped | 0 | 888 They want to reevaluate their terms agreement | 489 | View Edit Remove |
10 | 2003-11-15 00:00:00 | 24.11.2003 00:00:00 | 16.11.2003 00:00:00 | Shipped | 0 | 211 | View Edit Remove |