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
12003-11-06 00:00:002003-11-14 00:00:002003-11-15 00:00:00Shipped0324 View Edit Remove
22003-11-06 00:00:002003-11-15 00:00:002003-11-12 00:00:00Shipped0386 View Edit Remove
32003-11-07 00:00:002003-11-17 00:00:002003-11-12 00:00:00Shipped0344 View Edit Remove
42003-11-08 00:00:002003-11-16 00:00:002003-11-10 00:00:00Shipped0Custom shipping instructions sent to warehouse242 View Edit Remove
52003-11-11 00:00:002003-11-17 00:00:002003-11-13 00:00:000Customer cancelled due to urgent budgeting…496 View Edit Remove
62003-11-11 00:00:002003-11-19 00:00:002003-11-14 00:00:00Shipped0171 View Edit Remove
72003-11-12 00:00:002003-11-19 00:00:002003-11-15 00:00:00Shipped0167 View Edit Remove
82003-11-12 00:00:002003-11-21 00:00:002003-11-18 00:00:00Shipped0124 View Edit Remove
92003-11-13 00:00:002003-11-22 00:00:002003-11-15 00:00:00Shipped0We need to keep in close contact with their…339 View Edit Remove
102003-11-14 00:00:002003-11-22 00:00:002003-11-20 00:00:00Shipped0484 View Edit Remove
Search