*
* Template to create the header for each page.
*
- * @copyright © 1999-2006 The SquirrelMail Project Team
+ * @copyright 1999-2009 The SquirrelMail Project Team
* @license http://opensource.org/licenses/gpl-license.php GNU Public License
* @version $Id: page_header.tpl 12135 2007-01-15 08:27:10Z pdontthink $
* @package squirrelmail
$search_str = $search_link_default;
$help_str = $help_link_default;
-$compose_link = makeComposeLink ('src/compose.php?mailbox='.$urlMailbox.'&startMessage='.$startMessage, $compose_str);
-$signout_link = makeInternalLink ('src/signout.php', $signout_str, $frame_top);
-$address_link = makeInternalLink ('src/addressbook.php', $address_str);
-$folders_link = makeInternalLink ('src/folders.php', $folders_str);
-$search_link = makeInternalLink ('src/search.php?mailbox='.$urlMailbox, $search_str);
-$options_link = makeInternalLink ('src/options.php', $options_str);
-$help_link = makeInternalLink ('src/help.php', $help_str);
+$compose_link = makeComposeLink('src/compose.php?mailbox=' . $urlMailbox
+ . '&startMessage=' . $startMessage,
+ $compose_str, '', $accesskey_menubar_compose);
+$signout_link = makeInternalLink('src/signout.php', $signout_str, $frame_top,
+ $accesskey_menubar_signout);
+$address_link = makeInternalLink('src/addressbook.php', $address_str, '',
+ $accesskey_menubar_addresses);
+$folders_link = makeInternalLink('src/folders.php', $folders_str, '',
+ $accesskey_menubar_folders);
+$search_link = makeInternalLink('src/search.php?mailbox='.$urlMailbox,
+ $search_str, '', $accesskey_menubar_search);
+$options_link = makeInternalLink('src/options.php', $options_str, '',
+ $accesskey_menubar_options);
+$help_link = makeInternalLink('src/help.php', $help_str, '',
+ $accesskey_menubar_help);
?>
-<body <?php echo $body_tag_js; ?>>
+<body <?php if (!empty($onload)) echo ' onload="' . $onload . '"'; ?>>
<?php
/** if preview pane turned on, do not show menubar above message */
<?php echo $options_link; ?>
<?php echo $search_link; ?>
<?php echo $help_link; ?>
- <?php /* FIXME: no hooks in templates!! */ global $null; do_hook('menuline', $null); ?>
+ <?php if (!empty($plugin_output['menuline'])) echo $plugin_output['menuline']; ?>
</td>
<td class="sqm_providerInfo">
<?php
<!--
var delayed_page_load_uri = '';
function delayed_page_load(page_uri)
- { page_load_uri = page_uri; setTimeout('page_load()', 500); }
+ { delayed_page_load_uri = page_uri; setTimeout('page_load()', 500); }
function page_load()
- { document.location = page_load_uri; }
+ { document.location = delayed_page_load_uri; }
function refresh_message_list()
{
<?php if (!empty($message_list_href)) { ?>
}
if (first_frame != 0)
{
- parent.fs2.<?php echo $orientation; ?> = first_frame + ", " + second_frame;
+ if (document.all)
+ {
+ parent.document.all["fs2"].<?php echo $orientation; ?> = first_frame + ", " + second_frame;
+ }
+ else if (this.document.getElementById)
+ {
+ parent.document.getElementById("fs2").<?php echo $orientation; ?> = first_frame + ", " + second_frame;
+ }
}
<?php
?>
if (self.name == 'right')
{
- parent.fs2.<?php echo $orientation; ?> = "*, " + <?php echo $new_size; ?>;
+ if (document.all)
+ {
+ parent.document.all["fs2"].<?php echo $orientation; ?> = "*, " + <?php echo $new_size; ?>;
+ }
+ else if (this.document.getElementById)
+ {
+ parent.document.getElementById("fs2").<?php echo $orientation; ?> = "*, " + <?php echo $new_size; ?>;
+ }
}
// restores the preview pane if it sucked up the whole page for composing a message
else if (self.name == 'bottom')
{
- if (parent.fs2.<?php echo $orientation; ?> == "*, 100%")
- parent.fs2.<?php echo $orientation; ?> = "*, " + <?php echo $previewPane_size; ?>;
+ if (document.all)
+ {
+ if (parent.document.all["fs2"].<?php echo $orientation; ?> == "*, 100%")
+ parent.document.all["fs2"].<?php echo $orientation; ?> = "*, " + <?php echo $previewPane_size; ?>;
+ }
+ else if (this.document.getElementById)
+ {
+ if (parent.document.getElementById("fs2").<?php echo $orientation; ?> == "*, 100%")
+ parent.document.getElementById("fs2").<?php echo $orientation; ?> = "*, " + <?php echo $previewPane_size; ?>;
+ }
}
<?php } } ?>
// -->