ftimme
2005-12-06 c4b4cec36f021be2965b23e34f4fe651f22e0847
interface/lib/classes/tform_tpl_generator.inc.php
@@ -153,7 +153,7 @@
      // ansonsten wird sie angelegt
      $tables = $app->db->getTables();
      
      if(!in_array($formDef['db_table'],$tables)) {
      if(!@in_array($formDef['db_table'],$tables)) {
         // Datenbank noch nicht vorhanden
         
         $columns = array();
@@ -172,6 +172,52 @@
         $columns[] = $col;
         $app->db->show_error_messages = true;
         
         if($formDef["auth"] == 'yes') {
            $col = array(   'action'       => 'add',
                        'name'         => 'sys_userid',
                        'type'         => 'int32',
                        'typeValue'      => '',
                        'defaultValue'   => '',
                        'notNull'      => true
                     );
            $columns[] = $col;
            $col = array(   'action'       => 'add',
                        'name'         => 'sys_groupid',
                        'type'         => 'int32',
                        'typeValue'      => '',
                        'defaultValue'   => '',
                        'notNull'      => true
                     );
            $columns[] = $col;
            $col = array(   'action'       => 'add',
                        'name'         => 'sys_perm_user',
                        'type'         => 'varchar',
                        'typeValue'      => '5',
                        'defaultValue'   => '',
                        'notNull'      => true
                     );
            $columns[] = $col;
            $col = array(   'action'       => 'add',
                        'name'         => 'sys_perm_group',
                        'type'         => 'varchar',
                        'typeValue'      => '5',
                        'defaultValue'   => '',
                        'notNull'      => true
                     );
            $columns[] = $col;
            $col = array(   'action'       => 'add',
                        'name'         => 'sys_perm_other',
                        'type'         => 'varchar',
                        'typeValue'      => '5',
                        'defaultValue'   => '',
                        'notNull'      => true
                     );
            $columns[] = $col;
         }
         foreach($formDef['tabs'] as $tab) {
            foreach($tab["fields"] as $name => $field) {
               /*