- echo ' <tr>' . "\n" .
- html_tag( 'td', '', 'right', $color[4], 'width="10%"' ) .
- _("From:") . '</td>' . "\n" .
- html_tag( 'td', '', 'left', $color[4], 'width="90%"' ) .
- ' '.
- addSelect('identity', $ident_list, $identity, TRUE);
-
- echo ' </td>' . "\n" .
- ' </tr>' . "\n";
- }
-
- echo ' <tr>' . "\n" .
- html_tag( 'td', '', 'right', $color[4], 'width="10%"' ) .
- _("To") . ':</td>' . "\n" .
- html_tag( 'td', '', 'left', $color[4], 'width="90%"' ) .
- addInput('send_to', $send_to, 60, 0, $onfocus_array). '<br />' . "\n" .
- ' </td>' . "\n" .
- ' </tr>' . "\n" .
- ' <tr>' . "\n" .
- html_tag( 'td', '', 'right', $color[4] ) .
- _("Cc") . ':</td>' . "\n" .
- html_tag( 'td', '', 'left', $color[4] ) .
- addInput('send_to_cc', $send_to_cc, 60, 0, $onfocus_array). '<br />' . "\n" .
- ' </td>' . "\n" .
- ' </tr>' . "\n" .
- ' <tr>' . "\n" .
- html_tag( 'td', '', 'right', $color[4] ) .
- _("Bcc") . ':</td>' . "\n" .
- html_tag( 'td', '', 'left', $color[4] ) .
- addInput('send_to_bcc', $send_to_bcc, 60, 0, $onfocus_array).'<br />' . "\n" .
- ' </td>' . "\n" .
- ' </tr>' . "\n" .
- ' <tr>' . "\n" .
- html_tag( 'td', '', 'right', $color[4] ) .
- _("Subject") . ':</td>' . "\n" .
- html_tag( 'td', '', 'left', $color[4] ) . "\n";
- echo ' '.addInput('subject', $subject, 60, 0, $onfocus_array).
- ' </td>' . "\n" .
- ' </tr>' . "\n\n";
+ }
+
+ $oTemplate->assign('identities', $identities);
+ $oTemplate->assign('identity_def', $identity);
+ $oTemplate->assign('input_onfocus', 'onfocus="'.join(' ', $onfocus_array).'"');
+
+ $oTemplate->assign('to', htmlspecialchars($send_to));
+ $oTemplate->assign('cc', htmlspecialchars($send_to_cc));
+ $oTemplate->assign('bcc', htmlspecialchars($send_to_bcc));
+ $oTemplate->assign('subject', htmlspecialchars($subject));
+
+ // access keys...
+ //
+ global $accesskey_compose_to, $accesskey_compose_cc,
+ $accesskey_compose_identity, $accesskey_compose_bcc,
+ $accesskey_compose_subject;
+ $oTemplate->assign('accesskey_compose_identity', $accesskey_compose_identity);
+ $oTemplate->assign('accesskey_compose_to', $accesskey_compose_to);
+ $oTemplate->assign('accesskey_compose_cc', $accesskey_compose_cc);
+ $oTemplate->assign('accesskey_compose_bcc', $accesskey_compose_bcc);
+ $oTemplate->assign('accesskey_compose_subject', $accesskey_compose_subject);
+
+ $oTemplate->display('compose_header.tpl');