put all the information returned from a select in the result
[squirrelmail.git] / src / download.php
index 89f7c0430310d840cd8959aa297acbe8c3bf3671..6a24ce183e72b1b4f4796def32fcb7b7d8a94efd 100644 (file)
@@ -41,17 +41,17 @@ function viewText($color, $body, $id, $entid, $mailbox, $type1, $wrap_at, $imapC
                 html_tag( 'td', 
                      '<b><center>' .
                      _("Viewing a text attachment") . ' - ' . $message_link_str . '</b></center>',
-                '', 'left', $color[0] )
+                'left', $color[0] )
             ) .
             html_tag( 'tr',
                 html_tag( 'td', 
                      '<center>' .
                      "<A HREF=\"../src/download.php?absolute_dl=true&passed_id=$id&passed_ent_id=$entid&mailbox=$urlmailbox\">".
                      _("Download this as a file").
-                     "</A></CENTER><BR>".
-                '', 'left' )
+                     "</A></CENTER><BR>",
+                'left' )
             ),
-        '', 'center', '', 'width="100%" border="0" cellspacing="0" cellpadding="2"' );
+        'center', '', 'width="100%" border="0" cellspacing="0" cellpadding="2"' );
 
     if ($type1 == 'html') {
         $msg  = sqimap_get_message($imapConnection, $id, $mailbox);    
@@ -62,9 +62,6 @@ function viewText($color, $body, $id, $entid, $mailbox, $type1, $wrap_at, $imapC
 
     flush();
 
-         //"<TABLE WIDTH=\"98%\" BORDER=0 CELLSPACING=0 CELLPADDING=2 ALIGN=CENTER><TR><TD BGCOLOR=\"$color[0]\">".
-        //"<TR><TD BGCOLOR=\"$color[4]\"><TT>";
-
         html_tag( 'table',
             html_tag( 'tr',
                 html_tag( 'td', '<tt>' . $body . '</tt>', 'left', $color[4] )