| | |
| | | <?php |
| | | |
| | | /* |
| | | /** |
| | | +-----------------------------------------------------------------------+ |
| | | | program/steps/settings/edit_folder.inc | |
| | | | | |
| | |
| | | $out = "$form_start\n"; |
| | | |
| | | // Create form output |
| | | foreach ($form as $tab) { |
| | | foreach ($form as $idx => $tab) { |
| | | if (!empty($tab['fieldsets']) && is_array($tab['fieldsets'])) { |
| | | $content = ''; |
| | | foreach ($tab['fieldsets'] as $fieldset) { |
| | |
| | | $content = rcmail_get_form_part($tab, $attrib); |
| | | } |
| | | |
| | | if ($content && sizeof($form) > 1) { |
| | | if ($idx != 'props') { |
| | | $out .= html::tag('fieldset', null, html::tag('legend', null, rcube::Q($tab['name'])) . $content) ."\n"; |
| | | } |
| | | else { |
| | |
| | | |
| | | function rcmail_get_form_part($form, $attrib = array()) |
| | | { |
| | | global $RCMAIL; |
| | | |
| | | $content = ''; |
| | | |
| | | if (is_array($form['content']) && !empty($form['content'])) { |
| | | $table = new html_table(array('cols' => 2)); |
| | | foreach ($form['content'] as $col => $colprop) { |
| | | $colprop['id'] = '_'.$col; |
| | | $label = !empty($colprop['label']) ? $colprop['label'] : $RCMAIL->gettext($col); |
| | | $label = $colprop['label'] ?: $RCMAIL->gettext($col); |
| | | |
| | | $table->add('title', html::label($colprop['id'], rcube::Q($label))); |
| | | $table->add(null, $colprop['value']); |