(405) 354-0426
 
   
 
Home / 
 
 

addField(new TextField("borrower_full_name", "Full Name", FORM_FIELD_REQUIRED, 50, 4, 25)); $ffForm->addField(new TaxIdField("borrower_ss_number", "Social Security #", FORM_FIELD_REQUIRED)); $ffForm->addField(new TextField("borrower_date_of_birth", "Date of Birth", FORM_FIELD_REQUIRED, 10, 4, 25)); $ffForm->addField(new TextField("coborrowers_full_name", "Co-Borrowers Full Name", FORM_FIELD_NOT_REQUIRED, 50, 1, 25)); $ffForm->addField(new TaxIdField("coborrowers_ss_number", "Co-Borrowers Social Security", FORM_FIELD_NOT_REQUIRED)); $ffForm->addField(new TextField("coborrowers_date_of_birth", "Co-Borrowers Date of Birth", FORM_FIELD_NOT_REQUIRED, 10, 4, 25)); $ffForm->addField(new StreetAddressField("current_address", "Current Address", FORM_FIELD_REQUIRED)); $ffForm->addField(new TextField("how_long_at_current_address", "How long at this address?", FORM_FIELD_REQUIRED, 50, 1, 25)); $ffForm->addField(new CityField("current_city", "City", FORM_FIELD_REQUIRED)); $ffForm->addField(new StateField("current_state", "State", FORM_FIELD_REQUIRED, "[Select One]")); $ffForm->addField(new ZipCodeField("current2_zip", "Zip", FORM_FIELD_REQUIRED)); $ffForm->addField(new DropDownField("rent_or_own", "Rent or own?", FORM_FIELD_REQUIRED, array("Rent","Own"), array("Rent","Own"), "[Select One]", null)); $ffForm->addField(new DollarField("current_payment", "Current Payment", FORM_FIELD_REQUIRED, 50, 1, 25, 1000000, 1)); $ffForm->addField(new DescriptionField("less_than_2_years_notice", "IF LESS THAN 2 YEARS GIVE PREVIOUS ADDRESS.")); $ffForm->addField(new StreetAddressField("previous_address", "Previous Address", FORM_FIELD_NOT_REQUIRED)); $ffForm->addField(new CityField("previous_city", "City", FORM_FIELD_NOT_REQUIRED)); $ffForm->addField(new StateField("previous_state", "State", FORM_FIELD_NOT_REQUIRED, "[Select One]")); $ffForm->addField(new ZipCodeField("previous_zip", "Zip", FORM_FIELD_NOT_REQUIRED)); $ffForm->addField(new HomePhoneNumberField("daytime_phone", "Daytime Phone", FORM_FIELD_REQUIRED)); $ffForm->addField(new HomePhoneNumberField("evening_phone", "Evening Phone", FORM_FIELD_NOT_REQUIRED)); $ffForm->addField(new HomePhoneNumberField("other_phone", "Other Phone", FORM_FIELD_NOT_REQUIRED)); $ffForm->addField(new EmailAddrField("borrower_email_adress", "Borrower Email Address", FORM_FIELD_NOT_REQUIRED)); $ffForm->addField(new TextField("borrowers_employer", "Borrowers Employer", FORM_FIELD_REQUIRED, 50, 1, 25)); $ffForm->addField(new TextField("borrower_salery", "Salary", FORM_FIELD_REQUIRED, 50, 1, 25)); $ffForm->addField(new TextField("borrower_years_on_job", "Years on Job", FORM_FIELD_REQUIRED, 50, 1, 25)); $ffForm->addField(new DescriptionField("less_than_2_years_employer", "IF LESS THAN 2 YEARS LIST PREVIOUS EMPLOYER.")); $ffForm->addField(new TextField("previous_employer", "Borrower Previous Employer", FORM_FIELD_NOT_REQUIRED, 50, 1, 25)); $ffForm->addField(new TextField("previous_employer_years_on_job", "Years on Job", FORM_FIELD_NOT_REQUIRED, 50, 1, 25)); $ffForm->addField(new HomePhoneNumberField("previous_employer_phone", "Phone", FORM_FIELD_NOT_REQUIRED)); $ffForm->addField(new TextField("coborrower_employer", "Co-Borrowers Employer", FORM_FIELD_NOT_REQUIRED, 50, 1, 25)); $ffForm->addField(new TextField("coborrower_salery", "Co-Borrower Salary", FORM_FIELD_NOT_REQUIRED, 50, 1, 25)); $ffForm->addField(new TextField("coborrwe_years_on_job", "Years on Job", FORM_FIELD_NOT_REQUIRED, 50, 1, 25)); $ffForm->addField(new DescriptionField("if_less_than_2_years_coborrow", "IF LESS THAN 2 YEARS LIST CO-BORROWERS PREVIOUS EMPLOYER")); $ffForm->addField(new TextField("coborrwe_previous_employer_2", "Co-Borrower Previous Employer", FORM_FIELD_NOT_REQUIRED, 50, 1, 25)); $ffForm->addField(new TextField("co_previous_empl_2years", "Years on Job", FORM_FIELD_NOT_REQUIRED, 50, 1, 25)); $ffForm->addField(new HomePhoneNumberField("co_previous_empl_phone", "Phone", FORM_FIELD_NOT_REQUIRED)); $ffForm->addField(new PersonNameField("realtor", "Realtor", FORM_FIELD_NOT_REQUIRED)); $ffForm->addField(new TextField("realtor_company", "Realty Company", FORM_FIELD_NOT_REQUIRED, 50, 1, 25)); $ffForm->addField(new HomePhoneNumberField("realty_phone", "Realty Phone", FORM_FIELD_NOT_REQUIRED)); $ffForm->addField(new TimestampField("Timestamp")); $ffForm->addField(new SubmitField("ff_submit", "Submit")); $ffForm->addField(new SubmitField("ff_clear", "Clear")); $ffForm->addField(new SubmitField("ff_cancel", "Cancel")); // ---------- FORM STRUCTURE - END ---------- // ---------- FORM ACTIONS - START ---------- class SubmitButtonListener extends FfButtonListener { function onClick(&$ffForm) { if ($ffForm->checkValues()) { // CONFIRMATION OPERATION: $ffForm->setEditable(false); $ffForm->setEditableFields(array("ff_back", "ff_confirm"), true); $ffForm->setHiddenFields(array("ff_back", "ff_confirm"), false); $GLOBALS["action"] = FF_CONFIRM; } } } class ConfirmButtonListener extends FfButtonListener { function onClick(&$ffForm) { //echo "CONFIRM
"; if ($ffForm->checkValues()) { // SUBMIT OPERATION: $GLOBALS["action"] = FF_DONE; // Send an email? if (FF_SEND_FORM_EMAIL1) { $formEmail1To = FF_FORM_EMAIL1_TO; // Add the to addresses which were entered by the user $formEmail1ToFields = split(",", FF_FORM_EMAIL1_TO_FIELDS); foreach($formEmail1ToFields as $fieldName) { if (!empty($fieldName)) $formEmail1To .= "," . $ffForm->getValue($fieldName); } // Was the address specified or are we loading from a field name? $formEmail1From = FF_FORM_EMAIL1_FROM; if (!FormField::isBlank(FF_FORM_EMAIL1_FROM_FIELD)) { $formEmail1From = $ffForm->getValue(FF_FORM_EMAIL1_FROM_FIELD); } $formEmail1Cc = null; $formEmail1Bcc = null; $formEmail1Subject = FF_FORM_EMAIL1_SUBJECT; $formEmail1MsgHeader = FF_FORM_EMAIL1_MESSAGE_HEADER; // The text that preceeds the field values $formEmail1MsgFooter = FF_FORM_EMAIL1_MESSAGE_FOOTER; // The text that follows the field values $formEmail1CssFile = null; // If you don't like the defaulted CSS styles, you can include another style sheet. $formEmail1UseHtml = FF_FORM_EMAIL1_USE_HTML; // Use false for text emails $formEmail1SendFormData = FF_FORM_EMAIL1_SEND_FORM_DATA; // Use false to not send form data $formEmail1SendFormUploads = true; // Use false to not attach files uploaded from the form if (!$formEmail1UseHtml) { // Convert the line of text to multiple lines? $formEmail1MsgHeader = str_replace("
", "\n", $formEmail1MsgHeader); $formEmail1MsgFooter = str_replace("
", "\n", $formEmail1MsgFooter); } // You can include extra attachments by populating an array as follows. // Note: All UploadFields are automatically attached to the email. $formEmail1Attachments = null; //$formEmail1Attachments[0] = array(dirname(__FILE__) . "/../calendar.gif", "calendar.gif"); $ffForm->email($formEmail1To, $formEmail1Subject, $formEmail1From, $formEmail1Cc, $formEmail1Bcc, $formEmail1MsgHeader, $formEmail1MsgFooter, $formEmail1Attachments, $formEmail1UseHtml, $formEmail1CssFile, $formEmail1SendFormData, $formEmail1SendFormUploads); } // Send a second email? if (FF_SEND_FORM_EMAIL2) { $formEmail2To = FF_FORM_EMAIL2_TO; // Add the to addresses which were entered by the user $formEmail2ToFields = split(",", FF_FORM_EMAIL2_TO_FIELDS); foreach($formEmail2ToFields as $fieldName) { if (!empty($fieldName)) $formEmail2To .= "," . $ffForm->getValue($fieldName); } $formEmail2From = FF_FORM_EMAIL2_FROM; if (!FormField::isBlank(FF_FORM_EMAIL2_FROM_FIELD)) { $formEmail2From = $ffForm->getValue(FF_FORM_EMAIL2_FROM_FIELD); } $formEmail2Cc = null; $formEmail2Bcc = null; $formEmail2Subject = FF_FORM_EMAIL2_SUBJECT; $formEmail2MsgHeader = FF_FORM_EMAIL2_MESSAGE_HEADER; // The text that preceeds the field values $formEmail2MsgFooter = FF_FORM_EMAIL2_MESSAGE_FOOTER; // The text that follows the field values $formEmail2CssFile = null; // If you don't like the defaulted CSS styles, you can include another style sheet. $formEmail2UseHtml = FF_FORM_EMAIL2_USE_HTML; // Use false for text emails $formEmail2SendFormData = FF_FORM_EMAIL2_SEND_FORM_DATA; // Use false to not send form data $formEmail2SendFormUploads = true; // Use false to not attach files uploaded from the form if (!$formEmail2UseHtml) { // Convert the line of text to multiple lines? $formEmail2MsgHeader = str_replace("
", "\n", $formEmail2MsgHeader); $formEmail2MsgFooter = str_replace("
", "\n", $formEmail2MsgFooter); } // You can include extra attachments by populating an array as follows. // Note: All UploadFields are automatically attached to the email. $formEmail2Attachments = null; //$formEmail2Attachments[0] = array(dirname(__FILE__) . "/../calendar.gif", "calendar.gif"); $ffForm->email($formEmail2To, $formEmail2Subject, $formEmail2From, $formEmail2Cc, $formEmail2Bcc, $formEmail2MsgHeader, $formEmail2MsgFooter, $formEmail2Attachments, $formEmail2UseHtml, $formEmail2CssFile, $formEmail2SendFormData, $formEmail2SendFormUploads); } if (FF_INSERT_INTO_DB) { $ffForm->addField(new DateTimeField("ff_inserted_on", "Inserted On", FORM_FIELD_REQUIRED, null)); $ffForm->formFields["ff_inserted_on"]->getCurrentDateTime(); $ffForm->insertValuesIntoDb(FF_FORM_NAME); } if (!FF_DISPLAY_THANK_YOU_PAGE) { header("Location: " . $GLOBALS["FF_DONE_URL"]); } } } } if ($ffForm->fieldExists("ff_submit")) { // Does the submit button submit the data or confirm the data? if (FF_DISPLAY_CONFIRMATION) $ffForm->formFields["ff_submit"]->addButtonListener(new SubmitButtonListener()); else $ffForm->formFields["ff_submit"]->addButtonListener(new ConfirmButtonListener()); } if ($ffForm->fieldExists("ff_clear")) { $ffForm->formFields["ff_clear"]->addButtonListener(new FfClearButtonListener()); } class CancelButtonListener extends FfButtonListener { function onClick(&$ffForm) { // CANCEL OPERATION: header("Location: " . $GLOBALS["FF_CANCEL_URL"]); } } if ($ffForm->fieldExists("ff_cancel")) { $ffForm->formFields["ff_cancel"]->addButtonListener(new CancelButtonListener()); } $ffForm->addField(new SubmitField("ff_back", "<" . FfLH::t("Back"))); $confirmButton = new SubmitField("ff_confirm", FfLH::t("Confirm") . ">"); $confirmButton->addButtonListener(new ConfirmButtonListener()); $ffForm->addField($confirmButton); class FormListener extends FfFormListener { function onNoClicks(&$ffForm) { // DEFAULT OPERATION: // If necessary, convert the default values to multiple lines if (sizeof($GLOBALS["FF_DEFAULTS"]) > 0) { foreach ($GLOBALS["FF_DEFAULTS"] as $i=>$globalValue) { $GLOBALS["FF_DEFAULTS"][$i] = str_replace("
", "\n", $globalValue); } } $ffForm->loadDbValues($GLOBALS["FF_DEFAULTS"]); // Enter other default values here. Example: //$ffForm->setValue("name", "John"); } } $ffForm->addFormListener(new FormListener()); define("FF_ENTER", 1); define("FF_CONFIRM", 2); define("FF_DONE", 3); $GLOBALS["action"] = FF_ENTER; $ffForm->setHiddenFields(array("ff_back", "ff_confirm"), true); $ffForm->process(); // ---------- FORM ACTIONS - END ---------- /* END - SECTION 1 */ ?> ">
__toString(); ?>


