projects
/
squirrelmail.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
fix for save draft
[squirrelmail.git]
/
src
/
addrbook_search_html.php
diff --git
a/src/addrbook_search_html.php
b/src/addrbook_search_html.php
index 778c52e2688de90f8cc8ad4cd569cdc56d77fabf..81cb0bc4ebf2c91ed53db422f61334ff5ca33802 100644
(file)
--- a/
src/addrbook_search_html.php
+++ b/
src/addrbook_search_html.php
@@
-31,8
+31,9
@@
function addr_insert_hidden() {
$identity;
echo '<input type=hidden value="';
$identity;
echo '<input type=hidden value="';
- if (substr($body, 0, 1) == "\r")
+ if (substr($body, 0, 1) == "\r")
{
echo "\n";
echo "\n";
+ }
echo htmlspecialchars($body) . '" name=body>' . "\n" .
'<input type=hidden value="' . htmlspecialchars($subject) .
'" name=subject>' . "\n" .
echo htmlspecialchars($body) . '" name=body>' . "\n" .
'<input type=hidden value="' . htmlspecialchars($subject) .
'" name=subject>' . "\n" .
@@
-78,11
+79,11
@@
function addr_display_result($res, $includesource = true) {
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 = "' .
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
' .
+ htmlspecialchars($row['email']) . '">
' . _("To") . '
' .
'<input type=checkbox name="send_to_search[C' . $line . ']" value = "' .
'<input type=checkbox name="send_to_search[C' . $line . ']" value = "' .
- htmlspecialchars($row['email']) . '">
Cc
' .
+ htmlspecialchars($row['email']) . '">
' . _("Cc") . '
' .
'<input type=checkbox name="send_to_search[B' . $line . ']" value = "' .
'<input type=checkbox name="send_to_search[B' . $line . ']" value = "' .
- htmlspecialchars($row['email']) . '">
Bcc
' .
+ htmlspecialchars($row['email']) . '">
' . _("Bcc") . '
' .
'</td><td nowrap> ' . $row['name'] . ' </td>' .
'<td nowrap> ' . $row['email'] . ' </td>' .
'<td nowrap> ' . $row['label'] . ' </td>';
'</td><td nowrap> ' . $row['name'] . ' </td>' .
'<td nowrap> ' . $row['email'] . ' </td>' .
'<td nowrap> ' . $row['label'] . ' </td>';
@@
-104,8
+105,12
@@
function addr_display_result($res, $includesource = true) {
/* --- End functions --- */
global $mailbox;
/* --- End functions --- */
global $mailbox;
-displayPageHeader($color, $mailbox);
-
+if ($compose_new_win == '1') {
+ compose_Header($color, $mailbox);
+}
+else {
+ displayPageHeader($color, $mailbox);
+}
/* Initialize addressbook */
$abook = addressbook_init();
/* Initialize addressbook */
$abook = addressbook_init();
@@
-157,7
+162,12
@@
do_hook('addrbook_html_search_below');
/* End search form */
/* Show personal addressbook */
/* End search form */
/* Show personal addressbook */
-if ($addrquery == '' || !empty($listall)) {
+
+if ( !empty( $listall ) ){
+ $addrquery = '*';
+}
+
+if ($addrquery == '' && empty($listall)) {
if (! isset($backend) || $backend != -1 || $addrquery == '') {
if ($addrquery == '') {
if (! isset($backend) || $backend != -1 || $addrquery == '') {
if ($addrquery == '') {
@@
-184,11
+194,8
@@
if ($addrquery == '' || !empty($listall)) {
addr_display_result($res, true);
}
exit;
addr_display_result($res, true);
}
exit;
-
- if ( !empty( $listall ) ){
- $addrquery = '*';
- }
-} else {
+}
+else {
/* Do the search */
if (!empty($addrquery)) {
/* Do the search */
if (!empty($addrquery)) {