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