1+ <?php
2+
3+ /*
4+ Form Definition
5+
6+ Tabledefinition
7+
8+ Datatypes:
9+ - INTEGER (Forces the input to Int)
10+ - DOUBLE
11+ - CURRENCY (Formats the values to currency notation)
12+ - VARCHAR (no format check, maxlength: 255)
13+ - TEXT (no format check)
14+ - DATE (Dateformat, automatic conversion to timestamps)
15+
16+ Formtype:
17+ - TEXT (Textfield)
18+ - TEXTAREA (Textarea)
19+ - PASSWORD (Password textfield, input is not shown when edited)
20+ - SELECT (Select option field)
21+ - RADIO
22+ - CHECKBOX
23+ - CHECKBOXARRAY
24+ - FILE
25+
26+ VALUE:
27+ - Wert oder Array
28+
29+ Hint:
30+ The ID field of the database table is not part of the datafield definition.
31+ The ID field must be always auto incement (int or bigint).
32+
33+
34+ */
35+
36+ $ form ["title " ] = "mailbox_autoresponder_txt " ;
37+ $ form ["description " ] = "" ;
38+ $ form ["name " ] = "mail_user_autoresponder " ;
39+ $ form ["action " ] = "mail_user_autoresponder_edit.php " ;
40+ $ form ["db_table " ] = "mail_user " ;
41+ $ form ["db_table_idx " ] = "mailuser_id " ;
42+ $ form ["db_history " ] = "yes " ;
43+ $ form ["tab_default " ] = "autoresponder " ;
44+ $ form ["list_default " ] = "index.php " ;
45+ $ form ["auth " ] = 'no ' ; // yes / no
46+
47+ $ form ["auth_preset " ]["userid " ] = 0 ; // 0 = id of the user, > 0 id must match with id of current user
48+ $ form ["auth_preset " ]["groupid " ] = 0 ; // 0 = default groupid of the user, > 0 id must match with groupid of current user
49+ $ form ["auth_preset " ]["perm_user " ] = 'riud ' ; //r = read, i = insert, u = update, d = delete
50+ $ form ["auth_preset " ]["perm_group " ] = 'riud ' ; //r = read, i = insert, u = update, d = delete
51+ $ form ["auth_preset " ]["perm_other " ] = '' ; //r = read, i = insert, u = update, d = delete
52+
53+
54+ $ form ["tabs " ]['autoresponder ' ] = array (
55+ 'title ' => "Autoresponder " ,
56+ 'width ' => 100 ,
57+ 'template ' => "templates/mail_user_autoresponder_edit.htm " ,
58+ 'fields ' => array (
59+ ##################################
60+ # Begin Datatable fields
61+ ##################################
62+ 'autoresponder_subject ' => array (
63+ 'datatype ' => 'VARCHAR ' ,
64+ 'formtype ' => 'TEXT ' ,
65+ 'default ' => 'Out of office reply ' ,
66+ 'value ' => '' ,
67+ 'width ' => '30 ' ,
68+ 'maxlength ' => '255 '
69+ ),
70+ 'autoresponder_text ' => array (
71+ 'datatype ' => 'TEXT ' ,
72+ 'formtype ' => 'TEXTAREA ' ,
73+ 'default ' => '' ,
74+ 'value ' => '' ,
75+ 'cols ' => '30 ' ,
76+ 'rows ' => '15 '
77+ ),
78+ 'autoresponder ' => array (
79+ 'datatype ' => 'VARCHAR ' ,
80+ 'formtype ' => 'CHECKBOX ' ,
81+ 'default ' => 'n ' ,
82+ 'value ' => array (1 => 'y ' ,0 => 'n ' )
83+ ),
84+ 'autoresponder_start_date ' => array (
85+ 'datatype ' => 'DATETIME ' ,
86+ 'formtype ' => 'DATETIME ' ,
87+ 'validators ' => array ( 0 => array ( 'type ' => 'CUSTOM ' ,
88+ 'class ' => 'validate_autoresponder ' ,
89+ 'function ' => 'start_date ' ,
90+ 'errmsg ' => 'autoresponder_start_date_isfuture ' ),
91+ ),
92+ ),
93+ 'autoresponder_end_date ' => array (
94+ 'datatype ' => 'DATETIME ' ,
95+ 'formtype ' => 'DATETIME ' ,
96+ 'validators ' => array ( 0 => array ( 'type ' => 'CUSTOM ' ,
97+ 'class ' => 'validate_autoresponder ' ,
98+ 'function ' => 'end_date ' ,
99+ 'errmsg ' => 'autoresponder_end_date_isgreater ' ),
100+ ),
101+ ),
102+ ##################################
103+ # END Datatable fields
104+ ##################################
105+ )
106+ );
107+
108+
109+ ?>
0 commit comments