reset($dirs); while (list($num, $dir) = each($dirs)) { if (!$dir['directory']) { continue; } ### # So we don't display // ### if ($dir['directory'] != '/') { $dir['directory'] .= '/'; } ### # No point in displaying the current directory, or a directory that doesn't exist ### if ($dir['directory'] . $dir['name'] != $path && $GLOBALS['phpgw']->vfs->file_exists(array('string' => $dir['directory'] . $dir['name'], 'relatives' => array(RELATIVE_NONE)))) { html_form_option($dir['directory'] . $dir['name'], $dir['directory'] . $dir['name']); } } html_form_select_end(); html_help_link('directory_list'); if ($path != '/' && $path != $GLOBALS['fakebase']) { html_break(1); html_form_input('submit', 'download', lang('Download')); html_help_link('download'); html_nbsp(3); if ($can_add) { html_form_input('text', 'createdir', NULL, 255, 15); html_form_input('submit', 'newdir', lang('Create Folder')); html_help_link('create_folder'); } }
} $str .= html_form_input("checkbox", $internal, NULL, NULL, NULL, $checked, NULL, 1) . " {$displayed}" . html_break(1, NULL, 1); } display_item(lang('Display attributes'), $str); reset($other_checkboxes); while (list($internal, $displayed) = each($other_checkboxes)) { unset($checked); if ($GLOBALS['phpgw_info']["user"]["preferences"]["filemanager"][$internal]) { $checked = 1; } $str = html_form_input("checkbox", $internal, NULL, NULL, NULL, $checked, NULL, 1); display_item($displayed, $str); } reset($other_dropdown); while (list($internal, $value_array) = each($other_dropdown)) { reset($value_array); unset($options); while (list($num, $value) = each($value_array)) { if ($num == 0) { $displayed = $value; continue; } $options .= html_form_option($value, $value, $GLOBALS['phpgw_info']["user"]["preferences"]["filemanager"][$internal] == $value, True); } $output = html_form_select_begin($internal, True); $output .= $options; $output .= html_form_select_end(True); display_item($displayed, $output); } $p->pparse('out', 'pref'); $GLOBALS['phpgw']->common->phpgw_footer();