* -
getIfError(); ?> getHiddenFieldTag("ff_form_refresh") ?>getHiddenFieldTag("ff_web_server_timestamp") ?>
getLabelTag("borrower_full_name") ?>
getFieldTag("borrower_full_name") ?>
getLabelTag("borrower_ss_number") ?>
getFieldTag("borrower_ss_number") ?>
getLabelTag("borrower_date_of_birth") ?>
getFieldTag("borrower_date_of_birth") ?>
getLabelTag("coborrowers_full_name") ?>
getFieldTag("coborrowers_full_name") ?>
getLabelTag("coborrowers_ss_number") ?>
getFieldTag("coborrowers_ss_number") ?>
getLabelTag("coborrowers_date_of_birth") ?>
getFieldTag("coborrowers_date_of_birth") ?>
getLabelTag("current_address") ?>
getFieldTag("current_address") ?>
getLabelTag("how_long_at_current_address") ?>
getFieldTag("how_long_at_current_address") ?>
getLabelTag("current_city") ?>
getFieldTag("current_city") ?>
getLabelTag("current_state") ?>
getFieldTag("current_state") ?>
getLabelTag("current2_zip") ?>
getFieldTag("current2_zip") ?>
getLabelTag("rent_or_own") ?>
getFieldTag("rent_or_own") ?>
getLabelTag("current_payment") ?>
getFieldTag("current_payment") ?>
getFieldTag("less_than_2_years_notice") ?>
getLabelTag("previous_address") ?>
getFieldTag("previous_address") ?>
getLabelTag("previous_city") ?>
getFieldTag("previous_city") ?>
getLabelTag("previous_state") ?>
getFieldTag("previous_state") ?>
getLabelTag("previous_zip") ?>
getFieldTag("previous_zip") ?>
getLabelTag("daytime_phone") ?>
getFieldTag("daytime_phone") ?>
getLabelTag("evening_phone") ?>
getFieldTag("evening_phone") ?>
getLabelTag("other_phone") ?>
getFieldTag("other_phone") ?>
getLabelTag("borrower_email_adress") ?>
getFieldTag("borrower_email_adress") ?>
getLabelTag("borrowers_employer") ?>
getFieldTag("borrowers_employer") ?>
getLabelTag("borrower_salery") ?>
getFieldTag("borrower_salery") ?>
getLabelTag("borrower_years_on_job") ?>
getFieldTag("borrower_years_on_job") ?>
getFieldTag("less_than_2_years_employer") ?>
getLabelTag("previous_employer") ?>
getFieldTag("previous_employer") ?>
getLabelTag("previous_employer_years_on_job") ?>
getFieldTag("previous_employer_years_on_job") ?>
getLabelTag("previous_employer_phone") ?>
getFieldTag("previous_employer_phone") ?>
getLabelTag("coborrower_employer") ?>
getFieldTag("coborrower_employer") ?>
getLabelTag("coborrower_salery") ?>
getFieldTag("coborrower_salery") ?>
getLabelTag("coborrwe_years_on_job") ?>
getFieldTag("coborrwe_years_on_job") ?>
getFieldTag("if_less_than_2_years_coborrow") ?>
getLabelTag("coborrwe_previous_employer_2") ?>
getFieldTag("coborrwe_previous_employer_2") ?>
getLabelTag("co_previous_empl_2years") ?>
getFieldTag("co_previous_empl_2years") ?>
getLabelTag("co_previous_empl_phone") ?>
getFieldTag("co_previous_empl_phone") ?>
getLabelTag("realtor") ?>
getFieldTag("realtor") ?>
getLabelTag("realtor_company") ?>
getFieldTag("realtor_company") ?>
getLabelTag("realty_phone") ?>
getFieldTag("realty_phone") ?>

getFieldTag("ff_submit") ?> getFieldTag("ff_clear") ?> getFieldTag("ff_cancel") ?>
Valid XHTML 1.0! Valid CSS!


 
   
 
 
 
  Apply Online| Mortgage Rates| Closing Costs| Pre-Qualification| Rate Watch| Tools| Contact Us| About Us| Site Map

© 2007 First American Mortgage | Site by: Reagormedia.com