# Display some inputs and info, but not when renaming or editing comments ### if (!$rename && !$edit_comments) { ### # Begin Copy to/Move to selection ### html_break(1); html_form_input('submit', 'go', lang('Go to:')); html_help_link('go_to'); if ($path != '/' && $path != $GLOBALS['fakebase']) { html_form_input('submit', 'copy', lang('Copy to:')); html_help_link('copy_to'); html_form_input('submit', 'move', lang('Move to:')); html_help_link('move_to'); } html_form_select_begin('todir'); html_break(1); ### # First we get the directories in their home directory ### $dirs = array(); $dirs[] = array('directory' => $GLOBALS['fakebase'], 'name' => $GLOBALS['userinfo']['account_lid']); $ls_array = $GLOBALS['phpgw']->vfs->ls(array('string' => $GLOBALS['homedir'], 'relatives' => array(RELATIVE_NONE), 'checksubdirs' => True, 'mime_type' => 'Directory')); while (list($num, $dir) = each($ls_array)) { $dirs[] = $dir; } ### # Then we get the directories in their readable groups' home directories ### reset($readable_groups); while (list($num, $group_array) = each($readable_groups)) {
} $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();