Exemplo n.º 1
0
        $account_number_value = $row['account_number'];
        $phone_number_value = $row['phone_number'];
        $email_value = $row['email'];
        $street_address_value = $row['street_address'];
        $comments_value = $row['comments'];
    }
} else {
    $display->displayTitle("{$lang->addCustomer}");
}
//creates a form object
$f1 = new form('process_form_customers.php', 'POST', 'customers', '450', $cfg_theme, $lang);
//creates form parts.
$f1->createInputField("<b>{$lang->firstName}:</b> ", 'text', 'first_name', "{$first_name_value}", '24', '150');
$f1->createInputField("<b>{$lang->lastName}:</b> ", 'text', 'last_name', "{$last_name_value}", '24', '150');
$f1->createInputField("{$lang->accountNumber}: ", 'text', 'account_number', "{$account_number_value}", '24', '150');
$f1->createInputField("<b>{$lang->phoneNumber}</b> ", 'text', 'phone_number', "{$phone_number_value}", '24', '150');
$f1->createInputField("{$lang->email}:", 'text', 'email', "{$email_value}", '24', '150');
$f1->createInputField("{$lang->streetAddress}:", 'text', 'street_address', "{$street_address_value}", '24', '150');
$f1->createInputField("{$lang->commentsOrOther}:", 'text', 'comments', "{$comments_value}", '40', '150');
//sends 2 hidden varibles needed for process_form_users.php.
echo "\t\t\n\t\t<input type='hidden' name='action' value='{$action}'>\n\t\t<input type='hidden' name='id' value='{$id}'>";
$f1->endForm();
$dbf->closeDBlink();
?>
</body>
</html>