Configure some fields as required
[misc/kostenrechnung] / masks / personal.php
1 <?php
2
3 $mask = array(
4               'table' => 'personal',
5               'title' => 'Personalinformationen',
6               'sort' => 1,
7               'list' => array(
8                               'id' => array(
9                                             'name' => 'ID',
10                                             'visible' => false,
11                                             ),
12                               'name' => array(
13                                             'name' => 'Name',
14                                             'width' => 100,
15                                             'specs' => "filterUI: 't'",
16                                             ),
17                               'vorname' => array(
18                                             'name' => 'Vorname',
19                                             'width' => 100,
20                                             'specs' => "filterUI: 't'",
21                                             ),
22                               'anschrift' => array(
23                                             'name' => 'Anschrift',
24                                             'width' => 160,
25                                             ),
26                               'plz' => array(
27                                             'name' => 'PLZ',
28                                             'width' => 40,
29                                             ),
30                               'ort' => array(
31                                             'name' => 'Wohnort',
32                                             'width' => 100,
33                                             ),
34                               'telefon' => array(
35                                             'name' => 'Telefon',
36                                             'width' => 100,
37                                             'visible' => false,
38                                             ),
39                               'persstdsatz' => array(
40                                             'name' => 'Satz',
41                                             'type' => 'number',
42                                             'specs' => "decPlaces: 2, ClassName: 'alignright', suffix: '&nbsp;'",
43                                             'width' => 50,
44                                             ),
45                               'jahresakkord' => array(
46                                             'name' => 'Akkord',
47                                             'type' => 'number',
48                                             'specs' => "decPlaces: 2, ClassName: 'alignright', suffix: '&nbsp;'",
49                                             'width' => 60,
50                                             ),
51 /*
52                               'akkordzuschlag' => array(
53                                             'name' => 'Zuschlag',
54                                             'visible' => false,
55                                             'type' => 'number',
56                                             'specs' => "decPlaces: 2, ClassName: 'alignright'",
57                                             'width' => 70,
58                                             ),
59 */
60                               ),
61 /*
62               'details' => array(
63                                  'title' => 'Details',
64                                  'subtitle' => 'Informationen zur Person',
65                                  'list' => array(
66                                       'personal' => array(
67                                                     'name' => 'Name',
68                                                     ),
69                                       'vorname' => array(
70                                                     'name' => 'Vorname',
71                                                     ),
72                                       'persstdsatz' => array(
73                                                     'name' => 'Stundensatz',
74                                                     'format' => '%.2f',
75                                                     ),
76                                       'jahresakkord' => array(
77                                                     'name' => 'Jahresakkord',
78                                                     'format' => '%.2f',
79                                                     ),
80                                       'akkordzuschlag' => array(
81                                                     'name' => 'Akkordzuschlag',
82                                                     'format' => '%.2f',
83                                                     ),
84                                                  ),
85                                     ),
86 */
87               'edit' => array(
88                               'name' => array(
89                                             'name' => 'Name',
90                                             'type' => 'text',
91                                             'size' => 24,
92                                             'required' => true,
93                                             ),
94                               'vorname' => array(
95                                             'name' => 'Vorname',
96                                             'type' => 'text',
97                                             'size' => 24,
98                                             'required' => true,
99                                             ),
100                               'anschrift' => array(
101                                             'name' => 'Anschrift',
102                                             'type' => 'text',
103                                             'size' => 24,
104                                             'required' => true,
105                                             ),
106                               'plz' => array(
107                                             'name' => 'PLZ',
108                                             'type' => 'number',
109                                             'size' => 6,
110                                             'null' => true,
111                                             ),
112                               'ort' => array(
113                                             'name' => 'Wohnort',
114                                             'type' => 'text',
115                                             'size' => 24,
116                                             'null' => true,
117                                             ),
118                               'telefon' => array(
119                                             'name' => 'Telefon',
120                                             'type' => 'text',
121                                             'size' => 24,
122                                             'null' => true,
123                                             ),
124                               'persstdsatz' => array(
125                                             'name' => 'Stundensatz',
126                                             'type' => 'decimal',
127                                             'size' => 10,
128                                             'null' => true,
129                                             ),
130                               'jahresakkord' => array(
131                                             'name' => 'Jahresakkord',
132                                             'type' => 'decimal',
133                                             'size' => 10,
134                                             'required' => true,
135                                             ),
136                               ),
137               'rows' => 20,
138               );
139
140 ?>