| | |
| | | | program/steps/settings/edit_folder.inc | |
| | | | | |
| | | | This file is part of the Roundcube Webmail client | |
| | | | Copyright (C) 2005-2009, The Roundcube Dev Team | |
| | | | Copyright (C) 2005-2013, The Roundcube Dev Team | |
| | | | | |
| | | | Licensed under the GNU General Public License version 3 or | |
| | | | any later version with exceptions for skins & plugins. | |
| | |
| | | | Author: Aleksander Machniak <alec@alec.pl> | |
| | | +-----------------------------------------------------------------------+ |
| | | */ |
| | | |
| | | // register UI objects |
| | | $OUTPUT->add_handlers(array( |
| | | 'folderdetails' => 'rcmail_folder_form', |
| | | )); |
| | | |
| | | $OUTPUT->add_label('nonamewarning'); |
| | | |
| | | $OUTPUT->send('folderedit'); |
| | | |
| | | |
| | | // WARNING: folder names in UI are encoded with RCUBE_CHARSET |
| | | |
| | |
| | | $select = $RCMAIL->folder_selector(array( |
| | | 'name' => '_parent', |
| | | 'noselection' => '---', |
| | | 'realnames' => false, |
| | | 'maxlength' => 150, |
| | | 'unsubscribed' => true, |
| | | 'skip_noinferiors' => true, |
| | | 'exceptions' => $exceptions, |
| | | 'additional' => strlen($selected) ? array($selected) : null, |
| | | )); |
| | | |
| | | $form['props']['fieldsets']['location']['content']['path'] = array( |
| | |
| | | $value = (int) $_POST['_viewmode']; |
| | | } |
| | | else if (strlen($mbox_imap)) { |
| | | $a_threaded = $RCMAIL->config->get('message_threading', array()); |
| | | $value = (int) isset($a_threaded[$mbox_imap]); |
| | | $a_threaded = $RCMAIL->config->get('message_threading', array()); |
| | | $default_mode = $RCMAIL->config->get('default_list_mode', 'list'); |
| | | |
| | | $value = (int) (isset($a_threaded[$mbox_imap]) ? $a_threaded[$mbox_imap] : $default_mode == 'threads'); |
| | | } |
| | | |
| | | $form['props']['fieldsets']['settings']['content']['viewmode'] = array( |
| | |
| | | foreach ($tab['fieldsets'] as $fieldset) { |
| | | $subcontent = rcmail_get_form_part($fieldset, $attrib); |
| | | if ($subcontent) { |
| | | $content .= html::tag('fieldset', null, html::tag('legend', null, rcube::Q($fieldset['name'])) . $subcontent) ."\n"; |
| | | $subcontent = html::tag('legend', null, rcube::Q($fieldset['name'])) . $subcontent; |
| | | $content .= html::tag('fieldset', null, $subcontent) ."\n"; |
| | | } |
| | | } |
| | | } |
| | |
| | | |
| | | return $content; |
| | | } |
| | | |
| | | |
| | | //$OUTPUT->set_pagetitle($RCMAIL->gettext('folders')); |
| | | |
| | | // register UI objects |
| | | $OUTPUT->add_handlers(array( |
| | | 'folderdetails' => 'rcmail_folder_form', |
| | | )); |
| | | |
| | | $OUTPUT->add_label('nonamewarning'); |
| | | |
| | | $OUTPUT->send('folderedit'); |