html_form_input('hidden', 'edit_file', $fileman[$j]); ### # We need to include all of the fileman entries for each file's form, # so we loop through again ### for ($i = 0; $i != $numoffiles; $i++) { html_form_input('hidden', 'fileman[' . $i . ']', base64_encode($fileman[$i])); } html_table_row_begin(); html_table_col_begin(); html_form_textarea('edit_file_content', 35, 75, $content); html_table_col_end(); html_table_col_begin('center'); html_form_input('submit', 'edit_preview', lang('Preview %1', html_encode($fileman[$j], 1))); html_break(1); html_form_input('submit', 'edit_save', lang('Save %1', html_encode($fileman[$j], 1))); // html_break (1); // html_form_input ('submit', 'edit_save_all', lang('Save all')); html_table_col_end(); html_table_row_end(); html_break(2); html_form_end(); html_table_end(); } } } elseif ($op == 'upload' && $path != '/' && $path != $GLOBALS['fakebase']) { for ($i = 0; $i != $show_upload_boxes; $i++) { if ($badchar = bad_chars($_FILES['upload_file']['name'][$i], True, True)) { echo $GLOBALS['phpgw']->common->error_list(array(html_encode(lang('File names cannot contain "%1"', $badchar), 1))); continue; }
} while (list($internal, $displayed) = each($file_attributes)) { unset($checked); if ($GLOBALS['phpgw_info']["user"]["preferences"]["filemanager"][$internal]) { $checked = 1; } $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;