$pdocrud = new PDOCrud(); $pdocrud->formStaticFields("personalinfo", "html", ""); $pdocrud->formStaticFields("personalinfo1", "html", "PDOCrud Job application Form
Please Fill in the form below
"); $pdocrud->fieldDisplayOrder(array("personalinfo", "personalinfo1")); $pdocrud->formFields(array("personalinfo", "personalinfo1", "first_name", "last_name", "email", "phone", "gender", "address", "city", "state", "country", "education", "current_status", "applying_for_position", "resume", "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("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("education", "select"); //change education to select dropdown $pdocrud->fieldDataBinding("education", array("B.A.", "B.E.", "B.Ed.", "M.C.A.", "M.B.A."), "", "", "array"); //add data using array in select dropdown $pdocrud->fieldTypes("current_status", "radio"); //change education to select dropdown $pdocrud->fieldDataBinding("current_status", array("Employed", "Unemployed", "Self-Employed", "Student"), "", "", "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->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->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("job_application")->render("insertform");