- echo '<tr';
- if ($line % 2) { echo ' bgcolor="' . $color[0] . '"'; }
- echo ' nowrap><td nowrap align=center width="5%">' .
- '<input type=checkbox name="send_to_search[T' . $line . ']" value = "' .
- htmlspecialchars($row['email']) . '"> To ' .
- '<input type=checkbox name="send_to_search[C' . $line . ']" value = "' .
- htmlspecialchars($row['email']) . '"> Cc ' .
- '<input type=checkbox name="send_to_search[B' . $line . ']" value = "' .
- htmlspecialchars($row['email']) . '"> Bcc ' .
- '</td><td nowrap> ' . $row['name'] . ' </td>' .
- '<td nowrap> ' . $row['email'] . ' </td>' .
- '<td nowrap> ' . $row['label'] . ' </td>';
+ $email = AddressBook::full_address($row);
+ if ($line % 2) {
+ $tr_bgcolor = $color[12];
+ } else {
+ $tr_bgcolor = $color[4];
+ }
+ if ($squirrelmail_language == 'ja_JP')
+ {
+ echo html_tag( 'tr', '', '', $tr_bgcolor, 'style="white-space: nowrap;"' ) .
+ html_tag( 'td',
+ '<input type="checkbox" name="send_to_search[T' . $line . ']" value = "' .
+ htmlspecialchars($email) . '" /> ' . _("To") . ' ' .
+ '<input type="checkbox" name="send_to_search[C' . $line . ']" value = "' .
+ htmlspecialchars($email) . '" /> ' . _("Cc") . ' ' .
+ '<input type="checkbox" name="send_to_search[B' . $line . ']" value = "' .
+ htmlspecialchars($email) . '" /> ' . _("Bcc") . ' ' ,
+ 'center', '', 'width="5%" style="white-space: nowrap;"' ) .
+ html_tag( 'td', ' ' . htmlspecialchars($row['lastname']) . ' ' . htmlspecialchars($row['firstname']) . ' ', 'left', '', 'style="white-space: nowrap;"' ) .
+ html_tag( 'td', ' ' . htmlspecialchars($row['email']) . ' ', 'left', '', 'style="white-space: nowrap;"' ) .
+ html_tag( 'td', ' ' . htmlspecialchars($row['label']) . ' ', 'left', '', 'style="white-space: nowrap;"' );
+ } else {
+ echo html_tag( 'tr', '', '', $tr_bgcolor, 'style="white-space: nowrap;"' ) .
+ html_tag( 'td',
+ addCheckBox('send_to_search[T'.$line.']', FALSE, $email).
+ ' ' . _("To") . ' ' .
+ addCheckBox('send_to_search[C'.$line.']', FALSE, $email).
+ ' ' . _("Cc") . ' ' .
+ addCheckBox('send_to_search[B'.$line.']', FALSE, $email).
+ ' ' . _("Bcc") . ' ' ,
+ 'center', '', 'width="5%" style="white-space: nowrap;"' ) .
+ html_tag( 'td', ' ' . htmlspecialchars($row['name']) . ' ', 'left', '', 'style="white-space: nowrap;"' ) .
+ html_tag( 'td', ' ' . htmlspecialchars($row['email']) . ' ', 'left', '', 'style="white-space: nowrap;"' ) .
+ html_tag( 'td', ' ' . htmlspecialchars($row['label']) . ' ', 'left', '', 'style="white-space: nowrap;"' );
+ }
+