' .
"\n\n" .
"\n";
$chk_all = '' . _("All") . ' '._("To").''.
' '.
'' . _("All") . ' '._("Cc").''.
' '.
'' . _("All") . '';
} else {
// check_all links are implemented only in JavaScript. disable links in js=off environment.
$chk_all = '';
}
echo html_tag( 'table', '', 'center', '', 'border="0" width="98%"' ) .
html_tag( 'tr', '', '', $color[9] ) .
html_tag( 'th', ' ' . $chk_all, 'left' ) .
html_tag( 'th', ' ' . _("Name"), 'left' ) .
html_tag( 'th', ' ' . _("E-mail"), 'left' ) .
html_tag( 'th', ' ' . _("Info"), 'left' );
if ($includesource) {
echo html_tag( 'th', ' ' . _("Source"), 'left', '', 'width="10%"' );
}
echo "\n";
foreach ($res as $row) {
$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, 'nowrap' ) .
html_tag( 'td',
' ' . _("To") . ' ' .
' ' . _("Cc") . ' ' .
' ' . _("Bcc") . ' ' ,
'center', '', 'width="5%" nowrap' ) .
html_tag( 'td', ' ' . htmlspecialchars($row['lastname']) . ' ' . htmlspecialchars($row['firstname']) . ' ', 'left', '', 'nowrap' ) .
html_tag( 'td', ' ' . htmlspecialchars($row['email']) . ' ', 'left', '', 'nowrap' ) .
html_tag( 'td', ' ' . htmlspecialchars($row['label']) . ' ', 'left', '', 'nowrap' );
} else {
echo html_tag( 'tr', '', '', $tr_bgcolor, '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%" 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' );
}
echo "\n";
$line ++;
}
if ($includesource) { $td_colspan = '5'; } else { $td_colspan = '4'; }
echo html_tag( 'tr',
html_tag( 'td',
' ' .
'',
'center', '', 'colspan="'. $td_colspan .'"' )
) .
'' .
addHidden('html_addr_search_done', '1').
'';
}
/* --- End functions --- */
if ($compose_new_win == '1') {
compose_Header($color, $mailbox);
}
else {
displayPageHeader($color, $mailbox);
}
/* Initialize addressbook */
$abook = addressbook_init();
echo '
' .
html_tag( 'table',
html_tag( 'tr',
html_tag( 'td', '' . _("Address Book Search") . '', 'center', $color[0] )
) ,
'center', '', 'width="95%" cellpadding="2" cellspacing="2" border="0"' );
/* Search form */
echo '