sqgetGlobalVar('PHP_SELF',$php_self,SQ_SERVER);
return create_hyperlink("$php_self?startMessage=$start_msg&mailbox=$box",
$text, '', '', '', '', '',
- array('accesskey' => $accesskey));
+ ($accesskey == 'NONE'
+ ? array()
+ : array('accesskey' => $accesskey)));
}
if (($next_grp <= $iTotal) && ($prev_grp >= 0)) {
$prv_str = get_paginator_link($box, $prev_grp, '<',
($accesskeys_constructed
- ? '' : $accesskey_mailbox_previous));
+ ? 'NONE' : $accesskey_mailbox_previous));
$nxt_str = get_paginator_link($box, $next_grp, '>',
($accesskeys_constructed
- ? '' : $accesskey_mailbox_next));
+ ? 'NONE' : $accesskey_mailbox_next));
} else if (($next_grp > $iTotal) && ($prev_grp >= 0)) {
$prv_str = get_paginator_link($box, $prev_grp, '<',
($accesskeys_constructed
- ? '' : $accesskey_mailbox_previous));
+ ? 'NONE' : $accesskey_mailbox_previous));
$nxt_str = '>';
} else if (($next_grp <= $iTotal) && ($prev_grp < 0)) {
$prv_str = '<';
$nxt_str = get_paginator_link($box, $next_grp, '>',
($accesskeys_constructed
- ? '' : $accesskey_mailbox_next));
+ ? 'NONE' : $accesskey_mailbox_next));
}
/* Page selector block. Following code computes page links. */
}
} else {
global $accesskey_mailbox_all_paginate;
- $pg_str = create_hyperlink("$php_self?showall=0&startMessage=1&mailbox=$box", _("Paginate"), '', '', '', '', '', array('accesskey' => ($accesskeys_constructed ? 'NONE' : $accesskey_mailbox_all_paginate)));
+ $pg_str = create_hyperlink("$php_self?showall=0&startMessage=1&mailbox=$box", _("Paginate"), '', '', '', '', '', ($accesskeys_constructed ? array() : array('accesskey' =>
+$accesskey_mailbox_all_paginate)));
}
/* Put all the pieces of the paginator string together. */
/* Compute the 'show all' string. */
global $accesskey_mailbox_all_paginate;
- $all_str = create_hyperlink("$php_self?showall=1&startMessage=1&mailbox=$box", _("Show All"), '', '', '', '', '', array('accesskey' => ($accesskeys_constructed ? 'NONE' : $accesskey_mailbox_all_paginate)));
+ $all_str = create_hyperlink("$php_self?showall=1&startMessage=1&mailbox=$box", _("Show All"), '', '', '', '', '', ($accesskeys_constructed ? array() : array('accesskey' => $accesskey_mailbox_all_paginate)));
$result .= '[' . get_paginator_link($box, 1, '<<') . ']';
$result .= '[' . $prv_str . ']';
if (($next_grp <= $iTotal) && ($prev_grp >= 0)) {
$prv_str = get_paginator_link($box, $prev_grp, _("Previous"),
($accesskeys_constructed
- ? '' : $accesskey_mailbox_previous));
+ ? 'NONE' : $accesskey_mailbox_previous));
$nxt_str = get_paginator_link($box, $next_grp, _("Next"),
($accesskeys_constructed
- ? '' : $accesskey_mailbox_next));
+ ? 'NONE' : $accesskey_mailbox_next));
} else if (($next_grp > $iTotal) && ($prev_grp >= 0)) {
$prv_str = get_paginator_link($box, $prev_grp, _("Previous"),
($accesskeys_constructed
- ? '' : $accesskey_mailbox_previous));
+ ? 'NONE' : $accesskey_mailbox_previous));
$nxt_str = _("Next");
} else if (($next_grp <= $iTotal) && ($prev_grp < 0)) {
$prv_str = _("Previous");
$nxt_str = get_paginator_link($box, $next_grp, _("Next"),
($accesskeys_constructed
- ? '' : $accesskey_mailbox_next));
+ ? 'NONE' : $accesskey_mailbox_next));
}
/* Page selector block. Following code computes page links. */
}
} else {
global $accesskey_mailbox_all_paginate;
- $pg_str = create_hyperlink("$php_self?showall=0&startMessage=1&mailbox=$box", _("Paginate"), '', '', '', '', '', array('accesskey' => ($accesskeys_constructed ? 'NONE' : $accesskey_mailbox_all_paginate)));
+ $pg_str = create_hyperlink("$php_self?showall=0&startMessage=1&mailbox=$box", _("Paginate"), '', '', '', '', '', ($accesskeys_constructed ? array() : array('accesskey' =>
+$accesskey_mailbox_all_paginate)));
}
/* Put all the pieces of the paginator string together. */
/* Compute the 'show all' string. */
global $accesskey_mailbox_all_paginate;
- $all_str = create_hyperlink("$php_self?showall=1&startMessage=1&mailbox=$box", _("Show All"), '', '', '', '', '', array('accesskey' => ($accesskeys_constructed ? 'NONE' : $accesskey_mailbox_all_paginate)));
+ $all_str = create_hyperlink("$php_self?showall=1&startMessage=1&mailbox=$box", _("Show All"), '', '', '', '', '', ($accesskeys_constructed ? array() : array('accesskey' =>
+$accesskey_mailbox_all_paginate)));
$result .= '[';
$result .= ($prv_str != '' ? $prv_str . $nbsp . $sep . $nbsp : '');