Add form name to row_click call as well
[squirrelmail.git] / templates / default / page_header.tpl
CommitLineData
e3812cb2 1<?php
2
3/**
4 * page_header.tpl
5 *
6 * Template to create the header for each page.
7 *
8 * @copyright &copy; 1999-2006 The SquirrelMail Project Team
9 * @license http://opensource.org/licenses/gpl-license.php GNU Public License
10 * @version $Id$
11 * @package squirrelmail
12 * @subpackage templates
13 */
14
15/* retrieve the template vars */
16extract($t);
17
18
19$current_folder_str = '';
876fdb60 20if ( $shortBoxName != '' ) {
e3812cb2 21 $current_folder_str .= _("Current Folder") . ": <em>$shortBoxName&nbsp;</em>\n";
22} else {
23 $current_folder_str .= '&nbsp;';
24}
25
26// Define our default link text.
9c6e0732 27$signout_link_default = _("Sign Out");
28$compose_link_default = _("Compose");
29$address_link_default = _("Addresses");
30$folders_link_default = _("Folders");
31$options_link_default = _("Options");
32$search_link_default = _("Search");
33$help_link_default = _("Help");
e3812cb2 34
35/*
36 * Create strings to use for links. If tempalte authors
37 * wish to use images instead, they may change the values
38 * below to img tags.
39
40 * Example w/ image:
41 * $compose_str = '<img src="compose.png" border="0" ' .
42 * 'alt="'.$compose_link_default.'" ' .
43 * 'title="'.$compose_link_default.'" />';
44 */
45
46$signout_str = $signout_link_default;
47$compose_str = $compose_link_default;
48$address_str = $address_link_default;
49$folders_str = $folders_link_default;
50$options_str = $options_link_default;
51$search_str = $search_link_default;
52$help_str = $help_link_default;
53
54$compose_link = makeComposeLink ('src/compose.php?mailbox='.$urlMailbox.'&amp;startMessage='.$startMessage, $compose_str);
55$signout_link = makeInternalLink ('src/signout.php', $signout_str, $frame_top);
56$address_link = makeInternalLink ('src/addressbook.php', $address_str);
57$folders_link = makeInternalLink ('src/folders.php', $folders_str);
58$search_link = makeInternalLink ('src/search.php?mailbox='.$urlMailbox, $search_str);
59$options_link = makeInternalLink ('src/options.php', $options_str);
60$help_link = makeInternalLink ('src/help.php', $help_str);
61
62?>
63<body <?php echo $body_tag_js; ?>>
64<div id="page_header">
65<a name="pagetop"></a>
8fc627a7 66<?php if (!empty($plugin_output['page_header_top'])) echo $plugin_output['page_header_top']; ?>
e3812cb2 67<!-- Begin Header Navigation Table -->
68<table class="table_empty" cellspacing="0">
69 <tr>
70 <td class="sqm_currentFolder">
71 <?php echo $current_folder_str; ?>
72 </td>
73 <td class="sqm_headerSignout">
74 <?php echo $signout_link; ?>
75 </td>
76 </tr>
77 <tr>
055853be 78 <td class="sqm_topNavigation">
e3812cb2 79 <?php echo $compose_link; ?>&nbsp;&nbsp;
80 <?php echo $address_link; ?>&nbsp;&nbsp;
81 <?php echo $folders_link; ?>&nbsp;&nbsp;
82 <?php echo $options_link; ?>&nbsp;&nbsp;
83 <?php echo $search_link; ?>&nbsp;&nbsp;
84 <?php echo $help_link; ?>&nbsp;&nbsp;
09b143cc 85 <?php if (!empty($plugin_output['menuline'])) echo $plugin_output['menuline']; ?>
e3812cb2 86 </td>
055853be 87 <td class="sqm_providerInfo">
88 <?php
89 if (!empty($plugin_output['provider_link_before']))
90 echo $plugin_output['provider_link_before'];
91 if (!empty($provider_link))
92 echo $provider_link;
93 if (!empty($plugin_output['provider_link_after']))
94 echo $plugin_output['provider_link_after'];
95 ?>
96 </td>
e3812cb2 97 </tr>
98</table>
99</div>
100<br />
101<!-- End Header Navigation Table -->