|
@@ -376,7 +376,7 @@
|
|
do_hook('mailbox_index_before');
|
|
do_hook('mailbox_index_before');
|
|
|
|
|
|
$msg_cnt_str = get_msgcnt_str($start_msg, $end_msg, $num_msgs);
|
|
$msg_cnt_str = get_msgcnt_str($start_msg, $end_msg, $num_msgs);
|
|
- $paginator_str = get_paginator_str($urlMailbox, $start_msg, $end_msg, $num_msgs, $show_num);
|
|
|
|
|
|
+ $paginator_str = get_paginator_str($urlMailbox, $start_msg, $end_msg, $num_msgs, $show_num, $sort);
|
|
|
|
|
|
if (! isset($msg)) {
|
|
if (! isset($msg)) {
|
|
$msg = '';
|
|
$msg = '';
|
|
@@ -666,7 +666,9 @@
|
|
* This function computes the paginator string.
|
|
* This function computes the paginator string.
|
|
*/
|
|
*/
|
|
function get_paginator_str
|
|
function get_paginator_str
|
|
- ($urlMailbox, $start_msg, $end_msg, $num_msgs, $show_num) {
|
|
|
|
|
|
+ ($urlMailbox, $start_msg, $end_msg, $num_msgs, $show_num, $sort) {
|
|
|
|
+ global $username, $data_dir, $use_mailbox_cache;
|
|
|
|
+
|
|
$nextGroup = $start_msg + $show_num;
|
|
$nextGroup = $start_msg + $show_num;
|
|
$prevGroup = $start_msg - $show_num;
|
|
$prevGroup = $start_msg - $show_num;
|
|
|
|
|
|
@@ -701,25 +703,25 @@
|
|
$j++;
|
|
$j++;
|
|
}
|
|
}
|
|
$start_msgs = min( $start_msgs, $num_msgs );
|
|
$start_msgs = min( $start_msgs, $num_msgs );
|
|
- $p = intval( $start_msgs / $show_num ) + 1;
|
|
|
|
|
|
+ $p = intval( $start_msg / $show_num ) + 1;
|
|
$i = 1;
|
|
$i = 1;
|
|
while( $i < $p ) {
|
|
while( $i < $p ) {
|
|
$pg = intval( $i );
|
|
$pg = intval( $i );
|
|
$start = ( ($pg-1) * $show_num ) + 1;
|
|
$start = ( ($pg-1) * $show_num ) + 1;
|
|
$mMore .= "<a href=\"right_main.php?use_mailbox_cache=$use_mailbox_cache&startMessage=$start" .
|
|
$mMore .= "<a href=\"right_main.php?use_mailbox_cache=$use_mailbox_cache&startMessage=$start" .
|
|
- "&mailbox=$urlMailbox\" TARGET=\"right\">$pg</a> ";
|
|
|
|
|
|
+ "&mailbox=$urlMailbox\" TARGET=\"right\">$pg</a> ";
|
|
$i += $k;
|
|
$i += $k;
|
|
}
|
|
}
|
|
- $mMore .= "<b>$p</b> ";
|
|
|
|
|
|
+ $mMore .= "<B>$p</B> ";
|
|
$i += $k;
|
|
$i += $k;
|
|
while( $i <= $j ) {
|
|
while( $i <= $j ) {
|
|
$pg = intval( $i );
|
|
$pg = intval( $i );
|
|
$start = ( ($pg-1) * $show_num ) + 1;
|
|
$start = ( ($pg-1) * $show_num ) + 1;
|
|
$mMore .= "<a href=\"right_main.php?use_mailbox_cache=$use_mailbox_cache&startMessage=$start"
|
|
$mMore .= "<a href=\"right_main.php?use_mailbox_cache=$use_mailbox_cache&startMessage=$start"
|
|
- . "&mailbox=$urlMailbox\" TARGET=\"right\">$pg</a> ";
|
|
|
|
|
|
+ . "&mailbox=$urlMailbox\" TARGET=\"right\">$pg</a> ";
|
|
$i+=$k;
|
|
$i+=$k;
|
|
}
|
|
}
|
|
- $mMore .= ' | ';
|
|
|
|
|
|
+ $mMore .= ' | ';
|
|
}
|
|
}
|
|
|
|
|
|
/* Return the resulting string. */
|
|
/* Return the resulting string. */
|