6 * Copyright (c) 1999-2002 The SquirrelMail Project Team
7 * Licensed under the GNU GPL. For full terms see the file COPYING.
9 * This file shows an attached image
14 require_once('../src/validate.php');
15 require_once('../functions/date.php');
16 require_once('../functions/page_header.php');
17 require_once('../functions/html.php');
18 require_once('../src/load_prefs.php');
20 displayPageHeader($color, 'None');
23 '<TABLE WIDTH="100%" BORDER=0 CELLSPACING=0 CELLPADDING=2 ALIGN=CENTER>' .
25 '<TR><TD BGCOLOR="' . $color[0] . '">' .
27 _("Viewing an image attachment") . " - ";
29 $msg_url = 'read_body.php?' . $QUERY_STRING;
30 $msg_url = set_url_var($msg_url, 'ent_id', 0);
31 echo '<a href="'.$msg_url.'">'. _("View message") . '</a>';
34 $DownloadLink = '../src/download.php?passed_id=' . $passed_id .
35 '&mailbox=' . urlencode($mailbox) .
36 '&ent_id=' . $ent_id . '&absolute_dl=true';
38 echo '</b></td></tr>' . "\n" .
39 '<tr><td align=center><A HREF="' . $DownloadLink . '">' .
40 _("Download this as a file") .
41 '</A></B><BR> ' . "\n" .
42 '</TD></TR></TABLE>' . "\n" .
44 '<TABLE BORDER=0 CELLSPACING=0 CELLPADDING=2 ALIGN=CENTER>' . "\n" .
45 '<TR><TD BGCOLOR="' . $color[4] . '">' .
46 '<img src="' . $DownloadLink . '">' .
48 '</TD></TR></TABLE>' . "\n";
49 '</body></html>' . "\n";