Marius Burkard
2016-04-20 4569cae57f127afd093794310ccd290d2d9fdf36
commit | author | age
b0711a 1 <?php
T 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
7fe908 36 $form["title"]    = "mailbox_cc_txt";
b93c82 37 $form["description"]            = "";
7fe908 38 $form["name"]    = "mail_user_cc";
MC 39 $form["action"]   = "mail_user_cc_edit.php";
40 $form["db_table"]  = "mail_user";
b93c82 41 $form["db_table_idx"]           = "mailuser_id";
7fe908 42 $form["db_history"]  = "yes";
b93c82 43 $form["tab_default"]            = "mailuser";
C 44 $form["list_default"]           = "index.php";
7fe908 45 $form["auth"]   = 'no'; // yes / no
b0711a 46
T 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 $form["tabs"]['mailuser'] = array (
7fe908 54     'title'  => "cc_txt",
MC 55     'width'  => 100,
56     'template'  => "templates/mail_user_cc_edit.htm",
57     'fields'  => array (
58         //#################################
59         // Begin Datatable fields
60         //#################################
b0711a 61         'cc' => array (
7fe908 62             'datatype' => 'VARCHAR',
MC 63             'formtype' => 'TEXT',
64             'filters'   => array( 0 => array( 'event' => 'SAVE',
65                     'type' => 'IDNTOASCII'),
66                 1 => array( 'event' => 'SHOW',
67                     'type' => 'IDNTOUTF8'),
68                 2 => array( 'event' => 'SAVE',
69                     'type' => 'TOLOWER')
70             ),
bad4bd 71             'validators' => array (
FS 72                 0 => array ( 'type' => 'ISEMAIL', 'errmsg'=> 'cc_error_isemail'),
7fe908 73             ),
MC 74             'default' => '',
75             'value'  => '',
76             'width'  => '30',
77             'maxlength' => '255'
b0711a 78         ),
7fe908 79         //#################################
MC 80         // END Datatable fields
81         //#################################
b0711a 82     )
T 83 );
84
85
7fe908 86 ?>