diff --git a/site/views/contacts/view.ctp b/site/views/contacts/view.ctp index 3a4dc88..6ceacdf 100644 --- a/site/views/contacts/view.ctp +++ b/site/views/contacts/view.ctp @@ -74,26 +74,6 @@ echo $this->element('table', 'column_class' => $headers)); -/********************************************************************** - * Emails - */ -$headers = array('Email', 'Preference', 'Comment'); -$rows = array(); -foreach($contact['ContactEmail'] AS $email) { - $rows[] = array($email['email'], - $email['ContactsMethod']['preference'] . " / " . - $email['ContactsMethod']['type'], - $email['comment']); -} - -echo $this->element('table', - array('class' => 'item email list', - 'caption' => 'Email', - 'headers' => $headers, - 'rows' => $rows, - 'column_class' => $headers)); - - /********************************************************************** * Addresses */ @@ -118,6 +98,26 @@ echo $this->element('table', 'column_class' => $headers)); +/********************************************************************** + * Emails + */ +$headers = array('Email', 'Preference', 'Comment'); +$rows = array(); +foreach($contact['ContactEmail'] AS $email) { + $rows[] = array($email['email'], + $email['ContactsMethod']['preference'] . " / " . + $email['ContactsMethod']['type'], + $email['comment']); +} + +echo $this->element('table', + array('class' => 'item email list', + 'caption' => 'Email', + 'headers' => $headers, + 'rows' => $rows, + 'column_class' => $headers)); + + /********************************************************************** * Customers */