source: trunk/filemanager/inc/hook_settings.inc.php @ 2000

Revision 2000, 2.2 KB checked in by amuller, 14 years ago (diff)

Ticket #597 - Implementação do módulo gerenciador de arquivos

Line 
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        $type=array(
58                "portrait"=>lang("portrait"),
59                "landscape"=>lang("landscape")
60        );
61        create_select_box('Disposition of pdf output','pdf_type',$type);
62
63        $paper=array(
64                "letter"=>lang("letter"),
65                "a4"=>"A4",
66                "US Legal"=>"US Legal"
67        );
68        create_select_box('Type of pdf paper','pdf_paper_type',$paper);
69
70
Note: See TracBrowser for help on using the repository browser.