Display Boolean value as readonly checkbox
[misc/kostenrechnung] / masks / materialverbrauch.php
1 <?php
2
3 $mask = array(
4               'table' => 'materialverbrauch',
5               'join' => array('materialien ON materialverbrauch.material = materialien.id'),
6               'list' => array(
7                               'id' => array(
8                                             'name' => 'ID',
9                                             'sql' => 'materialverbrauch.id',
10                                             'visible' => false,
11                                             ),
12                               'kostenstelle' => array(
13                                             'name' => 'KSt',
14                                             'width' => 50,
15                                             ),
16                               'material' => array(
17                                             'name' => 'Material',
18                                             'sql' => 'materialien.material',
19                                             'width' => 200,
20                                             ),
21                               'menge' => array(
22                                             'name' => 'Menge',
23                                             'type' => 'number',
24                                             'specs' => "decPlaces: 2, ClassName: 'alignright'",
25                                             'width' => 50,
26                                             ),
27                               'einheit' => array(
28                                             'name' => 'Einheit',
29                                             'type' => 'number',
30                                             'specs' => "ClassName: 'alignright'",
31                                             'width' => 50,
32                                             ),
33                               'datum' => array(
34                                             'name' => 'Datum',
35                                             'type' => 'date',
36                                             'width' => 60,
37                                             ),
38                               ),
39               'rows' => 20,
40               );
41
42 ?>