-if ($count_special_folders < count($boxes)) {
- echo addForm('folders_subscribe.php?method=unsub')
- . "<tt><select name=\"mailbox[]\" multiple=\"multiple\" size=\"8\">\n";
- for ($i = 0; $i < count($boxes); $i++) {
- $use_folder = true;
- if ((strtolower($boxes[$i]["unformatted"]) != "inbox") &&
- ($boxes[$i]["unformatted"] != $trash_folder) &&
- ($boxes[$i]["unformatted"] != $sent_folder) &&
- ($boxes[$i]["unformatted"] != $draft_folder)) {
- $box = htmlspecialchars($boxes[$i]["unformatted-dm"]);
- $box2 = str_replace(' ', ' ',
- htmlspecialchars(imap_utf7_decode_local($boxes[$i]["unformatted-disp"])));
- echo " <option value=\"$box\">$box2</option>\n";
+ /** UNSUBSCRIBE FOLDERS **/
+ echo html_tag( 'table', '', 'center', '', 'width="70%" cellpadding="4" cellspacing="0" border="0"' ) .
+ html_tag( 'tr',
+ html_tag( 'td', '<b>' . _("Unsubscribe") . '/' . _("Subscribe") . '</b>', 'center', $color[9], 'colspan="2"' )
+ ) .
+ html_tag( 'tr' ) .
+ html_tag( 'td', '', 'center', $color[0], 'width="50%"' );
+
+ if ($count_special_folders < count($boxes)) {
+ echo addForm('folders_subscribe.php?method=unsub')
+ . "<tt><select name=\"mailbox[]\" multiple=\"multiple\" size=\"8\">\n";
+ for ($i = 0; $i < count($boxes); $i++) {
+ $use_folder = true;
+ if ((strtolower($boxes[$i]["unformatted"]) != "inbox") &&
+ ($boxes[$i]["unformatted"] != $trash_folder) &&
+ ($boxes[$i]["unformatted"] != $sent_folder) &&
+ ($boxes[$i]["unformatted"] != $draft_folder)) {
+ $box = htmlspecialchars($boxes[$i]["unformatted-dm"]);
+ $box2 = str_replace(' ', ' ',
+ htmlspecialchars(imap_utf7_decode_local($boxes[$i]["unformatted-disp"])));
+ echo " <option value=\"$box\">$box2</option>\n";
+ }
+ }
+ echo "</select></tt><br /><br />\n"
+ . '<input type="submit" value="'
+ . _("Unsubscribe")
+ . "\" />\n"
+ . "</form></td>\n";
+ } else {
+ echo _("No folders were found to unsubscribe from!") . '</td>';