- Timestamp:
- 06/13/11 10:35:40 (13 years ago)
- Location:
- branches/2.2.0.1/expressoMail1_2
- Files:
-
- 2 added
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
branches/2.2.0.1/expressoMail1_2/js/main.js
r4574 r4602 2183 2183 2184 2184 var folder= Element('border_id_0').innerHTML; 2185 var body = Element('divScrollMain_'+numBox).innerHTML; 2185 var thead = Element('divScrollHead_'+numBox).firstChild.firstChild.innerHTML; 2186 var tbody = Element('divScrollMain_'+numBox).firstChild.firstChild.innerHTML; 2186 2187 var print_width = screen.width - 200; 2187 2188 var x = ((screen.width - print_width) / 2); 2188 2189 var y = ((screen.height - 400) / 2) - 35; 2189 2190 var window_print = window.open('','ExpressoMail','width='+print_width+',height=400,resizable=yes,scrollbars=yes,left='+x+',top='+y); 2190 var seekDot = /\<img /gi; 2191 body = body.replace(seekDot, "<img style='display:none' "); 2192 seekDot = /\<input /gi; 2193 body = body.replace(seekDot, "<input style='display:none' "); 2191 seekDot = /width="24"/gi; 2192 thead = thead.replace(seekDot, "style='display:none'"); 2193 tbody = tbody.replace(seekDot, "style='display:none'"); 2194 seekDot = /width="16"/gi; 2195 thead = thead.replace(seekDot, "style='display:none'"); 2196 tbody = tbody.replace(seekDot, "style='display:none'"); 2197 seekDot = /width="12"/gi; 2198 thead = thead.replace(seekDot, "style='display:none'"); 2199 tbody = tbody.replace(seekDot, "style='display:none'"); 2194 2200 2195 2201 while (1){ 2196 2202 try{ 2197 var html = '<br>'; 2198 html += "<h4>ExpressoLivre - ExpressoMail</h4>"; 2199 html += folder+"<hr>"; 2200 2201 window_print.document.body.innerHTML = html + '<blockquote><font size="2">' + 2202 '<table style="font-size:12" width="'+(is_ie ? "94%" : "100%" )+'">' + 2203 '<TD width="25%" align="center">'+get_lang("Who")+'</TD>' + 2204 '<TD align="center" width="'+(is_ie ? "50%" : "55%" )+'">'+get_lang("Subject")+'</TD>' + 2205 '<TD align="center" width="11%">'+get_lang("Date")+'</TD>' + 2206 '<TD align="center" width="'+(is_ie ? "10%" : "9%" )+'">'+get_lang("Size")+'</TD></TR></table>' 2207 + body + '</font></blockquote>'; 2203 window_print.document.open(); 2204 var html = '<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01//EN" "http://www.w3.org/TR/html4/strict.dtd"><html>' 2205 + '<head><link rel="stylesheet" type="text/css" href="templates/'+template+'/print.css"></head>' 2206 + '<body class="print-all-messages"><h1>ExpressoLivre - ExpressoMail</h1>' 2207 + '<h2>'+folder+'</h2><hr/><blockquote><font size="2">' 2208 + '<table width="100%" cellpadding="0" cellspacing="0">' 2209 + '<thead>' + thead + '</thead><tbody>' + tbody + '</tbody>' 2210 + '</table></font></blockquote></body></html>'; 2211 window_print.document.write(html); 2212 window_print.document.close(); 2208 2213 break; 2209 2214 }
Note: See TracChangeset
for help on using the changeset viewer.