$tmp[] = '</td></tr>';
}
- $hdrs[] = array('name' => ($show_parts == 'all') ? _("Parts") : _("Attachments"), 'val' => '<table>' . implode('', $tmp) . '</table>', 'i' => (++$i % 2));
-}
-
-if (!empty($conf['print']['add_printedby'])) {
- // TODO
- //$hdrs[] = array('name' => _("Printed By"), 'val' => $user_identity->getFullname() ? $user_identity->getFullname() : Horde_Auth::getAuth(), 'i' => (++$i % 2));
-}
+ $hdrs[] = array(
+ 'name' => ($show_parts == 'all') ? _("Parts") : _("Attachments"),
+ 'val' => '<table>' . implode('', $tmp) . '</table>',
+ 'i' => (++$i % 2)
+ );
+}
+
+//if (!empty($conf['print']['add_printedby'])) {
+ $hdrs[] = array(
+ 'class' => 'printedby',
+ 'name' => _("Printed By"),
+ 'val' => $user_identity->getFullname() ? $user_identity->getFullname() : Horde_Auth::getAuth(),
+ 'i' => (++$i % 2)
+ );
+//}
$m_template->set('headers', $hdrs);
$m_template->set('msgtext', $msgtext);
<div id="msgheaders">
<table cellspacing="0">
<loop:headers>
- <tr>
+ <tr<if:headers.class> class="<tag:headers.class />"</if:headers.class>>
<td class="item<tag:headers.i /> rightAlign nowrap" valign="top"><strong><tag:headers.name />:</strong> </td>
<td class="item<tag:headers.i /> msgheader"><tag:headers.val /></td>
</tr>
margin-left: 3px;
}
+/* Message view styling. */
+#msgheaders tr.printedby {
+ display: none;
+}
+
/* Newmail alerts. */
#newmail {
padding: 1em;
}
-
-
/* Print CSS rules. */
@media print {
body {
display: block !important;
}
+ #msgheaders tr.printedby {
+ display: table-row !important;
+ }
+
.msgfullread .msgBody {
border-top: 1px solid silver;
}