Happy New Year
[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 *
6edf1132 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.
3cb5a0bb 15 *
16 *
c4faef33 17 * @copyright 1999-2020 The SquirrelMail Project Team
3cb5a0bb 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 **/
27extract($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 ?>
2ad37738 46 <tr class="field_<?php echo $field_name; ?>">
3cb5a0bb 47 <td class="fieldName">
48 <?php echo $field_name; ?>:
49 </td>
50 <td class="fieldValue">
51 <?php echo $value; ?>
52 </td>
53 </tr>
4aada959 54<?php
3cb5a0bb 55 }
4aada959 56 if (!empty($plugin_output['read_body_header'])) echo $plugin_output['read_body_header'];
57?>
3cb5a0bb 58</table>
59<table cellspacing="0" class="spacer">
60 <tr>
61 <td>
62 </td>
63 </tr>
64</table>
4aada959 65</div>