|
@@ -19,7 +19,7 @@
|
|
* @ignore
|
|
* @ignore
|
|
*/
|
|
*/
|
|
if (! defined('SM_PATH') ) {
|
|
if (! defined('SM_PATH') ) {
|
|
- define('SM_PATH','../');
|
|
|
|
|
|
+ define('SM_PATH','../');
|
|
}
|
|
}
|
|
|
|
|
|
/** SquirrelMail required files. */
|
|
/** SquirrelMail required files. */
|
|
@@ -53,12 +53,12 @@ function addr_insert_hidden() {
|
|
|
|
|
|
echo addHidden('session', $session).
|
|
echo addHidden('session', $session).
|
|
addHidden('subject', $subject).
|
|
addHidden('subject', $subject).
|
|
- addHidden('send_to', $send_to).
|
|
|
|
- addHidden('send_to_bcc', $send_to_bcc).
|
|
|
|
- addHidden('send_to_cc', $send_to_cc).
|
|
|
|
- addHidden('identity', $identity).
|
|
|
|
- addHidden('mailbox', $mailbox).
|
|
|
|
- addHidden('from_htmladdr_search', 'true');
|
|
|
|
|
|
+ addHidden('send_to', $send_to).
|
|
|
|
+ addHidden('send_to_bcc', $send_to_bcc).
|
|
|
|
+ addHidden('send_to_cc', $send_to_cc).
|
|
|
|
+ addHidden('identity', $identity).
|
|
|
|
+ addHidden('mailbox', $mailbox).
|
|
|
|
+ addHidden('from_htmladdr_search', 'true');
|
|
}
|
|
}
|
|
|
|
|
|
|
|
|
|
@@ -121,12 +121,12 @@ if ($javascript_on) {
|
|
{
|
|
{
|
|
echo html_tag( 'tr', '', '', $tr_bgcolor, 'nowrap' ) .
|
|
echo html_tag( 'tr', '', '', $tr_bgcolor, 'nowrap' ) .
|
|
html_tag( 'td',
|
|
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") . ' ' ,
|
|
|
|
|
|
+ '<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%" nowrap' ) .
|
|
'center', '', 'width="5%" nowrap' ) .
|
|
html_tag( 'td', ' ' . htmlspecialchars($row['lastname']) . ' ' . htmlspecialchars($row['firstname']) . ' ', 'left', '', '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['email']) . ' ', 'left', '', 'nowrap' ) .
|
|
@@ -134,12 +134,12 @@ if ($javascript_on) {
|
|
} else {
|
|
} else {
|
|
echo html_tag( 'tr', '', '', $tr_bgcolor, 'nowrap' ) .
|
|
echo html_tag( 'tr', '', '', $tr_bgcolor, 'nowrap' ) .
|
|
html_tag( 'td',
|
|
html_tag( 'td',
|
|
- addCheckBox('send_to_search[T'.$line.']', FALSE, $email).
|
|
|
|
|
|
+ addCheckBox('send_to_search[T'.$line.']', FALSE, $email).
|
|
' ' . _("To") . ' ' .
|
|
' ' . _("To") . ' ' .
|
|
- addCheckBox('send_to_search[C'.$line.']', FALSE, $email).
|
|
|
|
- ' ' . _("Cc") . ' ' .
|
|
|
|
- addCheckBox('send_to_search[B'.$line.']', FALSE, $email).
|
|
|
|
- ' ' . _("Bcc") . ' ' ,
|
|
|
|
|
|
+ addCheckBox('send_to_search[C'.$line.']', FALSE, $email).
|
|
|
|
+ ' ' . _("Cc") . ' ' .
|
|
|
|
+ addCheckBox('send_to_search[B'.$line.']', FALSE, $email).
|
|
|
|
+ ' ' . _("Bcc") . ' ' ,
|
|
'center', '', 'width="5%" nowrap' ) .
|
|
'center', '', 'width="5%" nowrap' ) .
|
|
html_tag( 'td', ' ' . htmlspecialchars($row['name']) . ' ', 'left', '', 'nowrap' ) .
|
|
html_tag( 'td', ' ' . htmlspecialchars($row['name']) . ' ', 'left', '', 'nowrap' ) .
|
|
html_tag( 'td', ' ' . htmlspecialchars($row['email']) . ' ', 'left', '', 'nowrap' ) .
|
|
html_tag( 'td', ' ' . htmlspecialchars($row['email']) . ' ', 'left', '', 'nowrap' ) .
|
|
@@ -155,13 +155,13 @@ if ($javascript_on) {
|
|
if ($includesource) { $td_colspan = '5'; } else { $td_colspan = '4'; }
|
|
if ($includesource) { $td_colspan = '5'; } else { $td_colspan = '4'; }
|
|
echo html_tag( 'tr',
|
|
echo html_tag( 'tr',
|
|
html_tag( 'td',
|
|
html_tag( 'td',
|
|
- '<INPUT TYPE=submit NAME="addr_search_done" VALUE="' .
|
|
|
|
- _("Use Addresses") . '">' ,
|
|
|
|
|
|
+ '<input type="submit" name="addr_search_done" value="' .
|
|
|
|
+ _("Use Addresses") . '" />' ,
|
|
'center', '', 'colspan="'. $td_colspan .'"' )
|
|
'center', '', 'colspan="'. $td_colspan .'"' )
|
|
) .
|
|
) .
|
|
- '</TABLE>' .
|
|
|
|
- addHidden('html_addr_search_done', '1').
|
|
|
|
- '</FORM>';
|
|
|
|
|
|
+ '</table>' .
|
|
|
|
+ addHidden('html_addr_search_done', '1').
|
|
|
|
+ '</form>';
|
|
}
|
|
}
|
|
|
|
|
|
/* --- End functions --- */
|
|
/* --- End functions --- */
|
|
@@ -176,7 +176,7 @@ else {
|
|
$abook = addressbook_init();
|
|
$abook = addressbook_init();
|
|
|
|
|
|
|
|
|
|
-echo '<br>' .
|
|
|
|
|
|
+echo '<br />' .
|
|
html_tag( 'table',
|
|
html_tag( 'table',
|
|
html_tag( 'tr',
|
|
html_tag( 'tr',
|
|
html_tag( 'td', '<b>' . _("Address Book Search") . '</b>', 'center', $color[0] )
|
|
html_tag( 'td', '<b>' . _("Address Book Search") . '</b>', 'center', $color[0] )
|
|
@@ -189,9 +189,9 @@ echo '<center>' .
|
|
html_tag( 'table', '', 'center', '', 'border="0"' ) .
|
|
html_tag( 'table', '', 'center', '', 'border="0"' ) .
|
|
html_tag( 'tr' ) .
|
|
html_tag( 'tr' ) .
|
|
html_tag( 'td', '', 'left', '', 'nowrap valign="middle"' ) . "\n" .
|
|
html_tag( 'td', '', 'left', '', 'nowrap valign="middle"' ) . "\n" .
|
|
- addForm($PHP_SELF.'?html_addr_search=true', 'POST', 'f').
|
|
|
|
- "\n<CENTER>\n" .
|
|
|
|
- ' <nobr><STRONG>' . _("Search for") . "</STRONG>\n";
|
|
|
|
|
|
+ addForm($PHP_SELF.'?html_addr_search=true', 'post', 'f').
|
|
|
|
+ "\n<center>\n" .
|
|
|
|
+ ' <nobr><strong>' . _("Search for") . "</strong>\n";
|
|
addr_insert_hidden();
|
|
addr_insert_hidden();
|
|
if (! isset($addrquery))
|
|
if (! isset($addrquery))
|
|
$addrquery = '';
|
|
$addrquery = '';
|
|
@@ -200,13 +200,13 @@ echo addInput('addrquery', $addrquery, 26);
|
|
/* List all backends to allow the user to choose where to search */
|
|
/* List all backends to allow the user to choose where to search */
|
|
if (!isset($backend)) { $backend = ''; }
|
|
if (!isset($backend)) { $backend = ''; }
|
|
if ($abook->numbackends > 1) {
|
|
if ($abook->numbackends > 1) {
|
|
- echo '<STRONG>' . _("in") . '</STRONG> ';
|
|
|
|
|
|
+ echo '<strong>' . _("in") . '</strong> ';
|
|
|
|
|
|
$selopts['-1'] = _("All address books");
|
|
$selopts['-1'] = _("All address books");
|
|
$ret = $abook->get_backend_list();
|
|
$ret = $abook->get_backend_list();
|
|
|
|
|
|
while (list($undef,$v) = each($ret)) {
|
|
while (list($undef,$v) = each($ret)) {
|
|
- $selopts[$v->bnum] = $v->sname;
|
|
|
|
|
|
+ $selopts[$v->bnum] = $v->sname;
|
|
}
|
|
}
|
|
echo addSelect('backend', $selopts, $backend, TRUE);
|
|
echo addSelect('backend', $selopts, $backend, TRUE);
|
|
} else {
|
|
} else {
|
|
@@ -216,10 +216,10 @@ if (isset($session)) {
|
|
echo addHidden('session', $session);
|
|
echo addHidden('session', $session);
|
|
}
|
|
}
|
|
|
|
|
|
-echo '<INPUT TYPE=submit VALUE="' . _("Search") . '">' .
|
|
|
|
- ' | <INPUT TYPE=submit VALUE="' . _("List all") .
|
|
|
|
- '" NAME=listall>' . "\n" .
|
|
|
|
- '</FORM></center></TD></TR></TABLE>' . "\n";
|
|
|
|
|
|
+echo '<input type="submit" value="' . _("Search") . '" />' .
|
|
|
|
+ ' | <input type="submit" value="' . _("List all") .
|
|
|
|
+ '" name="listall" />' . "\n" .
|
|
|
|
+ '</form></center></td></tr></table>' . "\n";
|
|
addr_insert_hidden();
|
|
addr_insert_hidden();
|
|
echo '</center>';
|
|
echo '</center>';
|
|
do_hook('addrbook_html_search_below');
|
|
do_hook('addrbook_html_search_below');
|
|
@@ -238,7 +238,7 @@ if ($addrquery == '' && empty($listall)) {
|
|
$backend = $abook->localbackend;
|
|
$backend = $abook->localbackend;
|
|
}
|
|
}
|
|
|
|
|
|
- /* echo '<H3 ALIGN=center>' . $abook->backends[$backend]->sname) . "</H3>\n"; */
|
|
|
|
|
|
+ /* echo '<h3 align="center">' . $abook->backends[$backend]->sname) . "</h3>\n"; */
|
|
|
|
|
|
$res = $abook->list_addr($backend);
|
|
$res = $abook->list_addr($backend);
|
|
|
|
|
|
@@ -246,7 +246,7 @@ if ($addrquery == '' && empty($listall)) {
|
|
usort($res,'alistcmp');
|
|
usort($res,'alistcmp');
|
|
addr_display_result($res, false);
|
|
addr_display_result($res, false);
|
|
} else {
|
|
} else {
|
|
- echo html_tag( 'p', '<strong><br>' .
|
|
|
|
|
|
+ echo html_tag( 'p', '<strong><br />' .
|
|
sprintf(_("Unable to list addresses from %s"),
|
|
sprintf(_("Unable to list addresses from %s"),
|
|
$abook->backends[$backend]->sname) . "</strong>\n" ,
|
|
$abook->backends[$backend]->sname) . "</strong>\n" ,
|
|
'center' );
|
|
'center' );
|
|
@@ -271,17 +271,17 @@ else {
|
|
}
|
|
}
|
|
|
|
|
|
if (!is_array($res)) {
|
|
if (!is_array($res)) {
|
|
- echo html_tag( 'p', '<b><br>' .
|
|
|
|
|
|
+ echo html_tag( 'p', '<b><br />' .
|
|
_("Your search failed with the following error(s)") .
|
|
_("Your search failed with the following error(s)") .
|
|
- ':<br>' . $abook->error . "</b>\n" ,
|
|
|
|
|
|
+ ':<br />' . $abook->error . "</b>\n" ,
|
|
'center' ) .
|
|
'center' ) .
|
|
- "\n</BODY></HTML>\n";
|
|
|
|
|
|
+ "\n</body></html>\n";
|
|
} else {
|
|
} else {
|
|
if (sizeof($res) == 0) {
|
|
if (sizeof($res) == 0) {
|
|
- echo html_tag( 'p', '<br><b>' .
|
|
|
|
|
|
+ echo html_tag( 'p', '<br /><b>' .
|
|
_("No persons matching your search were found") . "</b>\n" ,
|
|
_("No persons matching your search were found") . "</b>\n" ,
|
|
'center' ) .
|
|
'center' ) .
|
|
- "\n</BODY></HTML>\n";
|
|
|
|
|
|
+ "\n</body></html>\n";
|
|
} else {
|
|
} else {
|
|
addr_display_result($res);
|
|
addr_display_result($res);
|
|
}
|
|
}
|
|
@@ -290,11 +290,11 @@ else {
|
|
}
|
|
}
|
|
|
|
|
|
if ($addrquery == '' || sizeof($res) == 0) {
|
|
if ($addrquery == '' || sizeof($res) == 0) {
|
|
- /* printf('<center><FORM METHOD=post NAME=k ACTION="compose.php">'."\n", $PHP_SELF); */
|
|
|
|
|
|
+ /* printf('<center><form method="post" name="k" action="compose.php">'."\n", $PHP_SELF); */
|
|
echo '<center>'.
|
|
echo '<center>'.
|
|
- addForm('compose.php','POST','k');
|
|
|
|
|
|
+ addForm('compose.php','POST','k');
|
|
addr_insert_hidden();
|
|
addr_insert_hidden();
|
|
- echo '<INPUT TYPE=submit VALUE="' . _("Return") . '" NAME=return>' . "\n" .
|
|
|
|
|
|
+ echo '<input type="submit" value="' . _("Return") . '" name="return" />' . "\n" .
|
|
'</form></center></nobr>';
|
|
'</form></center></nobr>';
|
|
}
|
|
}
|
|
|
|
|