CSS for printer-friendly templates
[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 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 **/
26 extract($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>
53 <?php
54 }
55 ?>
56 <tr>
57 <td>
58 <?php if(!empty($plugin_output['read_body_header'])) echo $plugin_output['read_body_header']; ?>
59 </td>
60 </tr>
61 </table>
62 <table cellspacing="0" class="spacer">
63 <tr>
64 <td>
65 </td>
66 </tr>
67 </table>
68 </div>