}
echo " </select></td>\n";
echo "</tr>\n";
+
+ /* Notes. */
+ echo "<tr>\n";
+ echo " <td>Notes</td>\n";
+ echo " <td><textarea name=\"notes\">" . $contact->getNotes() . "</textarea></td>\n";
+ echo "</tr>\n";
}
function show_new_contact_form($city_id = null) {
$telephone1 = $_POST['telephone1'];
$telephone2 = $_POST['telephone2'];
$email = $_POST['email'];
+ $notes = $_POST['notes'];
$contact->setRole($role);
$contact->setForename($forename);
$contact->setTelephone1($telephone1);
$contact->setTelephone2($telephone2);
$contact->setEmail($email);
+ $contact->setNotes($notes);
$contact->setAddressId($address->getId());
try {
<column name="telephone1" type="varchar" size="32" required="true"/>
<column name="telephone2" type="varchar" size="32" required="true"/>
<column name="email" type="varchar" size="64" required="true"/>
+ <column name="notes" type="longvarchar" lazyLoad="true"/>
<foreign-key foreignTable="Address" phpName="Address" refPhpName="Contact">
<reference local="address_id" foreign="id"/>
</foreign-key>