$pdocrud = new PDOCrud();
$pdocrud->formStaticFields("personalinfo", "html", "");
$pdocrud->formStaticFields("personalinfo1", "html", "
");
$pdocrud->fieldDisplayOrder(array("personalinfo", "personalinfo1"));
$pdocrud->formFields(array("personalinfo", "personalinfo1", "first_name", "last_name", "email", "phone", "service_satisfaction", "comments"));
$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", array("placeholder" => "Contact Number")); //add placeholder attribute
$pdocrud->fieldAttributes("comments", array("placeholder" => "Message")); //add placeholder attribute
$pdocrud->fieldTypes("country", "select"); //change type to select
$pdocrud->fieldDataBinding("country", "country", "country_id", "country_name", "db"); //add data using another table name country
$pdocrud->fieldTypes("service_satisfaction", "radio"); //change donation amount to radio button
$pdocrud->fieldDataBinding("service_satisfaction", array("Excellent", "Very Good", "Good", "Average", "Poor"), "", "", "array"); //add data for radio button
//
// $pdocrud->fieldTypes("payment_mode", "select"); //change type to select
// $pdocrud->fieldDataBinding("country", "country", "country_id", "country_name", "db"); //add data using another table name country
$pdocrud->fieldHideLable("first_name"); // Hide label
$pdocrud->fieldHideLable("last_name"); // Hide label
$pdocrud->fieldHideLable("email"); // Hide label
$pdocrud->fieldHideLable("phone"); // Hide label
$pdocrud->fieldHideLable("comments"); // Hide label
$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("feedback")->render("insertform");