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

$config->service->dtable->fieldList['id']['title']    = $lang->idAB;
$config->service->dtable->fieldList['id']['type']     = 'ID';
$config->service->dtable->fieldList['id']['fixed']    = 'left';
$config->service->dtable->fieldList['id']['sortType'] = true;

$config->service->dtable->fieldList['name']['fixed']    = 'left';
$config->service->dtable->fieldList['name']['title']    = $lang->service->name;
$config->service->dtable->fieldList['name']['flex']     = 1;
$config->service->dtable->fieldList['name']['type']     = 'title';
$config->service->dtable->fieldList['name']['sortType'] = true;
$config->service->dtable->fieldList['name']['link']     = array('url' => array('module' => 'service', 'method' => 'view', 'params' => 'serviceID={id}'));

$config->service->dtable->fieldList['softName']['title']    = $lang->service->softName;
$config->service->dtable->fieldList['softName']['type']     = 'text';
$config->service->dtable->fieldList['softName']['sortType'] = true;
$config->service->dtable->fieldList['softName']['width']    = '100';

$config->service->dtable->fieldList['hosts']['title']     = $lang->service->host;
$config->service->dtable->fieldList['hosts']['type']      = 'text';
$config->service->dtable->fieldList['hosts']['width']     = '100';
$config->service->dtable->fieldList['hosts']['delimiter'] = ',';
$config->service->dtable->fieldList['hosts']['map']       = array();

$config->service->dtable->fieldList['entry']['title']    = $lang->service->entry;
$config->service->dtable->fieldList['entry']['type']     = 'text';
$config->service->dtable->fieldList['entry']['sortType'] = true;
$config->service->dtable->fieldList['entry']['width']    = '100';

$config->service->dtable->fieldList['port']['title']    = $lang->service->port;
$config->service->dtable->fieldList['port']['type']     = 'text';
$config->service->dtable->fieldList['port']['sortType'] = true;
$config->service->dtable->fieldList['port']['width']    = '100';

$config->service->dtable->fieldList['deploy']['title']    = $lang->service->deploy;
$config->service->dtable->fieldList['deploy']['type']     = 'text';
$config->service->dtable->fieldList['deploy']['sortType'] = true;
$config->service->dtable->fieldList['deploy']['width']    = '100';

$config->service->dtable->fieldList['external']['title']    = $lang->service->external;
$config->service->dtable->fieldList['external']['type']     = 'text';
$config->service->dtable->fieldList['external']['sortType'] = true;
$config->service->dtable->fieldList['external']['width']    = '100';
$config->service->dtable->fieldList['external']['map']      = $lang->service->externalList;

$config->service->dtable->fieldList['actions']['type'] = 'actions';
$config->service->dtable->fieldList['actions']['list'] = $config->service->actionList;
$config->service->dtable->fieldList['actions']['menu'] = array('edit', 'delete');
