$url = 'compose.php?';
} else {
$url = "../plugins/listcommands/mailout.php?action=$cmd&";
+
}
-
- $url .= 'mailbox=' . urlencode($mailbox)
- . '&send_to=' . $purl['path'];
+ $url .= '&send_to=' . $purl['path'];
if (isset($purl['query'])) {
$url .= '&' . $purl['query'];
}
if ($compose_new_win == '1') {
- $output[] = "<a href=\"javascript:void(0)\" onclick=\"comp_in_new(false,'$url')\">" . $fieldsdescr[$cmd] . '</A>';
+ $output[] = "<a href=\"javascript:void(0)\" onclick=\"comp_in_new('$url')\">" . $fieldsdescr[$cmd] . '</A>';
}
else {
$output[] = '<A HREF="' . $url . '">' . $fieldsdescr[$cmd] . '</A>';
}
if ($cmd == 'Post') {
- $url .= '&reply_subj=' . urlencode($subject)
- . '&reply_id=' . $passed_id
- . '&ent_num=' . $ent_num
- . '&mailprio=' . $priority_level;
+ $url .= '&passed_id='.$passed_id.
+ '&mailbox='.urlencode($mailbox).
+ (isset($passed_ent_id)?'&passed_ent_id='.$passed_ent_id:'');
+ $url .= '&action=reply';
if ($compose_new_win == '1') {
- $output[] = "<A HREF=\"javascript:void(0)\" onClick=\"comp_in_new(false,'$url')\">" . $fieldsdescr['Reply'] . '</A>';
+ $output[] = "<A HREF=\"javascript:void(0)\" onClick=\"comp_in_new('$url')\">" . $fieldsdescr['Reply'] . '</A>';
}
else {
$output[] = '<A HREF="' . $url . '">' . $fieldsdescr['Reply'] . '</A>';
}
if (count($output) > 0) {
- echo html_tag( 'tr',
- html_tag( 'td', str_replace(' ', ' ', _("Mailing List:")), 'right', $color[0]) .
- html_tag( 'td',
- '<small>' . implode(' | ', $output) . '</small>' ,
- 'left', $color[0], 'width="100%" colspan="2"')
- );
+ echo '<table width="100%" cellpadding="3" cellspacing="0" align="center"'.
+ ' border="0" bgcolor="'.$color[0].'">'. "\n";
+ echo '<tr>';
+ echo html_tag( 'td', '<b>'._("Mailing List").': </b>', 'right', $color[0], 'valign="top" width="20%"') . "\n";
+ echo html_tag( 'td',
+ '<small>' . implode(' | ', $output) . '</small>', 'left', $color[0], 'valign="top" width="80%"');
+ echo "\n</tr>";
+ echo '</table>'."\n";
}
}