Changeset 479 for trunk/docs


Ignore:
Timestamp:
May 3, 2014 11:09:03 PM (10 years ago)
Author:
anonymous
Message:

Convert tabs to spaces, and lineendings to LF in all files.

Location:
trunk/docs/examples/contact_form
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • trunk/docs/examples/contact_form/contact.php

    r468 r479  
    5252    // Validate submitted data.
    5353    validateInput();
    54     if ($fv->anyErrors()) {
     54    if ($fv->anyErrors()) {
    5555        // Re-populate form values with the user data so they can make corrections.
    56         $frm = resetForm(getFormData());
    57     } else {
     56        $frm = resetForm(getFormData());
     57    } else {
    5858        // Setup email object.
    5959        $email = new Email(array(
     
    7474        $frm = resetForm();
    7575        $app->raiseMsg(_("<strong>Thank You!</strong> Your message has been sent."), MSG_SUCCESS, __FILE__, __LINE__);
    76     }
     76    }
    7777} else {
    7878    // Reset form values to display a blank form.
     
    9696function resetForm($new_values = array())
    9797{
    98     $default = array(
    99         'name' => '',
    100         'email' => '',
    101         'message' => '',
    102     );
    103     return array_merge($default, $new_values);
     98    $default = array(
     99        'name' => '',
     100        'email' => '',
     101        'message' => '',
     102    );
     103    return array_merge($default, $new_values);
    104104}
    105105
  • trunk/docs/examples/contact_form/header.ihtml

    r413 r479  
    11<<?php echo '?xml version="1.0" encoding="' . $app->getParam('character_set') . '"?'; ?>>
    22<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN"
    3     "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
     3    "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
    44<html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en" lang="en">
    55<head>
Note: See TracChangeset for help on using the changeset viewer.