<?php
global $lang;
$config->domain->dtable = new stdclass();

$config->domain->dtable->fieldList['ID']['title'] = $lang->idAB;
$config->domain->dtable->fieldList['ID']['type']  = 'ID';
$config->domain->dtable->fieldList['ID']['name']  = 'id';
$config->domain->dtable->fieldList['ID']['sortType'] = true;

$config->domain->dtable->fieldList['domain']['title']    = $lang->domain->domain;
$config->domain->dtable->fieldList['domain']['name']     = 'domain';
$config->domain->dtable->fieldList['domain']['type']     = 'text';
$config->domain->dtable->fieldList['domain']['sortType'] = true;
$config->domain->dtable->fieldList['domain']['flex']     = 4;
$config->domain->dtable->fieldList['domain']['hint']     = true;
$config->domain->dtable->fieldList['domain']['link']     = array('module' => 'domain', 'method' => 'view', 'params' => 'id={id}');

$config->domain->dtable->fieldList['adminURI']['title']    = $lang->domain->adminURI;
$config->domain->dtable->fieldList['adminURI']['name']     = 'adminURI';
$config->domain->dtable->fieldList['adminURI']['type']     = 'text';
$config->domain->dtable->fieldList['adminURI']['sortType'] = true;
$config->domain->dtable->fieldList['adminURI']['hint']     = true;

$config->domain->dtable->fieldList['resolverURI']['title']    = $lang->domain->resolverURI;
$config->domain->dtable->fieldList['resolverURI']['name']     = 'resolverURI';
$config->domain->dtable->fieldList['resolverURI']['type']     = 'text';
$config->domain->dtable->fieldList['resolverURI']['sortType'] = true;
$config->domain->dtable->fieldList['resolverURI']['hint']     = true;

$config->domain->dtable->fieldList['register']['title']    = $lang->domain->register;
$config->domain->dtable->fieldList['register']['name']     = 'register';
$config->domain->dtable->fieldList['register']['type']     = 'text';
$config->domain->dtable->fieldList['register']['sortType'] = true;
$config->domain->dtable->fieldList['register']['hint']     = true;

$config->domain->dtable->fieldList['expiredDate']['title']    = $lang->domain->expiredDate;
$config->domain->dtable->fieldList['expiredDate']['name']     = 'expiredDate';
$config->domain->dtable->fieldList['expiredDate']['type']     = 'date';
$config->domain->dtable->fieldList['expiredDate']['sortType'] = true;
$config->domain->dtable->fieldList['expiredDate']['hint']     = true;

$config->domain->dtable->fieldList['renew']['title']    = $lang->domain->renew;
$config->domain->dtable->fieldList['renew']['name']     = 'renew';
$config->domain->dtable->fieldList['renew']['type']     = 'text';
$config->domain->dtable->fieldList['renew']['sortType'] = true;
$config->domain->dtable->fieldList['renew']['hint']     = true;
$config->domain->dtable->fieldList['renew']['map']      = $lang->domain->renewMethod;

$config->domain->dtable->fieldList['account']['title']    = $lang->domain->account;
$config->domain->dtable->fieldList['account']['name']     = 'account';
$config->domain->dtable->fieldList['account']['type']     = 'user';
$config->domain->dtable->fieldList['account']['sortType'] = true;
$config->domain->dtable->fieldList['account']['hint']     = true;

$config->domain->dtable->fieldList['createdBy']['title']    = $lang->domain->createdBy;
$config->domain->dtable->fieldList['createdBy']['name']     = 'createdBy';
$config->domain->dtable->fieldList['createdBy']['type']     = 'user';
$config->domain->dtable->fieldList['createdBy']['sortType'] = true;
$config->domain->dtable->fieldList['createdBy']['hint']     = true;

$config->domain->dtable->fieldList['createdDate']['title']    = $lang->domain->createdDate;
$config->domain->dtable->fieldList['createdDate']['name']     = 'createdDate';
$config->domain->dtable->fieldList['createdDate']['type']     = 'datetime';
$config->domain->dtable->fieldList['createdDate']['sortType'] = true;
$config->domain->dtable->fieldList['createdDate']['hint']     = true;

$config->domain->actionList = array();
$config->domain->actionList['edit']['icon']        = 'edit';
$config->domain->actionList['edit']['text']        = $lang->edit;
$config->domain->actionList['edit']['hint']        = $lang->edit;
$config->domain->actionList['edit']['data-toggle'] = 'modal';
$config->domain->actionList['edit']['data-size']   = 'sm';
$config->domain->actionList['edit']['showText']    = true;
$config->domain->actionList['edit']['url']         = array('module' => 'domain', 'method' => 'edit', 'params' => 'id={id}');

$config->domain->actionList['delete']['icon']       = 'trash';
$config->domain->actionList['delete']['text']       = $lang->delete;
$config->domain->actionList['delete']['hint']       = $lang->delete;
$config->domain->actionList['delete']['ajaxSubmit'] = true;
$config->domain->actionList['delete']['url']        = array('module' => 'domain', 'method' => 'delete', 'params' => 'id={id}');

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