Update filter select elements after selecting a new year
[misc/kostenrechnung] / masks / kostenstellen.php
1 <?php
2
3 $mask = array(
4               'table' => 'kostenstellen',
5               'title' => 'Kostenstellen',
6               'join' => array('gebiet ON kostenstellen.gebiet = gebiet.id'),
7               'list' => array(
8                               'id' => array(
9                                             'name' => 'ID',
10                                             'sql' => 'kostenstellen.id',
11                                             'visible' => false,
12                                             ),
13                               'kostenstelle' => array(
14                                             'name' => 'Kostenstelle',
15                                             'specs' => "filterUI: 't'",
16                                             'width' => 220,
17                                             ),
18                               'gebiet' => array(
19                                             'name' => 'Gebiet',
20                                             'sql' => 'gebiet.gebiet',
21                                             'specs' => "filterUI: 's'",
22                                             'width' => 220,
23                                             ),
24                               'laenge' => array(
25                                             'name' => 'Länge',
26                                             'type' => 'number',
27                                             'specs' => "decPlaces: 2, ClassName: 'alignright', canSort: false",
28                                             'width' => 65,
29                                             ),
30                               ),
31               'rows' => 20,
32               'edit' => array(
33                               'kostenstelle' => array(
34                                             'name' => 'Kostenstelle',
35                                             'type' => 'text',
36                                             'size' => 24,
37                                             'required' => true,
38                                             ),
39                               'gebiet' => array(
40                                             'name' => 'Gebiet',
41                                             'type' => 'select',
42                                             'options' => 'SELECT id,gebiet AS text FROM gebiet ORDER BY gebiet',
43                                             ),
44                               'laenge' => array(
45                                             'name' => 'Länge',
46                                             'type' => 'decimal',
47                                             'width' => 65,
48                                             'required' => true,
49                                             ),
50                               ),
51               );
52
53 ?>