From: <pdo...@us...> - 2007-09-06 07:40:50
|
Revision: 12679 http://squirrelmail.svn.sourceforge.net/squirrelmail/?rev=12679&view=rev Author: pdontthink Date: 2007-09-06 00:40:43 -0700 (Thu, 06 Sep 2007) Log Message: ----------- Added "preselected" query argument to mailbox list Modified Paths: -------------- branches/SM-1_4-STABLE/squirrelmail/ChangeLog branches/SM-1_4-STABLE/squirrelmail/functions/mailbox_display.php branches/SM-1_4-STABLE/squirrelmail/src/right_main.php Modified: branches/SM-1_4-STABLE/squirrelmail/ChangeLog =================================================================== --- branches/SM-1_4-STABLE/squirrelmail/ChangeLog 2007-09-05 23:44:27 UTC (rev 12678) +++ branches/SM-1_4-STABLE/squirrelmail/ChangeLog 2007-09-06 07:40:43 UTC (rev 12679) @@ -45,6 +45,7 @@ - Composition restoration functionality now correctly restores attachments. - Added smtp_auth hook. - Change default Selection List Style to Indented. + - Added "preselected" query argument to mailbox list. Version 1.4.10a - 10 May 2007 ----------------------------- Modified: branches/SM-1_4-STABLE/squirrelmail/functions/mailbox_display.php =================================================================== --- branches/SM-1_4-STABLE/squirrelmail/functions/mailbox_display.php 2007-09-05 23:44:27 UTC (rev 12678) +++ branches/SM-1_4-STABLE/squirrelmail/functions/mailbox_display.php 2007-09-06 07:40:43 UTC (rev 12679) @@ -41,7 +41,7 @@ function printMessageInfo($imapConnection, $t, $not_last=true, $key, $mailbox, $start_msg, $where, $what) { - global $checkall, + global $checkall, $preselected, $color, $msgs, $msort, $td_str, $msg, $default_use_priority, $message_highlight_list, @@ -194,7 +194,10 @@ if (!isset($hlt_color)) { $hlt_color = $color_string; } - $checked = ($checkall == 1) ? ' CHECKED' : ''; + if ($checkall == 1 || in_array($msg['ID'], $preselected)) + $checked = ' checked="checked"'; + else + $checked = ''; $col = 0; $msg['SUBJECT'] = decodeHeader($msg['SUBJECT']); // $subject = processSubject($msg['SUBJECT'], $indent_array[$msg['ID']]); Modified: branches/SM-1_4-STABLE/squirrelmail/src/right_main.php =================================================================== --- branches/SM-1_4-STABLE/squirrelmail/src/right_main.php 2007-09-05 23:44:27 UTC (rev 12678) +++ branches/SM-1_4-STABLE/squirrelmail/src/right_main.php 2007-09-06 07:40:43 UTC (rev 12679) @@ -74,6 +74,11 @@ if ( sqgetGlobalVar('newsort', $temp, SQ_GET) ) { $newsort = (int) $temp; } +if ( !sqgetGlobalVar('preselected', $preselected, SQ_GET) || !is_array($preselected)) { + $preselected = array(); +} else { + $preselected = array_keys($preselected); +} if ( sqgetGlobalVar('checkall', $temp, SQ_GET) ) { $checkall = (int) $temp; } This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site. |