<?php
global $lang, $app;

$config->env->dtable = new stdClass();

$config->env->dtable->fieldList['id']['title'] = 'ID';
$config->env->dtable->fieldList['id']['name']  = 'id';
$config->env->dtable->fieldList['id']['type']  = 'id';

$config->env->dtable->fieldList['name']['title']       = $lang->env->name;
$config->env->dtable->fieldList['name']['name']        = 'name';
$config->env->dtable->fieldList['name']['type']        = 'title';
$config->env->dtable->fieldList['name']['sortType']    = true;
$config->env->dtable->fieldList['name']['flex']        = 4;
$config->env->dtable->fieldList['name']['hint']        = true;

$config->env->dtable->fieldList['code']['title']    = $lang->env->code;
$config->env->dtable->fieldList['code']['name']     = 'code';
$config->env->dtable->fieldList['code']['type']     = 'text';
$config->env->dtable->fieldList['code']['sortType'] = true;

$config->env->dtable->fieldList['system']['title']    = $lang->env->system;
$config->env->dtable->fieldList['system']['name']     = 'system';
$config->env->dtable->fieldList['system']['type']     = 'text';
$config->env->dtable->fieldList['system']['map']      = $lang->env->systemList;
$config->env->dtable->fieldList['system']['sortType'] = true;

$config->env->dtable->fieldList['type']['title']    = $lang->env->type;
$config->env->dtable->fieldList['type']['name']     = 'type';
$config->env->dtable->fieldList['type']['type']     = 'text';
$config->env->dtable->fieldList['type']['map']      = $lang->env->typeList;
$config->env->dtable->fieldList['type']['sortType'] = true;

$config->env->dtable->fieldList['actions']['name']     = 'actions';
$config->env->dtable->fieldList['actions']['title']    = $lang->actions;
$config->env->dtable->fieldList['actions']['type']     = 'actions';
$config->env->dtable->fieldList['actions']['sortType'] = false;
$config->env->dtable->fieldList['actions']['fixed']    = 'right';
$config->env->dtable->fieldList['actions']['menu']     = array('edit', 'delete');
$config->env->dtable->fieldList['actions']['list']     = $config->env->actionList;
$config->env->dtable->fieldList['actions']['width']    = 100;
