X-Git-Url: https://vcs.fsf.org/?p=squirrelmail.git;a=blobdiff_plain;f=templates%2Fdefault%2Fmessage_list.tpl;h=fceb50d8435d18eefcd4dbd8925b880bf36fa45f;hp=712ab353cfda96e537c0fba76c7f579f132e2d43;hb=e8b30fd382d26499b5428c741b835fab9e28ac11;hpb=69a023cff70c943d30c800d301204c82a99b9bba diff --git a/templates/default/message_list.tpl b/templates/default/message_list.tpl index 712ab353..fceb50d8 100644 --- a/templates/default/message_list.tpl +++ b/templates/default/message_list.tpl @@ -19,7 +19,7 @@ * $header_sent * $body_tag_js * $shortBoxName - * $sm_attribute_str + * $provider_link * $frame_top * $urlMailbox * $startMessage @@ -49,7 +49,8 @@ * $trash_folder * $sent_folder * $draft_folder - * $thread_link_str + * $thread_link_uri + * $thread_name * $php_self * $mailbox * $enablesort @@ -61,6 +62,8 @@ * $show_label_columns * $compact_paginator * $aErrors + * $checkall + * $preselected * * @copyright © 1999-2006 The SquirrelMail Project Team * @license http://opensource.org/licenses/gpl-license.php GNU Public License @@ -104,13 +107,6 @@ if ($pageOffset < $end_msg) { */ -// set this to an empty string to turn off extra -// highlighting of checked rows -// -//$clickedColor = ''; -$clickedColor = (empty($color[16])) ? $color[2] : $color[16]; - - ?>
@@ -131,7 +127,8 @@ $clickedColor = (empty($color[16])) ? $color[2] : $color[16]; * $this is the Template class object. */ $paginator_str = $this->fetch('paginator.tpl'); - echo $paginator_str . $thread_link_str ."\n"; ?> + echo $paginator_str . '[' . $thread_name . ']'; ?> @@ -194,34 +191,36 @@ $clickedColor = (empty($color[16])) ? $color[2] : $color[16]; switch ($iCol) { case SQM_COL_CHECK: if ($javascript_on) { - echo ''."\n"; + $checked = ($checkall ? ' checked="checked" ' : ''); + echo ''."\n"; } else { - $link = $baseurl . "&startMessage=$pageOffset&checkall="; - if (sqgetGlobalVar('checkall',$checkall,SQ_GET)) { - $link .= ($checkall) ? '0' : '1'; - } else { - $link .= '1'; - } + $link = $baseurl + . "&startMessage=$pageOffset&checkall=" + . ($checkall ? '0' : '1'); echo ""._("All").''; } break; - case SQM_COL_FROM: echo _("From")."\n"; break; - case SQM_COL_DATE: echo _("Date")."\n"; break; - case SQM_COL_SUBJ: echo _("Subject")."\n"; break; + case SQM_COL_FROM: + echo '\n"; + break; + case SQM_COL_DATE: echo _("Date") . "\n"; break; + case SQM_COL_SUBJ: echo _("Subject") . "\n"; break; case SQM_COL_FLAGS: echo getIcon($icon_theme_path, 'msg_new.png', ' ', _("Message Flags")) . "\n"; break; - case SQM_COL_SIZE: echo _("Size")."\n"; break; + case SQM_COL_SIZE: echo _("Size") . "\n"; break; case SQM_COL_PRIO: echo getIcon($icon_theme_path, 'prio_high.png', '!', _("Priority")) . "\n"; break; case SQM_COL_ATTACHMENT: echo getIcon($icon_theme_path, 'attach.png', '+', _("Attachment")) . "\n"; break; - case SQM_COL_INT_DATE: echo _("Received")."\n"; break; - case SQM_COL_TO: echo _("To")."\n"; break; - case SQM_COL_CC: echo _("Cc")."\n"; break; - case SQM_COL_BCC: echo _("Bcc")."\n"; break; + case SQM_COL_INT_DATE: echo _("Received") . "\n"; break; + case SQM_COL_TO: + echo '\n"; + break; + case SQM_COL_CC: echo _("Cc") . "\n"; break; + case SQM_COL_BCC: echo _("Bcc") . "\n"; break; default: break; } // add the sort buttons @@ -254,29 +253,29 @@ $clickedColor = (empty($color[16])) ? $color[2] : $color[16]; $aMsg) { + echo $sLine; + /** * Display message header row in messages list * @@ -311,29 +310,48 @@ $clickedColor = (empty($color[16])) ? $color[2] : $color[16]; $aColumns[SQM_COL_ATTACHMENT]['value'] = $sValue; } - $class = 'even'; + $class = (($checkall || in_array($iUid, $preselected)) && $javascript_on && $fancy_index_highlite ? 'clicked_even' : 'even'); + $non_clicked_class = 'even'; + /** * If alternating row colors is set, adapt the CSS class */ if (isset($alt_index_colors) && $alt_index_colors) { if (!($i % 2)) { - $class = 'odd'; + $class = (($checkall || in_array($iUid, $preselected)) && $javascript_on && $fancy_index_highlite ? 'clicked_odd' : 'odd'); + $non_clicked_class = 'odd'; } } + + /** + * Message Highlighting Functionality + */ if (isset($aMsg['row']['color'])) { - $bgcolor = $aMsg['row']['color']; - $class = 'misc'.$i; + if (($checkall || in_array($iUid, $preselected)) && $javascript_on && $fancy_index_highlite) { +//FIXME: would be best not to use $color directly here; want to move this to be a CSS style-defined value only, but the problem is that this CSS class is being defined on the fly right here + $bgcolor = $color[16]; + $class = 'clicked_misc'.$i; + } else { + $bgcolor = $aMsg['row']['color']; + $class = 'misc'.$i; + } + $non_clicked_class = 'misc'.$i; + $non_clicked_bgcolor = $aMsg['row']['color']; + } + else + { + $bgcolor = ''; + $non_clicked_bgcolor = ''; } - else $bgcolor = ''; $row_extra = ''; // this stuff does the auto row highlighting on mouseover // if ($javascript_on && $fancy_index_highlite) { - $row_extra .= ' onmouseover="rowOver(\''.$form_id . '_msg' . $i.'\');" onmouseout="setPointer(this, ' . $i . ', \'out\', \'' . $class . '\', \'mouse_over\', \'clicked\');" onmousedown="setPointer(this, ' . $i . ', \'click\', \'' . $class . '\', \'mouse_over\', \'clicked\');"'; + $row_extra = ' onmouseover="rowOver(\''.$form_id . '_msg' . $i.'\');" onmouseout="setPointer(this, ' . $i . ', \'out\', \'' . $non_clicked_class . '\', \'mouse_over\', \'clicked\');" onmousedown="setPointer(this, ' . $i . ', \'click\', \'' . $non_clicked_class . '\', \'mouse_over\', \'clicked\');"'; } // this does the auto-checking of the checkbox no matter // where on the row you click @@ -341,15 +359,17 @@ $clickedColor = (empty($color[16])) ? $color[2] : $color[16]; $javascript_auto_click = ''; if ($javascript_on && $fancy_index_highlite) { // include the form_id in order to show multiple messages lists. Otherwise id isn't unique - $javascript_auto_click = " onMouseDown=\"row_click('$form_id"."_msg$i')\""; + $javascript_auto_click = " onmousedown=\"row_click('$form_id"."_msg$i')\""; } + /* * Message Highlighting requires a unique CSS class declaration for proper * mouseover functionality. There is no harm in doing this when the mouseover * functionality is disabled */ -if ($class != 'even' && $class != 'odd') +if ($class != 'even' && $class != 'odd' + && $class != 'clicked_even' && $class != 'clicked_odd') { ?> + + > ' ?> - " id="" value="" /> + " id="" value="" /> '; - $checked = ($checkall) ? " checked=checked " : " "; echo ""; } break; @@ -428,11 +460,10 @@ if ($class != 'even' && $class != 'odd') if ($link_extra) { $sText .= " $link_extra"; } if ($javascript_on && $fancy_index_highlite) { $sText .= " onmousedown=\"row_click('$form_id"."_msg$i'); setPointer(this." . (empty($bold) ? '' : 'parentNode.') . - 'parentNode.parentNode, ' . $i . ', \'click\', \''. $class. '\', \'mouse_over\', \'' . - $clickedColor .'\');"'; + 'parentNode.parentNode, ' . $i . ', \'click\', \''. $non_clicked_class. '\', \'mouse_over\', \'clicked\');"'; } - $sText .= ">"; - $sText .= $value . ''; + $sText .= ">" + . $value . ''; if ($align['left'] == 'right') { $sText .= str_repeat('  ',$indent); } @@ -440,14 +471,14 @@ if ($class != 'even' && $class != 'odd') break; case SQM_COL_SIZE: case SQM_COL_FLAGS: - $sText = " "; - $sText .= "$value\n"; + $sText = " " + . "$value\n"; echo $sText; break; case SQM_COL_INT_DATE: case SQM_COL_DATE: - $sText = " "; - $sText .= $value. "\n"; + $sText = " " + . $value. "\n"; echo $sText; break; default: @@ -467,9 +498,8 @@ if ($class != 'even' && $class != 'odd') break; } } -?> - -'; $sLine = "\n"; ++$i; @@ -494,7 +524,15 @@ if ($class != 'even' && $class != 'odd') - +
@@ -504,10 +542,14 @@ if ($class != 'even' && $class != 'odd') - - + +
+ + +

© 1999-2007 The SquirrelMail Project Team - About SquirrelMail

+