From a5ee5ac2abfa64906394d54b9d94719517274b90 Mon Sep 17 00:00:00 2001 From: philippe_mingo Date: Fri, 4 Jan 2002 12:51:30 +0000 Subject: [PATCH] Search call back adjusted to fit new format git-svn-id: https://svn.code.sf.net/p/squirrelmail/code/trunk/squirrelmail@2090 7612ce4b-ef26-0410-bec9-ea0150e637f0 --- functions/mailbox_display.php | 7 +++++-- src/read_body.php | 17 +++++++++++------ src/search.php | 2 +- 3 files changed, 17 insertions(+), 9 deletions(-) diff --git a/functions/mailbox_display.php b/functions/mailbox_display.php index b0b03b3b..6596b86a 100644 --- a/functions/mailbox_display.php +++ b/functions/mailbox_display.php @@ -97,7 +97,10 @@ function printMessageInfo($imapConnection, $t, $i, $key, $mailbox, $sort, $start } if ($where && $what) { - $search_stuff = '&where='.urlencode($where).'&what='.urlencode($what); + if( !isset( $pos ) || $pos == '' ) { + $pos = '0'; + } + $search_stuff = "&pos=" . urlencode( $pos ) . "&where=".urlencode($where).'&what='.urlencode($what); } $checked = ($checkall == 1 ?' checked' : ''); @@ -914,4 +917,4 @@ function handleAsSent($mailbox) { return ($handleAsSent_result); } -?> +?> \ No newline at end of file diff --git a/src/read_body.php b/src/read_body.php index dd69e6e2..ba9be44d 100644 --- a/src/read_body.php +++ b/src/read_body.php @@ -362,19 +362,20 @@ require_once('../functions/url_parser.php'); if ($show_more_cc == false) { if ($i == 1) { /* From a search... */ + $cc_string = "$cc_string ($echo_more)"; + $cc_string .= "&what=".urlencode($what)."&where=".urlencode($where)."&show_more_cc=1&show_more=$show_more\">$echo_more)"; } else { - $cc_string = "$cc_string ($echo_more)"; + $cc_string = "&sort=$sort&startMessage=$startMessage&show_more_cc=1&show_more=$show_more\">$echo_more)"; } $i = count($cc_ary); } } else if ($i == 1) { /* From a search... */ if (isset($where) && isset($what)) { - $cc_string = "$cc_string ($echo_less)"; + $cc_string .= " ($echo_less)"; } else { - $cc_string = "$cc_string ($echo_less)"; + $cc_string .= " ($echo_less)"; } } } @@ -445,8 +446,12 @@ require_once('../functions/url_parser.php'); ' ' . "\n" . ' ' . "\n" . ' ' . "\n"; + if ($where && $what) { - echo " "; + if( $pos == '' ) { + $pos = 0; + } + echo " "; } else { echo " "; } @@ -655,4 +660,4 @@ require_once('../functions/url_parser.php'); do_hook('read_body_bottom'); do_hook('html_bottom'); sqimap_logout($imapConnection); -?> +?> \ No newline at end of file diff --git a/src/search.php b/src/search.php index 14de0d86..2c615bc8 100644 --- a/src/search.php +++ b/src/search.php @@ -1,7 +1,7 @@