$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", "address", "city", "state", "country", "donation_amount"));
$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("address", array("placeholder" => "Address")); //add placeholder attribute
$pdocrud->fieldAttributes("city", array("placeholder" => "City")); //add placeholder attribute
$pdocrud->fieldAttributes("state", array("placeholder" => "State")); //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("donation_amount", "radio");//change donation amount to radio button
$pdocrud->fieldDataBinding("donation_amount", array("10$","20$","25$","30$"), "", "","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("address"); // Hide label
$pdocrud->fieldHideLable("city"); // Hide label
$pdocrud->fieldHideLable("state"); // Hide label
$pdocrud->fieldHideLable("country"); // 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", "http://localhost/formdoid/demo/moreforms/form3/assets/font-awesome/css/font-awesome.min.css");
$pdocrud->enqueueCss("form-elements", "http://localhost/formdoid/demo/moreforms/form3/assets/css/form-elements.css");
$pdocrud->enqueueCss("style", "http://localhost/formdoid/demo/moreforms/form3/assets/css/style.css");
echo $pdocrud->dbTable("donation")->render("insertform");