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('../src/load_prefs.php');
19 displayPageHeader($color, 'None');
22 '<TABLE WIDTH="100%" BORDER=0 CELLSPACING=0 CELLPADDING=2 ALIGN=CENTER>' .
24 '<TR><TD BGCOLOR="' . $color[0] . '">' .
26 _("Viewing an image attachment") . " - ";
27 if (isset($where) && isset($what)) {
29 echo '<a href="../src/read_body.php?mailbox=' . urlencode($mailbox) .
30 '&passed_id=' . $passed_id . '&where=' . urlencode($where) .
31 '&what=' . urlencode($what). '">' . _("View message") . '</a>';
33 echo '<a href="../src/read_body.php?mailbox=' . urlencode($mailbox) .
34 '&passed_id=' . $passed_id . '&startMessage=' . $startMessage .
35 '&show_more=0">' . _("View message") . '</a>';
38 $DownloadLink = '../src/download.php?passed_id=' . $passed_id .
39 '&mailbox=' . urlencode($mailbox) .
40 '&passed_ent_id=' . $passed_ent_id . '&absolute_dl=true';
42 echo '</b></td></tr>' . "\n" .
43 '<tr><td align=center><A HREF="' . $DownloadLink . '">' .
44 _("Download this as a file") .
45 '</A></B><BR> ' . "\n" .
46 '</TD></TR></TABLE>' . "\n" .
48 '<TABLE BORDER=0 CELLSPACING=0 CELLPADDING=2 ALIGN=CENTER>' . "\n" .
49 '<TR><TD BGCOLOR="' . $color[4] . '">' .
50 '<img src="' . $DownloadLink . '">' .
52 '</TD></TR></TABLE>' . "\n";
53 '</body></html>' . "\n";