Some sender addresses were not showing if no personal part
[squirrelmail.git] / templates / default / view_text.tpl
CommitLineData
37683fa0 1<?php
2/**
3 * view_text.tpl
4 *
5 * Tempalte for displaying a simple .txt or .html attachment
6 *
7 * The following variables are available in this template:
8 * $view_message_href - URL to navigate back to the main message
9 * $view_unsafe_image_href - URL to toggle viewing unsafe images
10 * $download_href - URL to download the attachment as a file
11 * $body - Body of the attachment to be displayed
12 *
13 * @copyright &copy; 1999-2006 The SquirrelMail Project Team
14 * @license http://opensource.org/licenses/gpl-license.php GNU Public License
15 * @version $Id$
16 * @package squirrelmail
17 * @subpackage templates
18 */
19
20/** add required includes **/
21
22/** extract template variables **/
23extract($t);
24
25/** Begin template **/
26?>
27<div class="viewText">
28<table cellspacing="0" class="table1">
29 <tr>
30 <td class="header2">
31 <?php echo _("Viewing a text attachment"); ?> -
32 <a href="<?php echo $view_message_href; ?>"><?php echo _("View message"); ?></a>
33 </td>
34 </tr>
35 <tr>
36 <td class="actions">
37 <?php
38 if (!empty($view_unsafe_image_href)) {
39 ?>
40 <a href="<?php echo $view_unsafe_image_href; ?>"><?php echo _("View Unsafe Images"); ?></a> |
41 <?php
42 }
43 ?>
44 <a href="<?php echo $download_href; ?>"><?php echo _("Download this as a file"); ?></a>
45 </td>
46 </tr>
47 <tr>
48 <td class="spacer">
49 </td>
50 </tr>
51 <tr>
52 <td class="text">
53 <?php echo $body; ?>
54 </td>
55 </tr>
56</table>
57</div>