source: sandbox/2.3-MailArchiver/filemanager/inc/hook_settings.inc.php @ 6779

Revision 6779, 2.0 KB checked in by rafaelraymundo, 12 years ago (diff)

Ticket #2946 - Liberado Expresso(branch 2.3) integrado ao MailArchiver?.

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('Display attributes');
16
17        $size=array(
18                "10"=>"10",
19                "25"=>"25",
20                "50"=>"50",
21                "100"=>"100",
22                "200"=>"200"
23        );
24        create_select_box('Number of files per pager','files_per_page',$size);
25
26        $file_attributes = Array(
27                'name' => 'File Name',
28                'mime_type' => 'MIME Type',
29                'size' => 'Size',
30                'created' => 'Created',
31                'modified' => 'Modified',
32                'owner' => 'Owner',
33                'createdby_id' => 'Created by',
34                'modifiedby_id' => 'Created by',
35                'modifiedby_id' => 'Modified by',
36                'app' => 'Application',
37                'comment' => 'Comment',
38                'version' => 'Version'
39        );
40
41        while (list ($key, $value) = each ($file_attributes))
42        {
43                create_check_box($value,$key);
44        }
45       
46        create_section('Other settings');
47
48        $other_checkboxes = array (
49                "viewtextplain" => "Unknown MIME-type defaults to text/plain when viewing"
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.