From: stevetruckstuff Date: Thu, 19 Oct 2006 16:49:45 +0000 (+0000) Subject: Template for viewing text attachments. X-Git-Url: https://vcs.fsf.org/?a=commitdiff_plain;h=37683fa0c85a35c9c8c5580afd631327ac725886;p=squirrelmail.git Template for viewing text attachments. git-svn-id: https://svn.code.sf.net/p/squirrelmail/code/trunk/squirrelmail@11929 7612ce4b-ef26-0410-bec9-ea0150e637f0 --- diff --git a/src/view_text.php b/src/view_text.php index 948420e0..07ba904a 100644 --- a/src/view_text.php +++ b/src/view_text.php @@ -77,27 +77,13 @@ if ($type1 == 'html' || (isset($override_type1) && $override_type1 == 'html')) } displayPageHeader($color, 'None'); -?> -
-
-' . _("View message") . ''; -?> -
-' . _("View Unsafe Images") . ' | '; -} -echo '' . _("Download this as a file") . ''; -?> -

- -
-
-
- -
-assign('view_message_href', $msg_url); +$oTemplate->assign('download_href', $dwnld_url); +$oTemplate->assign('view_unsafe_image_href', $ishtml ? $unsafe_url : ''); +$oTemplate->assign('body', $body); + +$oTemplate->display('view_text.tpl'); + $oTemplate->display('footer.tpl'); -?> +?> \ No newline at end of file diff --git a/templates/default/css/default.css b/templates/default/css/default.css index c18d2463..3cd855a8 100644 --- a/templates/default/css/default.css +++ b/templates/default/css/default.css @@ -1044,3 +1044,29 @@ div.htmlIframe iframe { width:100%; } +div.viewText table.table1 { + width: 100%; +} + +div.viewText td.header2 a { + font-size: smaller; + font-weight: normal; +} + +div.viewText td.actions { + text-align: center; + padding-top: 4px; + padding-bottom: 4px; +} + +div.viewText td.text { + padding: 10px; + background-color: #ffffff /* __COLOR4__ */; +} + +div.viewText td.spacer { + padding: 3px; + background-color: #DCDCDC /* __COLOR0__ */; +} + + diff --git a/templates/default/view_text.tpl b/templates/default/view_text.tpl new file mode 100644 index 00000000..10c432d0 --- /dev/null +++ b/templates/default/view_text.tpl @@ -0,0 +1,57 @@ + +
+ + + + + + + + + + + + + +
+ - + +
+ + | + + +
+
+ +
+
\ No newline at end of file