Date - Flatpickr 1.7.26

Manage date using the comprehensive Flat Pickr

HIDE CODE
<?php
	$xcrud = Xcrud::get_instance();	
	$xcrud->table("orders");

    $xcrud->fields("orderDate,status,requiredDate,shippedDate,comments");

    $xcrud->change_type("status","select","",array("Not Shipped"=>"Not Shipped","Shipped"=>"Shipped","Completed"=>"Completed"));

    $xcrud->change_type("orderDate","flatpickr","","{enableTime:false,dateFormat:Y-m-d H:i:s,locale:it,altFormat:d-m-Y,altInput: true}");//"{enableTime:true,dateFormat:Y-m-d H:i:s,locale:it,altFormat:d-m-Y H:i:s,altInput: true}
    $xcrud->change_type("requiredDate","flatpickr","",'{enableTime:false,dateFormat:Y-m-d H:i,locale:it,altFormat:d-m-Y,altInput: true}');
    $xcrud->change_type("shippedDate","flatpickr","",'{enableTime:true,dateFormat:Y-m-d H:i,locale:it,altFormat:d-m-Y,altInput: true}');
   
    echo $xcrud->render();

?>

Orders

#OrderdateRequireddateShippeddateStatusActionCommentsCustomernumber
Actions
12024-11-21 00:00:002024-11-22 00:00:00Shipped0129 View Edit Remove
22003-03-24 00:00:002003-04-03 00:00:002003-03-29 00:00:00Shipped0Customer requested that ad materials (such as…144 View Edit Remove
32003-03-26 00:00:002003-04-02 00:00:002003-03-27 00:00:00Shipped0124 View Edit Remove
42003-04-04 00:00:002003-04-12 00:00:002003-04-07 00:00:00Shipped0424 View Edit Remove
52003-04-11 00:00:002003-04-19 00:00:002003-04-13 00:00:00Shipped0381 View Edit Remove
62003-04-16 00:00:002003-04-24 00:00:002003-04-17 00:00:00Shipped0148 View Edit Remove
72003-04-21 00:00:002003-04-29 00:00:002003-04-26 00:00:00Shipped0Customer has worked with some of our vendors in…216 View Edit Remove
82003-04-28 00:00:002003-05-05 00:00:002003-05-02 00:00:00Shipped0382 View Edit Remove
92003-04-29 00:00:002003-05-08 00:00:002003-05-01 00:00:00Shipped0114 View Edit Remove
102003-05-07 00:00:002003-05-13 00:00:002003-05-13 00:00:00Shipped0353 View Edit Remove
Search