1 | <?php |
---|
2 | /**************************************************************************\ |
---|
3 | * eGroupWare - Filemanager Preferences * |
---|
4 | * http://egroupware.org * |
---|
5 | * Modified by Pim Snel <pim@egroupware.org> * |
---|
6 | * -------------------------------------------- * |
---|
7 | * This program is free software; you can redistribute it and/or modify it * |
---|
8 | * under the terms of the GNU General Public License as published by the * |
---|
9 | * Free Software Foundation; either version 2 of the License, or (at your * |
---|
10 | * option) * |
---|
11 | \**************************************************************************/ |
---|
12 | |
---|
13 | //ExecMethod('filemanager.bofilemanager.check_set_default_prefs'); |
---|
14 | |
---|
15 | /*create_section('TESTING'); |
---|
16 | |
---|
17 | create_check_box('Use new experimental Filemanager?','experimental_new_code','The future filemanager, now for TESTING PURPOSES ONLY, please send bugreports'); |
---|
18 | |
---|
19 | */ |
---|
20 | create_section('Display attributes'); |
---|
21 | |
---|
22 | $file_attributes = Array( |
---|
23 | 'name' => 'File Name', |
---|
24 | 'mime_type' => 'MIME Type', |
---|
25 | 'size' => 'Size', |
---|
26 | 'created' => 'Created', |
---|
27 | 'modified' => 'Modified', |
---|
28 | 'owner' => 'Owner', |
---|
29 | 'createdby_id' => 'Created by', |
---|
30 | 'modifiedby_id' => 'Created by', |
---|
31 | 'modifiedby_id' => 'Modified by', |
---|
32 | 'app' => 'Application', |
---|
33 | 'comment' => 'Comment', |
---|
34 | 'version' => 'Version' |
---|
35 | ); |
---|
36 | |
---|
37 | while (list ($key, $value) = each ($file_attributes)) |
---|
38 | { |
---|
39 | create_check_box($value,$key); |
---|
40 | } |
---|
41 | |
---|
42 | create_section('Other settings'); |
---|
43 | |
---|
44 | $other_checkboxes = array ( |
---|
45 | "viewinnewwin" => "View documents in new window", |
---|
46 | "viewonserver" => "View documents on server (if available)", |
---|
47 | "viewtextplain" => "Unknown MIME-type defaults to text/plain when viewing", |
---|
48 | "dotdot" => "Show ..", |
---|
49 | "dotfiles" => "Show .files", |
---|
50 | ); |
---|
51 | |
---|
52 | while (list ($key, $value) = each ($other_checkboxes)) |
---|
53 | { |
---|
54 | create_check_box($value,$key); |
---|
55 | } |
---|
56 | |
---|
57 | $upload_boxes=array( |
---|
58 | "1"=>"1", |
---|
59 | "5"=>"5", |
---|
60 | "10"=>"10", |
---|
61 | "20"=>"20", |
---|
62 | "30"=>"30" |
---|
63 | ); |
---|
64 | |
---|
65 | create_select_box('Default number of upload fields to show','show_upload_boxes',$upload_boxes); |
---|