Some mask updates
authorJoey Schulze <joey@infodrom.org>
Wed, 24 Feb 2010 18:31:22 +0000 (19:31 +0100)
committerJoey Schulze <joey@infodrom.org>
Wed, 24 Feb 2010 18:31:22 +0000 (19:31 +0100)
masks/sys_mask.php

index 01ab582..a96d56a 100644 (file)
@@ -2,37 +2,55 @@
 
 $mask = array(
              'table' => 'sys_mask',
 
 $mask = array(
              'table' => 'sys_mask',
+             'title' => 'Liste der Menüpunkte',
+             'join' => array('sys_menu ON sys_mask.menu = sys_menu.id'),
              'list' => array(
                              'id' => array(
                                            'name' => 'ID',
                                            'visible' => false,
              'list' => array(
                              'id' => array(
                                            'name' => 'ID',
                                            'visible' => false,
+                                           'sql' => 'sys_mask.id',
                                            ),
                              'mask' => array(
                                            ),
                              'mask' => array(
-                                           'name' => 'Maske',
+                                           'name' => 'Menüpunkt',
                                            'width' => 100,
                                            ),
                                            'width' => 100,
                                            ),
-                             'name' => array(
+                             'title' => array(
                                            'name' => 'Name',
                                            'width' => 150,
                                            ),
                                            'name' => 'Name',
                                            'width' => 150,
                                            ),
+                             'menutitle' => array(
+                                           'name' => 'Menütitel',
+                                           'width' => 150,
+                                           ),
+                             'menu' => array(
+                                           'name' => 'Menü',
+                                           'sql' => 'sys_menu.name',
+                                           'width' => 150,
+                                           ),
                              'edit' => array(
                                            'name' => 'Edit',
                              'edit' => array(
                                            'name' => 'Edit',
-                                           'width' => 15,
+                                           'width' => 20,
+                                           'specs' => "ClassName: 'aligncenter'",
                                            ),
                              'priority' => array(
                                            'name' => 'Priorität',
                                            'width' => 30,
                                            'type' => 'number',
                                            'specs' => "ClassName: 'alignright'",
                                            ),
                              'priority' => array(
                                            'name' => 'Priorität',
                                            'width' => 30,
                                            'type' => 'number',
                                            'specs' => "ClassName: 'alignright'",
+                                           'sql' => 'sys_mask.priority',
                                            ),
                              'sys_user' => array(
                                            'name' => 'Edit',
                                            'width' => 50,
                                            ),
                              'sys_user' => array(
                                            'name' => 'Edit',
                                            'width' => 50,
+                                           'visible' => false,
+                                           'sql' => 'sys_mask.sys_user',
                                            ),
                              'sys_edit' => array(
                                            'name' => 'Datum',
                                            'width' => 80,
                                            'type' => 'date',
                                            ),
                              'sys_edit' => array(
                                            'name' => 'Datum',
                                            'width' => 80,
                                            'type' => 'date',
+                                           'visible' => false,
+                                           'sql' => 'sys_mask.sys_edit',
                                            ),
                              ),
              'rows' => 20,
                                            ),
                              ),
              'rows' => 20,