DEMO SITE v1.7.28

Form Buttons 1.7.25 Bootstrap 4.5 theme

Create buttons to be displayed on the form

HIDE CODE
<?php
    // Get an instance of the Xcrud class
	$xcrud = Xcrud::get_instance();	

    // Set the table to work with
	$xcrud->table("orders");

    // Define which columns to display in the table
    $xcrud->columns("orderDate,status,requiredDate,shippedDate,comments");

    // Define which fields are available for data entry or editing
    $xcrud->fields("orderDate,status,requiredDate,shippedDate,action");

    $xcrud->fields_arrange("orderDate,status,requiredDate,shippedDate","Info",true);
    $xcrud->fields_arrange("action","Action",true);

    // Change the input type of the 'status' field to a select dropdown and provide options
    $xcrud->change_type("status","select","",array("Not Shipped"=>"Not Shipped","Shipped"=>"Shipped","Completed"=>"Completed"));

    $xcrud->label("action","");
    $xcrud->change_type("action","button","",array("href"=>"#","after"=>"edit","task"=>"save","icon"=>"fa fa-file","title"=>"Save My Form"));
    $xcrud->set_attr("action",array("class"=>"btn btn-light xcrud-action","data-confirm"=>"Do you wish to save?"));

    $xcrud->hide_button("save_edit");
    $xcrud->hide_button("save_return");
    $xcrud->hide_button("save_new");

    // Render the xcrud instance to display the table and form
    echo $xcrud->render();	
?>

Orders

Add
#OrderdateStatusRequireddateShippeddateComments
Actions
127.06.2003 00:00:00Shipped04.07.2003 00:00:0003.07.2003 00:00:00NULL View Edit Remove
201.07.2003 00:00:00Shipped10.07.2003 00:00:0005.07.2003 00:00:00 View Edit Remove
302.07.2003 00:00:00Shipped12.07.2003 00:00:0003.07.2003 00:00:00NULL View Edit Remove
404.07.2003 00:00:00Shipped14.07.2003 00:00:0006.07.2003 00:00:00Customer is interested in buying more Ferrari… View Edit Remove
510.07.2003 00:00:00Shipped20.07.2003 00:00:0015.05.2024 00:00:00PROVA View Edit Remove
607.07.2003 00:00:00Shipped16.07.2003 00:00:0013.07.2003 00:00:00 View Edit Remove
716.07.2003 00:00:00Shipped23.07.2003 00:00:0021.07.2003 00:00:00 View Edit Remove
824.07.2003 00:00:00Shipped02.08.2003 00:00:0030.07.2003 00:00:00 View Edit Remove
901.08.2003 00:00:00Shipped09.08.2003 00:00:0004.08.2003 00:00:00 View Edit Remove
1008.08.2003 00:00:00Shipped16.08.2003 00:00:0013.08.2003 00:00:00 View Edit Remove
showing_records 1 to 10 of 332
Search
 
slot thailand
slot thailand slot gacor
slot gacor