X-Git-Url: https://vcs.fsf.org/?a=blobdiff_plain;f=templates%2Fdefault%2Fmessage_list.tpl;h=6c9a2a7ff40abfab4306d17c06f64d38578945cd;hb=9ae70b623b5bda18ee4b60d9481d49d057b2f508;hp=fceb50d8435d18eefcd4dbd8925b880bf36fa45f;hpb=e8b30fd382d26499b5428c741b835fab9e28ac11;p=squirrelmail.git diff --git a/templates/default/message_list.tpl b/templates/default/message_list.tpl index fceb50d8..6c9a2a7f 100644 --- a/templates/default/message_list.tpl +++ b/templates/default/message_list.tpl @@ -64,8 +64,16 @@ * $aErrors * $checkall * $preselected + * $show_personal_names boolean When turned on, all email + * address fields should display + * the personal name and use the + * email address as a tool tip; + * When turned off, this logic + * should be inverted + * $accesskey_mailbox_toggle_selected The access key to use for the toggle all checkbox + * $accesskey_mailbox_thread The access key to use for the Thread/Unthread links * - * @copyright © 1999-2006 The SquirrelMail Project Team + * @copyright 1999-2014 The SquirrelMail Project Team * @license http://opensource.org/licenses/gpl-license.php GNU Public License * @version $Id$ * @package squirrelmail @@ -110,6 +118,7 @@ if ($pageOffset < $end_msg) { ?>
+ @@ -192,12 +206,17 @@ if ($pageOffset < $end_msg) { case SQM_COL_CHECK: if ($javascript_on) { $checked = ($checkall ? ' checked="checked" ' : ''); - echo ''."\n"; + $accesskey = ($accesskey_mailbox_toggle_selected == 'NONE' ? '' + : ' accesskey="' . $accesskey_mailbox_toggle_selected . '" '); + echo '' . "\n"; } else { $link = $baseurl . "&startMessage=$pageOffset&checkall=" . ($checkall ? '0' : '1'); - echo ""._("All").''; + echo "" . _("All") . ''; } break; case SQM_COL_FROM: @@ -261,8 +280,13 @@ if ($pageOffset < $end_msg) { // this stuff does the auto row highlighting on mouseover // + if (!empty($plugin_output['checkbox_javascript_onclick'])) $checkbox_javascript_onclick = $plugin_output['checkbox_javascript_onclick']; + else $checkbox_javascript_onclick = ''; + if ($javascript_on && $fancy_index_highlite) { - $checkbox_javascript = ' onclick="this.checked = !this.checked;"'; + $checkbox_javascript = ' onclick="this.checked = !this.checked; ' . $checkbox_javascript_onclick . '"'; + } else if (!empty($checkbox_javascript_onclick)) { + $checkbox_javascript = ' onclick="' . $checkbox_javascript_onclick . '"'; } else { $checkbox_javascript = ''; } @@ -357,9 +381,11 @@ if ($pageOffset < $end_msg) { // where on the row you click // $javascript_auto_click = ''; + $row_click_extra = ''; + if (!empty($plugin_output['row_click_extra'])) $row_click_extra = $plugin_output['row_click_extra']; 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', event, '$form_name', 'msg[' + $i + ']', '$row_click_extra')\""; } @@ -430,6 +456,17 @@ if ($non_clicked_class != 'even' && $non_clicked_class != 'odd' $onclick = (isset($aCol['onclick'])) ? $aCol['onclick'] : ''; $value = (isset($aCol['value'])) ? $aCol['value'] : ''; $target = (isset($aCol['target'])) ? $aCol['target'] : ''; + if (!$show_personal_names + && !empty($title) + && ($iCol == SQM_COL_FROM + || $iCol == SQM_COL_TO + || $iCol == SQM_COL_CC + || $iCol == SQM_COL_BCC)) { + // swap title and value + $tmp = $title; + $title = $value; + $value = $tmp; + } if ($iCol !== SQM_COL_CHECK) { $value = $sLabelStart.$sPre.$value.$sEnd.$sLabelEnd; } @@ -459,7 +496,7 @@ if ($non_clicked_class != 'even' && $non_clicked_class != 'odd' if ($onclick) { $sText .= " onclick=\"$onclick\""; } 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.') . + $sText .= " onmousedown=\"row_click('$form_id"."_msg$i', event, '$form_name', 'msg[' + $i + ']', '$row_click_extra'); setPointer(this." . (empty($bold) ? '' : 'parentNode.') . 'parentNode.parentNode, ' . $i . ', \'click\', \''. $non_clicked_class. '\', \'mouse_over\', \'clicked\');"'; } $sText .= ">" @@ -477,8 +514,9 @@ if ($non_clicked_class != 'even' && $non_clicked_class != 'odd' break; case SQM_COL_INT_DATE: case SQM_COL_DATE: - $sText = " \n"; + $sText = " @@ -551,5 +590,5 @@ if ($non_clicked_class != 'even' && $non_clicked_class != 'odd' -

© 1999-2007 The SquirrelMail Project Team - About SquirrelMail

+

© The SquirrelMail Project Team - About SquirrelMail

@@ -128,7 +137,12 @@ if ($pageOffset < $end_msg) { */ $paginator_str = $this->fetch('paginator.tpl'); echo $paginator_str . '[' . $thread_name . ']'; ?> + . ($accesskey_mailbox_thread != 'NONE' + ? '" accesskey="' . $accesskey_mailbox_thread . '">' + : '">') + . $thread_name . ']  '; + if (!empty($plugin_output['mailbox_paginator_after'])) echo $plugin_output['mailbox_paginator_after']; + ?> " - . $value. "\n"; echo $sText; break; default: @@ -532,6 +570,7 @@ if ($non_clicked_class != 'even' && $non_clicked_class != 'odd' */ $paginator_str = $this->fetch('paginator.tpl'); echo $paginator_str; + if (!empty($plugin_output['mailbox_paginator_after'])) echo $plugin_output['mailbox_paginator_after']; ?>