$pdocrud = new PDOCrud();
$pdocrud->formStaticFields("personalinfo", "html", "");
$pdocrud->formStaticFields("personalinfo1", "html", "
");
$pdocrud->fieldDisplayOrder(array("personalinfo", "personalinfo1"));
$pdocrud->formFields(array("personalinfo", "personalinfo1", "type", "city/airport_from", "city/airport_to", "depart_on", "return_on", "class", "adults", "children", "senior", "person"));
$pdocrud->fieldAttributes("city/airport_from", array("placeholder" => "From")); //add placeholder attribute
$pdocrud->fieldAttributes("city/airport_to", array("placeholder" => "To")); //add placeholder attribute
$pdocrud->fieldAttributes("email", array("placeholder" => "Email")); //add placeholder attribute
$pdocrud->fieldAttributes("phone", array("placeholder" => "Contact Number")); //add placeholder attribute
$pdocrud->fieldAttributes("zip/pin_code", array("placeholder" => "Zip/Pin Code")); //add placeholder attribute
$pdocrud->fieldAttributes("comments", array("placeholder" => "Message")); //add placeholder attribute
$pdocrud->fieldTypes("gender", "radio"); //change donation amount to radio button
$pdocrud->fieldDataBinding("gender", array("Male", "Female"), "", "", "array"); //add data for radio button
$pdocrud->fieldTypes("city", "select"); //change type to select
$pdocrud->fieldDataBinding("city", "city", "city_id", "city_name", "db"); //add data using another table name city
$pdocrud->fieldTypes("state", "select"); //change type to select
$pdocrud->fieldDataBinding("state", "state", "state_id", "state_name", "db"); //add data using another table name country
$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("class", "select"); //change education to select dropdown
$pdocrud->fieldDataBinding("class", array("Excursion", "Economy", "First Class", "Bussiness"), "", "", "array"); //add data using array in select dropdown
$pdocrud->fieldTypes("applying_for_position", "multiselect"); //change applying_for_position to multiselect dropdown
$pdocrud->fieldDataBinding("applying_for_position", array("Manager", "Hr", "Developer", "Tester"), "", "", "array"); //add data using array in multiselect
$pdocrud->fieldTypes("resume", "image"); //change type to image
//$pdocrud->formFields(array("first_name","resume"));
$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->fieldHideLable("zip/pin_code"); // Hide label
$pdocrud->buttonHide("cancel"); // Hide button
$pdocrud->setLangData("save", "SUBMIT");
$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("flight_booking")->render("insertform");