<?php return [
    'module_id' => 4,
    'module_name' => 'module',
    'module_title' => 'Module Management',
    'module_note' => 'All module applications',
    'module_frontend_slug' => '',
    'module_author' => NULL,
    'module_created' => '2013-08-25 04:58:43',
    'module_desc' => NULL,
    'module_db' => 'tb_module',
    'module_db_key' => 'module_id',
    'module_type' => 'core',
    'module_config' => [
        'table_db' => 'tb_module',
        'primary_key' => 'module_id',
        'sql_select' => 'SELECT tb_module.module_id,tb_module.module_name,tb_module.module_title,tb_module.module_note,tb_module.module_author,tb_module.module_created,tb_module.module_desc,tb_module.module_db,tb_module.module_db_key,tb_module.module_type,tb_module.group_id,tb_module.module_path  FROM tb_module ',
        'sql_where' => '   WHERE tb_module.module_id IS NOT NULL AND module_name !=\'module\'  ',
        'sql_group' => '    ',
        'forms' => [
            [
                'field' => 'module_id',
                'alias' => 'tb_module',
                'label' => 'Module Id',
                'form_group' => '',
                'required' => '0',
                'view' => 1,
                'type' => 'hidden',
                'add' => false,
                'edit' => false,
                'search' => 0,
                'size' => 'span12',
                'sortlist' => '0',
                'option' => [
                    'opt_type' => false,
                    'lookup_query' => '',
                    'lookup_table' => '',
                    'lookup_key' => false,
                    'lookup_value' => false,
                    'is_dependency' => false,
                    'lookup_dependency_key' => false,
                    'path_to_upload' => '',
                    'upload_type' => false,
                    'tooltip' => '',
                    'attribute' => '',
                    'extend_class' => '',
                ],
            ],
            [
                'field' => 'module_name',
                'alias' => 'tb_module',
                'label' => 'Module Name',
                'form_group' => '',
                'required' => '0',
                'view' => 0,
                'type' => 'text',
                'add' => '',
                'edit' => '',
                'search' => 1,
                'size' => 'span12',
                'sortlist' => 1,
                'option' => [
                    'opt_type' => '',
                    'lookup_query' => '',
                    'lookup_table' => '0',
                    'lookup_key' => '',
                    'lookup_value' => '',
                    'is_dependency' => '',
                    'lookup_dependency_key' => '',
                    'path_to_upload' => '',
                    'upload_type' => '',
                    'tooltip' => '',
                    'attribute' => '',
                    'extend_class' => '',
                ],
            ],
            [
                'field' => 'module_title',
                'alias' => 'tb_module',
                'label' => 'Module Title',
                'form_group' => '',
                'required' => '1',
                'view' => 1,
                'type' => 'text',
                'add' => '',
                'edit' => '',
                'search' => 1,
                'size' => 'span12',
                'sortlist' => 2,
                'option' => [
                    'opt_type' => '',
                    'lookup_query' => '',
                    'lookup_table' => '0',
                    'lookup_key' => '',
                    'lookup_value' => '',
                    'is_dependency' => '',
                    'lookup_dependency_key' => '',
                    'path_to_upload' => '',
                    'upload_type' => '',
                    'tooltip' => '',
                    'attribute' => '',
                    'extend_class' => '',
                ],
            ],
            [
                'field' => 'module_note',
                'alias' => 'tb_module',
                'label' => 'Module Note',
                'form_group' => '',
                'required' => '',
                'view' => '1',
                'type' => 'text',
                'add' => '1',
                'edit' => '1',
                'search' => '1',
                'size' => 'span12',
                'sortlist' => 3,
                'option' => [
                    'opt_type' => '',
                    'lookup_query' => '',
                    'lookup_table' => '',
                    'lookup_key' => '',
                    'lookup_value' => '',
                    'is_dependency' => '',
                    'lookup_dependency_key' => '',
                    'path_to_upload' => '',
                    'upload_type' => '',
                    'tooltip' => '',
                    'attribute' => '',
                    'extend_class' => '',
                ],
            ],
            [
                'field' => 'module_author',
                'alias' => 'tb_module',
                'label' => 'Module Author',
                'form_group' => '',
                'required' => '0',
                'view' => 0,
                'type' => 'text',
                'add' => '',
                'edit' => '',
                'search' => 1,
                'size' => 'span12',
                'sortlist' => 4,
                'option' => [
                    'opt_type' => '',
                    'lookup_query' => '',
                    'lookup_table' => '0',
                    'lookup_key' => '',
                    'lookup_value' => '',
                    'is_dependency' => '',
                    'lookup_dependency_key' => '',
                    'path_to_upload' => '',
                    'upload_type' => '',
                    'tooltip' => '',
                    'attribute' => '',
                    'extend_class' => '',
                ],
            ],
            [
                'field' => 'module_created',
                'alias' => 'tb_module',
                'label' => 'Module Created',
                'form_group' => '',
                'required' => '0',
                'view' => 0,
                'type' => 'text_datetime',
                'add' => '',
                'edit' => '',
                'search' => 1,
                'size' => 'span12',
                'sortlist' => 5,
                'option' => [
                    'opt_type' => '',
                    'lookup_query' => '',
                    'lookup_table' => '0',
                    'lookup_key' => '',
                    'lookup_value' => '',
                    'is_dependency' => '',
                    'lookup_dependency_key' => '',
                    'path_to_upload' => '',
                    'upload_type' => '',
                    'tooltip' => '',
                    'attribute' => '',
                    'extend_class' => '',
                ],
            ],
            [
                'field' => 'module_desc',
                'alias' => 'tb_module',
                'label' => 'Module Desc',
                'form_group' => '',
                'required' => '0',
                'view' => 0,
                'type' => 'textarea',
                'add' => '',
                'edit' => '',
                'search' => 1,
                'size' => 'span12',
                'sortlist' => 6,
                'option' => [
                    'opt_type' => '',
                    'lookup_query' => '',
                    'lookup_table' => '0',
                    'lookup_key' => '',
                    'lookup_value' => '',
                    'is_dependency' => '',
                    'lookup_dependency_key' => '',
                    'path_to_upload' => '',
                    'upload_type' => '',
                    'tooltip' => '',
                    'attribute' => '',
                    'extend_class' => '',
                ],
            ],
            [
                'field' => 'module_db',
                'alias' => 'tb_module',
                'label' => 'Module Db',
                'form_group' => '',
                'required' => '0',
                'view' => 0,
                'type' => 'text',
                'add' => '',
                'edit' => '',
                'search' => 1,
                'size' => 'span12',
                'sortlist' => 7,
                'option' => [
                    'opt_type' => '',
                    'lookup_query' => '',
                    'lookup_table' => '0',
                    'lookup_key' => '',
                    'lookup_value' => '',
                    'is_dependency' => '',
                    'lookup_dependency_key' => '',
                    'path_to_upload' => '',
                    'upload_type' => '',
                    'tooltip' => '',
                    'attribute' => '',
                    'extend_class' => '',
                ],
            ],
            [
                'field' => 'module_db_key',
                'alias' => 'tb_module',
                'label' => 'Module Db Key',
                'form_group' => '',
                'required' => '0',
                'view' => 0,
                'type' => 'text',
                'add' => '',
                'edit' => '',
                'search' => 1,
                'size' => 'span12',
                'sortlist' => 8,
                'option' => [
                    'opt_type' => '',
                    'lookup_query' => '',
                    'lookup_table' => '0',
                    'lookup_key' => '',
                    'lookup_value' => '',
                    'is_dependency' => '',
                    'lookup_dependency_key' => '',
                    'path_to_upload' => '',
                    'upload_type' => '',
                    'tooltip' => '',
                    'attribute' => '',
                    'extend_class' => '',
                ],
            ],
            [
                'field' => 'module_type',
                'alias' => 'tb_module',
                'label' => 'Module Type',
                'form_group' => '',
                'required' => '0',
                'view' => 0,
                'type' => 'text',
                'add' => '',
                'edit' => '',
                'search' => 1,
                'size' => 'span12',
                'sortlist' => 9,
                'option' => [
                    'opt_type' => '',
                    'lookup_query' => '',
                    'lookup_table' => '0',
                    'lookup_key' => '',
                    'lookup_value' => '',
                    'is_dependency' => '',
                    'lookup_dependency_key' => '',
                    'path_to_upload' => '',
                    'upload_type' => '',
                    'tooltip' => '',
                    'attribute' => '',
                    'extend_class' => '',
                ],
            ],
            [
                'field' => 'group_id',
                'alias' => 'tb_module',
                'label' => 'Module Group',
                'form_group' => '',
                'required' => '0',
                'view' => 1,
                'type' => 'select',
                'add' => '',
                'edit' => '',
                'search' => 1,
                'size' => 'span12',
                'sortlist' => 10,
                'option' => [
                    'opt_type' => 'external',
                    'lookup_query' => '',
                    'lookup_table' => 'tb_module_groups',
                    'lookup_key' => 'group_id',
                    'lookup_value' => 'group_name',
                    'is_dependency' => '',
                    'lookup_dependency_key' => '',
                    'path_to_upload' => '',
                    'upload_type' => '',
                    'tooltip' => '',
                    'attribute' => '',
                    'extend_class' => '',
                ],
            ],
            [
                'field' => 'module_path',
                'alias' => 'tb_module',
                'label' => 'Module Path',
                'form_group' => '',
                'required' => '',
                'view' => '1',
                'type' => 'textarea',
                'add' => '1',
                'edit' => '1',
                'search' => '1',
                'size' => 'span12',
                'sortlist' => 11,
                'option' => [
                    'opt_type' => '',
                    'lookup_query' => '',
                    'lookup_table' => '',
                    'lookup_key' => '',
                    'lookup_value' => '',
                    'is_dependency' => '',
                    'lookup_dependency_key' => '',
                    'path_to_upload' => '',
                    'upload_type' => '',
                    'tooltip' => '',
                    'attribute' => '',
                    'extend_class' => '',
                ],
            ],
        ],
        'grid' => [
            [
                'field' => 'module_id',
                'alias' => 'tb_module',
                'label' => 'Module Id',
                'view' => 0,
                'detail' => 1,
                'sortable' => 1,
                'search' => 1,
                'download' => 0,
                'frozen' => 1,
                'width' => '100',
                'align' => 'left',
                'sortlist' => '1',
                'attribute' => [
                    'hyperlink' => [
                        'active' => 0,
                        'link' => '',
                        'target' => '_self',
                        'html' => '',
                    ],
                    'image' => [
                        'active' => 0,
                        'path' => '',
                        'size_x' => '',
                        'size_y' => '',
                        'html' => '',
                    ],
                ],
            ],
            [
                'field' => 'module_path',
                'alias' => 'tb_module',
                'label' => 'Apps',
                'view' => 1,
                'detail' => 1,
                'sortable' => 1,
                'search' => 1,
                'download' => 1,
                'frozen' => 1,
                'width' => '100',
                'align' => 'left',
                'sortlist' => '2',
                'attribute' => [
                    'hyperlink' => [
                        'active' => 0,
                        'link' => '',
                        'target' => '_self',
                        'html' => '',
                    ],
                    'image' => [
                        'active' => 0,
                        'path' => '',
                        'size_x' => '',
                        'size_y' => '',
                        'html' => '',
                    ],
                ],
            ],
            [
                'field' => 'module_name',
                'alias' => 'tb_module',
                'label' => 'Controller',
                'view' => 1,
                'detail' => 1,
                'sortable' => 1,
                'search' => 1,
                'download' => 1,
                'frozen' => 1,
                'width' => '100',
                'align' => 'left',
                'sortlist' => '3',
                'attribute' => [
                    'hyperlink' => [
                        'active' => 0,
                        'link' => '',
                        'target' => '_self',
                        'html' => '',
                    ],
                    'image' => [
                        'active' => 0,
                        'path' => '',
                        'size_x' => '',
                        'size_y' => '',
                        'html' => '',
                    ],
                ],
            ],
            [
                'field' => 'module_title',
                'alias' => 'tb_module',
                'label' => 'Module Name',
                'view' => 1,
                'detail' => 1,
                'sortable' => 1,
                'search' => 1,
                'download' => 1,
                'frozen' => 1,
                'width' => '120',
                'align' => 'left',
                'sortlist' => '4',
                'attribute' => [
                    'hyperlink' => [
                        'active' => 0,
                        'link' => '',
                        'target' => '_self',
                        'html' => '',
                    ],
                    'image' => [
                        'active' => 0,
                        'path' => '',
                        'size_x' => '',
                        'size_y' => '',
                        'html' => '',
                    ],
                ],
            ],
            [
                'field' => 'module_note',
                'alias' => 'tb_module',
                'label' => 'Note',
                'view' => 1,
                'detail' => 1,
                'sortable' => 1,
                'search' => 1,
                'download' => 1,
                'frozen' => 1,
                'width' => '150',
                'align' => 'left',
                'sortlist' => '5',
                'attribute' => [
                    'hyperlink' => [
                        'active' => 0,
                        'link' => '',
                        'target' => '_self',
                        'html' => '',
                    ],
                    'image' => [
                        'active' => 0,
                        'path' => '',
                        'size_x' => '',
                        'size_y' => '',
                        'html' => '',
                    ],
                ],
            ],
            [
                'field' => 'module_author',
                'alias' => 'tb_module',
                'label' => 'Author',
                'view' => 1,
                'detail' => 1,
                'sortable' => 1,
                'search' => 1,
                'download' => 1,
                'frozen' => 1,
                'width' => '100',
                'align' => 'left',
                'sortlist' => '6',
                'attribute' => [
                    'hyperlink' => [
                        'active' => 0,
                        'link' => '',
                        'target' => '_self',
                        'html' => '',
                    ],
                    'image' => [
                        'active' => 0,
                        'path' => '',
                        'size_x' => '',
                        'size_y' => '',
                        'html' => '',
                    ],
                ],
            ],
            [
                'field' => 'module_created',
                'alias' => 'tb_module',
                'label' => 'Created',
                'view' => 0,
                'detail' => 1,
                'sortable' => 1,
                'search' => 1,
                'download' => 0,
                'frozen' => 1,
                'width' => '100',
                'align' => 'left',
                'sortlist' => '7',
                'attribute' => [
                    'hyperlink' => [
                        'active' => 0,
                        'link' => '',
                        'target' => '_self',
                        'html' => '',
                    ],
                    'image' => [
                        'active' => 0,
                        'path' => '',
                        'size_x' => '',
                        'size_y' => '',
                        'html' => '',
                    ],
                ],
            ],
            [
                'field' => 'module_desc',
                'alias' => 'tb_module',
                'label' => 'Module Desc',
                'view' => 0,
                'detail' => 1,
                'sortable' => 1,
                'search' => 1,
                'download' => 1,
                'frozen' => 1,
                'width' => '100',
                'align' => 'left',
                'sortlist' => '8',
                'attribute' => [
                    'hyperlink' => [
                        'active' => 0,
                        'link' => '',
                        'target' => '_self',
                        'html' => '',
                    ],
                    'image' => [
                        'active' => 0,
                        'path' => '',
                        'size_x' => '',
                        'size_y' => '',
                        'html' => '',
                    ],
                ],
            ],
            [
                'field' => 'module_db',
                'alias' => 'tb_module',
                'label' => 'Module Db',
                'view' => 0,
                'detail' => 1,
                'sortable' => 1,
                'search' => 1,
                'download' => 1,
                'frozen' => 1,
                'width' => '100',
                'align' => 'left',
                'sortlist' => '9',
                'attribute' => [
                    'hyperlink' => [
                        'active' => 0,
                        'link' => '',
                        'target' => '_self',
                        'html' => '',
                    ],
                    'image' => [
                        'active' => 0,
                        'path' => '',
                        'size_x' => '',
                        'size_y' => '',
                        'html' => '',
                    ],
                ],
            ],
            [
                'field' => 'module_db_key',
                'alias' => 'tb_module',
                'label' => 'Module Db Key',
                'view' => 0,
                'detail' => 1,
                'sortable' => 1,
                'search' => 1,
                'download' => 1,
                'frozen' => 1,
                'width' => '100',
                'align' => 'left',
                'sortlist' => '10',
                'attribute' => [
                    'hyperlink' => [
                        'active' => 0,
                        'link' => '',
                        'target' => '_self',
                        'html' => '',
                    ],
                    'image' => [
                        'active' => 0,
                        'path' => '',
                        'size_x' => '',
                        'size_y' => '',
                        'html' => '',
                    ],
                ],
            ],
            [
                'field' => 'module_type',
                'alias' => 'tb_module',
                'label' => 'Type',
                'view' => 1,
                'detail' => 1,
                'sortable' => 1,
                'search' => 1,
                'download' => 1,
                'frozen' => 1,
                'width' => '100',
                'align' => 'left',
                'sortlist' => '11',
                'attribute' => [
                    'hyperlink' => [
                        'active' => 0,
                        'link' => '',
                        'target' => '_self',
                        'html' => '',
                    ],
                    'image' => [
                        'active' => 0,
                        'path' => '',
                        'size_x' => '',
                        'size_y' => '',
                        'html' => '',
                    ],
                ],
            ],
            [
                'field' => 'group_id',
                'alias' => 'tb_module',
                'label' => 'Group Id',
                'view' => 0,
                'detail' => 1,
                'sortable' => 1,
                'search' => 1,
                'download' => 0,
                'frozen' => 1,
                'width' => '100',
                'align' => 'left',
                'sortlist' => '12',
                'attribute' => [
                    'hyperlink' => [
                        'active' => 0,
                        'link' => '',
                        'target' => '_self',
                        'html' => '',
                    ],
                    'image' => [
                        'active' => 0,
                        'path' => '',
                        'size_x' => '',
                        'size_y' => '',
                        'html' => '',
                    ],
                ],
            ],
        ],
    ],
    'module_lang' => NULL,
];