-/** RENAMING FOLDERS **/
-echo html_tag( 'tr',
- html_tag( 'td', '<b>' . _("Rename a Folder") . '</b>', 'center', $color[9] )
- ) .
- html_tag( 'tr' ) .
- html_tag( 'td', '', 'center', $color[0] );
-
-if ($count_special_folders < count($boxes)) {
- echo addForm('folders_rename_getname.php')
- . "<TT><SELECT NAME=old>\n"
- . ' <OPTION VALUE="">[ ' . _("Select a folder") . " ]</OPTION>\n";
-
- // use existing IMAP connection, we have no special values to show,
- // but we do include values to skip. Use the pre-created $boxes to save an IMAP query.
- // send NULL for the flag - ALL folders are eligible for rename!
- // use long format to make sure folder names make sense when parents may be missing.
- echo sqimap_mailbox_option_list($imapConnection, 0, $skip_folders, $boxes, NULL, true);
-
- echo "</SELECT></TT>\n".
- "<input type=SUBMIT VALUE=\"".
- _("Rename").
- "\">\n".
- "</FORM></td></tr>\n";
-} else {
- echo _("No folders found") . '<br><br></td></tr>';
-}
-$boxes_sub = $boxes;
-
-echo html_tag( 'tr',
- html_tag( 'td', ' ', 'left', $color[4] )
- ) ."\n";
-
-/** DELETING FOLDERS **/
-echo html_tag( 'tr',
- html_tag( 'td', '<b>' . _("Delete Folder") . '</b>', 'center', $color[9] )
- ) .
- html_tag( 'tr' ) .
- html_tag( 'td', '', 'center', $color[0] );
-
-if ($count_special_folders < count($boxes)) {
- echo addForm('folders_delete.php')
- . "<TT><SELECT NAME=mailbox>\n"
- . ' <OPTION VALUE="">[ ' . _("Select a folder") . " ]</OPTION>\n";
-
- // send NULL for the flag - ALL folders are eligible for delete (except what we've got in skiplist)
- // use long format to make sure folder names make sense when parents may be missing.
- echo sqimap_mailbox_option_list($imapConnection, 0, $skip_folders, $boxes, NULL, true);
-
- echo "</SELECT></TT>\n"
- . '<input type=SUBMIT VALUE="'
- . _("Delete")
- . "\">\n"
- . "</form></td></tr>\n";
-} else {
- echo _("No folders found") . "<br><br></td></tr>";
-}