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['label'] . ' ', 'left', '', 'nowrap' );
+ html_tag( 'td', ' ' . htmlspecialchars($row['name']) . ' ', 'left', '', 'nowrap' ) .
+ html_tag( 'td', ' ' . htmlspecialchars($row['email']) . ' ', 'left', '', 'nowrap' ) .
+ html_tag( 'td', ' ' . htmlspecialchars($row['label']) . ' ', 'left', '', 'nowrap' );
if ($includesource) {
echo html_tag( 'td', ' ' . $row['source'] . ' ', 'left', '', 'nowrap' );