$pdocrud = new PDOCrud();
$pdocrud->formStaticFields("personalinfo", "html", "");
$pdocrud->formStaticFields("personalinfo1", "html", "
");
$pdocrud->fieldDisplayOrder(array("personalinfo", "personalinfo1"));
$pdocrud->formFields(array("personalinfo", "personalinfo1", "room_Id", "booking_status", "first_name", "last_name", "email", "phone_number", "no_of_adult", "no_of_child", "from_date", "to_date", "booking_amount", "payment_method", "additional_info"));
$pdocrud->fieldAttributes("first_name", array("placeholder" => "First Name")); //add placeholder attribute
$pdocrud->fieldAttributes("last_name", array("placeholder" => "Last Name")); //add placeholder attribute
$pdocrud->fieldAttributes("email", array("placeholder" => "Email")); //add placeholder attribute
$pdocrud->fieldAttributes("phone_number", array("placeholder" => "Contact Number")); //add placeholder attribute
$pdocrud->fieldAttributes("from_date", array("placeholder" => "Date of Arrival")); //add placeholder attribute
$pdocrud->fieldAttributes("to_date", array("placeholder" => "Check Out Date")); //add placeholder attribute
$pdocrud->fieldAttributes("no_of_adult", array("placeholder" => "Number of Adults")); //add placeholder attribute
$pdocrud->fieldAttributes("no_of_child", array("placeholder" => "Number of Children")); //add placeholder attribute
$pdocrud->fieldAttributes("room_Id", array("placeholder" => "Room Number")); //add placeholder attribute
$pdocrud->fieldAttributes("booking_status", array("placeholder" => "Booking Status")); //add placeholder attribute
$pdocrud->fieldAttributes("booking_amount", array("placeholder" => "Booking Amount")); //add placeholder attribute
$pdocrud->fieldTypes("payment_method", "select"); //change education to select dropdown
$pdocrud->fieldDataBinding("payment_method", array("Cash", "Debit Card", "Credit Card"), "", "", "array"); //add data using array in select dropdown
$pdocrud->fieldHideLable("first_name"); // Hide label
$pdocrud->fieldHideLable("last_name"); // Hide label
$pdocrud->fieldHideLable("email"); // Hide label
$pdocrud->fieldHideLable("phone_number"); // Hide label
$pdocrud->fieldHideLable("from_date"); // Hide label
$pdocrud->fieldHideLable("to_date"); // Hide label
$pdocrud->fieldHideLable("no_of_adult"); // Hide label
$pdocrud->fieldHideLable("no_of_child"); // Hide label
$pdocrud->fieldHideLable("room_Id"); // Hide label
$pdocrud->fieldHideLable("booking_status"); // Hide label
$pdocrud->fieldHideLable("booking_amount"); // Hide label
//$pdocrud->fieldHideLable("payment_method"); // Hide label
$pdocrud->fieldGroups("name", array("first_name", "last_name"));
$pdocrud->fieldGroups("contact", array("email", "phone_number"));
$pdocrud->fieldGroups("date1", array("from_date", "to_date"));
$pdocrud->fieldGroups("number_of", array("no_of_adult", "no_of_child"));
// $pdocrud->fieldGroups("booking", array("room_Id", "booking_status"));
$pdocrud->fieldGroups("booking1", array("booking_amount", "booking_status"));
$pdocrud->buttonHide("cancel"); // Hide button
$pdocrud->setLangData("save", "SUBMIT");
$pdocrud->fieldCssClass("first_name", array("form-first-name")); // add class
$pdocrud->fieldCssClass("last_name", array("form-first-name")); // add class
$pdocrud->fieldCssClass("email", array("form-first-name")); // add class
$pdocrud->enqueueCss("font-awesome.min", "../assets/css/font-awesome/css/font-awesome.min.css");
// $pdocrud->enqueueCss("form-elements", "../assets/css/form-elements.css");
$pdocrud->enqueueCss("signup", "../assets/css/signup-form.css");
$pdocrud->enqueueCss("style", "../assets/css/style.css");
echo $pdocrud->dbTable("bookroom")->render("insertform");