stylesheet that is used when using the browser's print (or print preview) function.
A problem is that due to the frames, it won't work if selecting File -> Print because
this will print webmail.php instead of read_body. To see it in action, open read_body
on its own and use File -> Print Preview.
It would be nice if this could replace the printer_friendly function over time, because
it's purely css based and thus doesn't require extra code. For that we need to finetune
the sheet and most importantly, conquer the frames-problem in some smart way.
git-svn-id: https://svn.code.sf.net/p/squirrelmail/code/trunk/squirrelmail@13121
7612ce4b-ef26-0410-bec9-
ea0150e637f0
--- /dev/null
+/* printer friendly style, currently only targeted at read_body */
+
+#page_header, .readMenuBar, .spacer, form, #listcommands, .field_Options { display: none; }
+
+
+
+
$header_tags .= $oTemplate->fetch_right_to_left_stylesheet_link();
}
+ // 5. Printer friendly stylesheet
+ $header_tags .= create_css_link($base_uri . 'css/print.css', 'printerfriendly', false, 'print');
+
if ($squirrelmail_language == 'ja_JP') {
/*
* force correct detection of charset, when browser does not follow
?>
-<tr>
+<tr id="listcommands">
<td class="fieldName">
<b><?php echo _("Mailing List"); ?>:</b>
</td>
continue;
}
?>
- <tr>
+ <tr class="field_<?php echo $field_name; ?>">
<td class="fieldName">
<?php echo $field_name; ?>:
</td>
continue;
}
?>
- <tr>
+ <tr class="field_<?php echo $field_name; ?>">
<td class="fieldName">
<?php
if ($first_time)