while (list($undef, $row) = each($res)) {
$tr_bgcolor = '';
+ $email = AddressBook::full_address($row);
if ($line % 2) { $tr_bgcolor = $color[0]; }
echo html_tag( 'tr', '', '', $tr_bgcolor, 'nowrap' ) .
html_tag( 'td',
'<small><a href="javascript:to_address(' .
- "'" . $row['email'] . "');\">To</A> | " .
+ "'" . $email . "');\">To</A> | " .
'<a href="javascript:cc_address(' .
- "'" . $row['email'] . "');\">Cc</A> | " .
+ "'" . $email . "');\">Cc</A> | " .
'<a href="javascript:bcc_address(' .
- "'" . $row['email'] . "');\">Bcc</A></small>",
+ "'" . $email . "');\">Bcc</A></small>",
'center', '', 'valign="top" width="5%" nowrap' ) .
html_tag( 'td', ' ' . $row['name'], 'left', '', 'valign="top" nowrap' ) .
html_tag( 'td', ' ' .
'<a href="javascript:to_and_close(' .
- "'" . $row['email'] . "');\">" . $row['email'] . '</A>'
+ "'" . $email . "');\">" . $row['email'] . '</A>'
, 'left', '', 'valign="top"' ) .
html_tag( 'td', $row['label'], 'left', '', 'valign="top" nowrap' );
if ($includesource) {
foreach ($res as $row) {
$tr_bgcolor = '';
+ $email = AddressBook::full_address($row);
if ($line % 2) { $tr_bgcolor = $color[0]; }
echo html_tag( 'tr', '', '', $tr_bgcolor, 'nowrap' ) .
html_tag( 'td',
'<input type=checkbox name="send_to_search[T' . $line . ']" value = "' .
- htmlspecialchars($row['email']) . '"> ' . _("To") . ' ' .
+ htmlspecialchars($email) . '"> ' . _("To") . ' ' .
'<input type=checkbox name="send_to_search[C' . $line . ']" value = "' .
- htmlspecialchars($row['email']) . '"> ' . _("Cc") . ' ' .
+ htmlspecialchars($email) . '"> ' . _("Cc") . ' ' .
'<input type=checkbox name="send_to_search[B' . $line . ']" value = "' .
- htmlspecialchars($row['email']) . '"> ' . _("Bcc") . ' ' ,
+ htmlspecialchars($email) . '"> ' . _("Bcc") . ' ' ,
'center', '', 'width="5%" nowrap' ) .
html_tag( 'td', ' ' . $row['name'] . ' ', 'left', '', 'nowrap' ) .
html_tag( 'td', ' ' . $row['email'] . ' ', 'left', '', 'nowrap' ) .
html_tag( 'td', ' ' . $row['nickname'] . ' ', 'left', '', 'valign="top" width="1%" nowrap' ) .
html_tag( 'td', ' ' . $row['name'] . ' ', 'left', '', 'valign="top" width="1%" nowrap' ) .
html_tag( 'td', '', 'left', '', 'valign="top" width="1%" nowrap' ) . ' ';
+ $email = $abook->full_address($row);
if ($compose_new_win == '1') {
- echo '<a href="javascript:void(0)" onclick=comp_in_new(false,"compose.php?send_to='.rawurlencode($row['email']).'")>';
+ echo '<a href="javascript:void(0)" onclick=comp_in_new(false,"compose.php?send_to='.rawurlencode($email).'")>';
}
else {
- echo '<A HREF="compose.php?send_to=' . rawurlencode($row['email']).'">';
+ echo '<A HREF="compose.php?send_to=' . rawurlencode($email).'">';
}
echo $row['email'] . '</A> </td>'."\n".
html_tag( 'td', ' ' . $row['label'] . ' ', 'left', '', 'valign="top" width="1%"' ) .