Add plugin output next to paginator template
[squirrelmail.git] / templates / default / read_headers.tpl
1 <?php
2 /**
3 * read_headers.tpl
4 *
5 * Template to display the envelope headers when viewing a message.
6 *
7 * The following variables are available in this template:
8 *
9 * $headers_to_display - Array containing the list of all elements that need
10 * to be displayed. The index of each element is the
11 * translated name of the field to be displayed. The
12 * value of each element is the value to be displayed
13 * for that field. Many values can be controled through
14 * additional templates.
15 *
16 *
17 * @copyright &copy; 1999-2006 The SquirrelMail Project Team
18 * @license http://opensource.org/licenses/gpl-license.php GNU Public License
19 * @version $Id$
20 * @package squirrelmail
21 * @subpackage templates
22 */
23
24 /** add required includes **/
25
26 /** extract template variables **/
27 extract($t);
28
29 /** Begin template **/
30 ?>
31 <div class="readHeaders">
32 <table cellspacing="0" class="spacer">
33 <tr>
34 <td>
35 </td>
36 </tr>
37 </table>
38 <table cellspacing="0" class="table2">
39 <?php
40 foreach ($headers_to_display as $field_name=>$value) {
41 if (empty($value)) {
42 # Skip enpty headers
43 continue;
44 }
45 ?>
46 <tr>
47 <td class="fieldName">
48 <?php echo $field_name; ?>:
49 </td>
50 <td class="fieldValue">
51 <?php echo $value; ?>
52 </td>
53 </tr>
54 <?php
55 }
56 if (!empty($plugin_output['read_body_header'])) echo $plugin_output['read_body_header'];
57 ?>
58 </table>
59 <table cellspacing="0" class="spacer">
60 <tr>
61 <td>
62 </td>
63 </tr>
64 </table>
65 </div>