|
@@ -495,12 +495,6 @@ function formatMenubar($mailbox, $passed_id, $passed_ent_id, $message, $mbx_resp
|
|
$double_delimiter = ' ';
|
|
$double_delimiter = ' ';
|
|
$urlMailbox = urlencode($mailbox);
|
|
$urlMailbox = urlencode($mailbox);
|
|
|
|
|
|
- $comp_uri = 'src/compose.php' .
|
|
|
|
- '?passed_id=' . $passed_id .
|
|
|
|
- '&mailbox=' . $urlMailbox .
|
|
|
|
- '&startMessage=' . $startMessage .
|
|
|
|
- (isset($passed_ent_id)?'&passed_ent_id='.$passed_ent_id:'');
|
|
|
|
-
|
|
|
|
$msgs_url = $base_uri . 'src/';
|
|
$msgs_url = $base_uri . 'src/';
|
|
|
|
|
|
// BEGIN NAV ROW - PREV/NEXT, DEL PREV/NEXT, LINKS TO INDEX, etc.
|
|
// BEGIN NAV ROW - PREV/NEXT, DEL PREV/NEXT, LINKS TO INDEX, etc.
|
|
@@ -620,56 +614,57 @@ function formatMenubar($mailbox, $passed_id, $passed_ent_id, $message, $mbx_resp
|
|
// BEGIN MENU ROW - DELETE/REPLY/FORWARD/MOVE/etc.
|
|
// BEGIN MENU ROW - DELETE/REPLY/FORWARD/MOVE/etc.
|
|
$menu_row = '<tr bgcolor="'.$color[9].'"><td><small>';
|
|
$menu_row = '<tr bgcolor="'.$color[9].'"><td><small>';
|
|
|
|
|
|
|
|
+ // Start form for reply/reply all/forward..
|
|
|
|
+ $comp_uri = $base_uri.'src/compose.php' .
|
|
|
|
+ '?passed_id=' . $passed_id .
|
|
|
|
+ '&mailbox=' . $urlMailbox .
|
|
|
|
+ '&startMessage=' . $startMessage .
|
|
|
|
+ (isset($passed_ent_id) ? '&passed_ent_id='.$passed_ent_id : '');
|
|
|
|
+ $menu_row .= '<form action="'.$comp_uri.'" method="post"><small>';
|
|
|
|
+
|
|
// If Draft folder - create Resume link
|
|
// If Draft folder - create Resume link
|
|
if (($mailbox == $draft_folder) && ($save_as_draft)) {
|
|
if (($mailbox == $draft_folder) && ($save_as_draft)) {
|
|
- $comp_alt_uri = $comp_uri . '&smaction=draft';
|
|
|
|
|
|
+ $new_button = 'draft';
|
|
$comp_alt_string = _("Resume Draft");
|
|
$comp_alt_string = _("Resume Draft");
|
|
} else if (handleAsSent($mailbox)) {
|
|
} else if (handleAsSent($mailbox)) {
|
|
// If in Sent folder, edit as new
|
|
// If in Sent folder, edit as new
|
|
- $comp_alt_uri = $comp_uri . '&smaction=edit_as_new';
|
|
|
|
|
|
+ $new_button = 'edit_as_new';
|
|
$comp_alt_string = _("Edit Message as New");
|
|
$comp_alt_string = _("Edit Message as New");
|
|
}
|
|
}
|
|
-
|
|
|
|
// Show Alt URI for Draft/Sent
|
|
// Show Alt URI for Draft/Sent
|
|
- if (isset($comp_alt_uri)) {
|
|
|
|
- $menu_row .= makeComposeLink($comp_alt_uri, $comp_alt_string);
|
|
|
|
- $menu_row .= $topbar_delimiter . "\n";
|
|
|
|
- }
|
|
|
|
|
|
+ if (isset($comp_alt_string))
|
|
|
|
+ $menu_row .= getButton('SUBMIT', $new_button, $comp_alt_string) . "\n";
|
|
|
|
|
|
- $comp_action_uri = $comp_uri . '&smaction=reply';
|
|
|
|
- $menu_row .= makeComposeLink($comp_action_uri, _("Reply")) . "\n";
|
|
|
|
|
|
+ $menu_row .= getButton('SUBMIT', 'smaction_reply', _("Reply"));
|
|
|
|
+ $menu_row .= ' '.getButton('SUBMIT', 'smaction_reply_all', _("Reply All"));
|
|
|
|
+ $menu_row .= ' '.getButton('SUBMIT', 'smaction_forward', _("Forward"));
|
|
|
|
|
|
- $comp_action_uri = $comp_uri . '&smaction=reply_all';
|
|
|
|
- $menu_row .= $topbar_delimiter;
|
|
|
|
- $menu_row .= makeComposeLink($comp_action_uri, _("Reply All")) . "\n";
|
|
|
|
|
|
+ if ($enable_forward_as_attachment)
|
|
|
|
+ $menu_row .= '<input type="checkbox" name="smaction_attache">' . _("Attachment");
|
|
|
|
|
|
|
|
+ $menu_row .= '</form>'.' ';
|
|
|
|
|
|
- $comp_action_uri = $comp_uri . '&smaction=forward';
|
|
|
|
- $menu_row .= $topbar_delimiter;
|
|
|
|
- $menu_row .= makeComposeLink($comp_action_uri, _("Forward")) . "\n";
|
|
|
|
-
|
|
|
|
- if ($enable_forward_as_attachment) {
|
|
|
|
- $comp_action_uri = $comp_uri . '&smaction=forward_as_attachment';
|
|
|
|
- $menu_row .= $topbar_delimiter;
|
|
|
|
- $menu_row .= makeComposeLink($comp_action_uri, _("Forward as Attachment")) . "\n";
|
|
|
|
- }
|
|
|
|
|
|
+ // Form for deletion
|
|
|
|
+ $delete_url = $base_uri . 'src/delete_message.php?mailbox=' . $urlMailbox;
|
|
|
|
+ $menu_row .= '<form action="'.$delete_url.'" method="post" style="display: inline"><small>';
|
|
|
|
|
|
- $delete_link = _("Delete");
|
|
|
|
if (!(isset($passed_ent_id) && $passed_ent_id)) {
|
|
if (!(isset($passed_ent_id) && $passed_ent_id)) {
|
|
- $delete_url = $base_uri . 'src/delete_message.php?mailbox=' . $urlMailbox .
|
|
|
|
- '&message=' . $passed_id . '&';
|
|
|
|
|
|
+ $menu_row .= '<input type="hidden" name="message" value="'.$passed_id.'" />';
|
|
|
|
|
|
if ($where && $what) {
|
|
if ($where && $what) {
|
|
- $delete_url .= 'where=' . urlencode($where) . '&what=' . urlencode($what);
|
|
|
|
|
|
+ $menu_row .= '<input type="hidden" name="where" value="'.$where.'" />';
|
|
|
|
+ $menu_row .= '<input type="hidden" name="what" value="'.$what.'" />';
|
|
} else {
|
|
} else {
|
|
- $delete_url .= 'sort=' . $sort . '&startMessage=' . $startMessage;
|
|
|
|
|
|
+ $menu_row .= '<input type="hidden" name="sort" value="'.$sort.'" />';
|
|
|
|
+ $menu_row .= '<input type="hidden" name="startMessage" value="'.$startMessage.'" />';
|
|
}
|
|
}
|
|
- $delete_link = '<a href="' . $delete_url . '">' . $delete_link . '</a>';
|
|
|
|
- $delete_link .= ' (<a href="' . $delete_url.'&bypass_trash=1">'
|
|
|
|
- ._("Bypass Trash").'</a>)';
|
|
|
|
-
|
|
|
|
|
|
+ $menu_row .= getButton('SUBMIT', 'delete', _("Delete"));
|
|
|
|
+ $menu_row .= '<input type="checkbox" name="bypass_trash">' . _("Bypass Trash");
|
|
}
|
|
}
|
|
- $menu_row .= $topbar_delimiter.$delete_link . "\n";
|
|
|
|
|
|
+ else
|
|
|
|
+ $menu_row .= getButton('SUBMIT', 'delete', _("Delete"), FALSE) . "\n"; // delete button is disabled
|
|
|
|
+
|
|
|
|
+ $menu_row .= '</form>' . "\n";
|
|
|
|
|
|
|
|
|
|
// Add top move link
|
|
// Add top move link
|