* $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
* @license http://opensource.org/licenses/gpl-license.php GNU Public License
*/
$paginator_str = $this->fetch('paginator.tpl');
echo $paginator_str . '<small>[<a href="' . $thread_link_uri
- . '">' . $thread_name . '</a>]</small> ';
+ . ($accesskey_mailbox_thread != 'NONE'
+ ? '" accesskey="' . $accesskey_mailbox_thread . '">'
+ : '">')
+ . $thread_name . '</a>]</small> ';
if (!empty($plugin_output['mailbox_paginator_after'])) echo $plugin_output['mailbox_paginator_after'];
?>
<!-- end paginator and thread link string -->
case SQM_COL_CHECK:
if ($javascript_on) {
$checked = ($checkall ? ' checked="checked" ' : '');
- echo '<input type="checkbox" name="toggleAll" id="toggleAll" title="'._("Toggle All").'" onclick="toggle_all(\''.$form_name."',".$fancy_index_highlite.')" ' . $checked . '/>'."\n";
+ $accesskey = ($accesskey_mailbox_toggle_selected == 'NONE' ? ''
+ : ' accesskey="' . $accesskey_mailbox_toggle_selected . '" ');
+ echo '<input type="checkbox" name="toggleAll" id="toggleAll" title="'
+ . _("Toggle All") . '" onclick="toggle_all(\''
+ . $form_name . '\', \'msg\', ' . $fancy_index_highlite
+ . '); return false;" ' . $checked . $accesskey . '/>' . "\n";
} else {
$link = $baseurl
. "&startMessage=$pageOffset&checkall="
. ($checkall ? '0' : '1');
- echo "<a href=\"$link\">"._("All").'</a>';
+ echo "<a href=\"$link\">" . _("All") . '</a>';
}
break;
case SQM_COL_FROM:
$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;
}