Initialise password fields when loading the page (to prevent the
[misc/kostenrechnung] / masks / overview_gewaesser.php
index 0fd7376..5d861aa 100644 (file)
@@ -34,20 +34,21 @@ $mask = array(
                              'stunden' => array(
                                            'name' => 'Stunden',
                                            'type' => 'number',
-                                           'specs' => "decPlaces: 2, ClassName: 'alignright'",
+                                           'specs' => "decPlaces: 2, ClassName: 'alignright', suffix: ' '",
                                            'width' => 50,
                                            ),
                              'stunde' => array(
                                            'name' => 'Stunde',
                                            'type' => 'number',
-                                           'specs' => "decPlaces: 2, ClassName: 'alignright'",
+                                           'specs' => "decPlaces: 2, ClassName: 'alignright', suffix: ' '",
                                            'width' => 50,
                                            'sql' => 'stunden * personal.persstdsatz',
                                            ),
                              'lfdm' => array(
                                            'name' => 'Lfdm',
+                                           'visible' => false,
                                            'type' => 'number',
-                                           'specs' => "decPlaces: 3, ClassName: 'alignright'",
+                                           'specs' => "decPlaces: 3, ClassName: 'alignright', suffix: ' '",
                                            'width' => 50,
                                            'sql' => '(stunden * personal.persstdsatz) / laenge',
                                            ),
@@ -56,56 +57,81 @@ $mask = array(
                                            'name' => 'Gerät',
                                            'sql' => 'gerate.geraet',
                                            'width' => 150,
-                                           'specs' => "filterUI: 't'",
+                                           'specs' => "filterUI: 's'",
                                            ),
                              'geraetstunden' => array(
                                            'name' => 'Stunden',
                                            'type' => 'number',
-                                           'specs' => "decPlaces: 2, ClassName: 'alignright'",
+                                           'specs' => "decPlaces: 2, ClassName: 'alignright', suffix: ' '",
                                            'width' => 50,
                                            ),
                              'geraetstunde' => array(
                                            'name' => 'Stunde',
                                            'type' => 'number',
-                                           'specs' => "decPlaces: 2, ClassName: 'alignright'",
+                                           'specs' => "decPlaces: 2, ClassName: 'alignright', suffix: ' '",
                                            'width' => 50,
                                            'sql' => 'geraetstunden * gerate.gerstdsatz',
                                            ),
                              'geraetlfdm' => array(
                                            'name' => 'Lfdm',
+                                           'visible' => false,
                                            'type' => 'number',
-                                           'specs' => "decPlaces: 3, ClassName: 'alignright'",
+                                           'specs' => "decPlaces: 3, ClassName: 'alignright', suffix: ' '",
                                            'width' => 50,
                                            'sql' => '(geraetstunden * gerate.gerstdsatz) / laenge',
                                            ),
 #
                              'anbaugeraet' => array(
                                            'name' => 'Anbaugerät',
-                                           'sql' => 'gerate.geraet',
+                                           'sql' => 'anbaugeraete.anbaugeraet',
                                            'width' => 150,
-                                           'specs' => "filterUI: 't'",
+                                           'specs' => "filterUI: 's'",
                                            ),
                              'anbaugeraetstunden' => array(
                                            'name' => 'Stunden',
                                            'type' => 'number',
-                                           'specs' => "decPlaces: 2, ClassName: 'alignright'",
+                                           'specs' => "decPlaces: 2, ClassName: 'alignright', suffix: ' '",
                                            'width' => 50,
                                            ),
                              'anbaugeraetstunde' => array(
                                            'name' => 'Stunde',
                                            'type' => 'number',
-                                           'specs' => "decPlaces: 2, ClassName: 'alignright'",
+                                           'specs' => "decPlaces: 2, ClassName: 'alignright', suffix: ' '",
                                            'width' => 50,
                                            'sql' => 'anbaugeraetstunden * anbaugeraete.anbgerstdsatz',
                                            ),
                              'anbaugeraetlfdm' => array(
                                            'name' => 'Lfdm',
+                                           'visible' => false,
                                            'type' => 'number',
-                                           'specs' => "decPlaces: 3, ClassName: 'alignright'",
+                                           'specs' => "decPlaces: 3, ClassName: 'alignright', suffix: ' '",
                                            'width' => 50,
                                            'sql' => '(anbaugeraetstunden * anbaugeraete.anbgerstdsatz) / laenge',
                                            ),
                              ),
+             'details' => array(
+                                'title' => 'Details',
+                                'subtitle' => 'Informationen zum Gewässer',
+                                'list' => array(
+                                     'gewaesser' => array(
+                                                   'name' => 'Gewässer',
+                                                   ),
+                                     'laenge' => array(
+                                                   'name' => 'Länge',
+                                                   ),
+                                     'kosten' => array(
+                                                   'name' => 'Gesamtkosten',
+                                                   'format' => '%.2f',
+                                                   ),
+                                     'lfdm' => array(
+                                                   'name' => 'Lfdm',
+                                                   'format' => '%.2f',
+                                                   ),
+                                     'zusatz' => array(
+                                                   'name' => 'Zusätze',
+                                                   ),
+                                                ),
+                                   ),
              'rows' => 20,
              );