| 1 | <?php |
| 2 | /** |
| 3 | * view_header.tpl |
| 4 | * |
| 5 | * Template for displaying the full header of a message |
| 6 | * |
| 7 | * The following variables are available in this template: |
| 8 | * $view_message_href - URL to navigate back to the full message |
| 9 | * $headers - Array containing all headers from the message. Each element |
| 10 | * represents a separate header and contains the following fields: |
| 11 | * |
| 12 | * $el['Header'] - The name of the header |
| 13 | * $el['Value'] - The value of the header. |
| 14 | * |
| 15 | * All headers have been scrubbed by Squirrelmail already. |
| 16 | * |
| 17 | * @copyright 1999-2012 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="viewHeader"> |
| 32 | <table cellspacing="0" class="table1"> |
| 33 | <tr> |
| 34 | <td class="header2"> |
| 35 | <?php echo _("Viewing Full Header"); ?> - |
| 36 | <small><a href="<?php echo $view_message_href; ?>"><?php echo _("View message"); ?></a></small> |
| 37 | </td> |
| 38 | </tr> |
| 39 | <tr> |
| 40 | <td class="headers"> |
| 41 | <?php |
| 42 | foreach ($headers as $header) { |
| 43 | ?> |
| 44 | <span class="headerName"><?php echo $header['Header']; ?></span> <span class="headerValue"><?php echo $header['Value']; ?></span> |
| 45 | <?php |
| 46 | } |
| 47 | ?> |
| 48 | </td> |
| 49 | </tr> |
| 50 | </table> |
| 51 | </div> |