Adjust form to new table einsatz and co.
[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                                             'specs' => 'canSort: false',
39                                             ),
40                               'mobil' => array(
41                                             'name' => 'Mobil',
42                                             'width' => 100,
43                                             'visible' => false,
44                                             'specs' => 'canSort: false',
45                                             ),
46                               'email' => array(
47                                             'name' => 'E-Mail',
48                                             'width' => 100,
49                                             'visible' => false,
50                                             ),
51                               'persstdsatz' => array(
52                                             'name' => 'Satz',
53                                             'type' => 'number',
54                                             'specs' => "decPlaces: 2, ClassName: 'alignright', suffix: '&nbsp;', canSort: false",
55                                             'width' => 50,
56                                             ),
57                               'jahresakkord' => array(
58                                             'name' => 'Akkord',
59                                             'type' => 'number',
60                                             'specs' => "decPlaces: 2, ClassName: 'alignright', suffix: '&nbsp;', canSort: false",
61                                             'width' => 60,
62                                             ),
63                               'akkord_vorjahr' => array(
64                                             'name' => 'Akkord Vorjahr',
65                                             'type' => 'number',
66                                             'specs' => "decPlaces: 2, ClassName: 'alignright', suffix: '&nbsp;', canSort: false",
67                                             'width' => 60,
68                                             'visible' => false,
69                                             ),
70                               'akkordzuschlag' => array(
71                                             'name' => 'Zuschlag',
72                                             'visible' => false,
73                                             'type' => 'number',
74                                             'specs' => "decPlaces: 2, ClassName: 'alignright', canSort: false",
75                                             'width' => 70,
76                                             ),
77                               ),
78 /*
79               'details' => array(
80                                  'title' => 'Details',
81                                  'subtitle' => 'Informationen zur Person',
82                                  'list' => array(
83                                       'personal' => array(
84                                                     'name' => 'Name',
85                                                     ),
86                                       'vorname' => array(
87                                                     'name' => 'Vorname',
88                                                     ),
89                                       'persstdsatz' => array(
90                                                     'name' => 'Stundensatz',
91                                                     'format' => '%.2f',
92                                                     ),
93                                       'jahresakkord' => array(
94                                                     'name' => 'Jahresakkord',
95                                                     'format' => '%.2f',
96                                                     ),
97                                       'akkordzuschlag' => array(
98                                                     'name' => 'Akkordzuschlag',
99                                                     'format' => '%.2f',
100                                                     ),
101                                                  ),
102                                     ),
103 */
104               'edit' => array(
105                               'name' => array(
106                                             'name' => 'Name',
107                                             'type' => 'text',
108                                             'size' => 24,
109                                             'required' => true,
110                                             ),
111                               'vorname' => array(
112                                             'name' => 'Vorname',
113                                             'type' => 'text',
114                                             'size' => 24,
115                                             'required' => true,
116                                             ),
117                               'anschrift' => array(
118                                             'name' => 'Anschrift',
119                                             'type' => 'text',
120                                             'size' => 24,
121                                             'required' => true,
122                                             ),
123                               'plz' => array(
124                                             'name' => 'PLZ',
125                                             'type' => 'number',
126                                             'size' => 6,
127                                             'null' => true,
128                                             ),
129                               'ort' => array(
130                                             'name' => 'Wohnort',
131                                             'type' => 'text',
132                                             'size' => 24,
133                                             'null' => true,
134                                             ),
135                               'telefon' => array(
136                                             'name' => 'Telefon',
137                                             'type' => 'text',
138                                             'size' => 24,
139                                             'null' => true,
140                                             ),
141                               'mobil' => array(
142                                             'name' => 'Mobil',
143                                             'type' => 'text',
144                                             'size' => 24,
145                                             'null' => true,
146                                             ),
147                               'email' => array(
148                                             'name' => 'E-Mail',
149                                             'type' => 'text',
150                                             'size' => 24,
151                                             'null' => true,
152                                             ),
153                               'persstdsatz' => array(
154                                             'name' => 'Stundensatz',
155                                             'type' => 'decimal',
156                                             'size' => 10,
157                                             'null' => true,
158                                             ),
159                               'jahresakkord' => array(
160                                             'name' => 'Jahresakkord',
161                                             'type' => 'decimal',
162                                             'size' => 10,
163                                             'required' => true,
164                                             ),
165                               'akkord_vorjahr' => array(
166                                             'name' => 'Akkord Vorjahr',
167                                             'type' => 'decimal',
168                                             'size' => 10,
169                                             'null' => true,
170                                             ),
171                               'aktiv' => array(
172                                             'name' => 'aktiv',
173                                             'type' => 'boolean',
174                                             ),
175                               ),
176               );
177
178 ?>