<?php
global $lang, $app;
$config->publishtemplate->dtable = new stdClass();
$config->publishtemplate->dtable->spug = new stdclass();
$config->publishtemplate->dtable->spug->fieldList['name']['title']    = $lang->publishtemplate->name;
$config->publishtemplate->dtable->spug->fieldList['name']['name']     = 'name';
$config->publishtemplate->dtable->spug->fieldList['name']['type']     = 'text';
$config->publishtemplate->dtable->spug->fieldList['name']['sortType'] = true;

$config->publishtemplate->dtable->spug->fieldList['productName']['title']    = $lang->publishtemplate->productName;
$config->publishtemplate->dtable->spug->fieldList['productName']['name']     = 'productName';
$config->publishtemplate->dtable->spug->fieldList['productName']['type']     = 'text';

$config->publishtemplate->dtable->spug->fieldList['systemID']['title']    = $lang->publishtemplate->systemID;
$config->publishtemplate->dtable->spug->fieldList['systemID']['name']     = 'systemID';
$config->publishtemplate->dtable->spug->fieldList['systemID']['type']     = 'text';
$config->publishtemplate->dtable->spug->fieldList['systemID']['sortType'] = true;

$config->publishtemplate->dtable->spug->fieldList['envID']['title']    = $lang->publishtemplate->envID;
$config->publishtemplate->dtable->spug->fieldList['envID']['name']     = 'envID';
$config->publishtemplate->dtable->spug->fieldList['envID']['type']     = 'text';
$config->publishtemplate->dtable->spug->fieldList['envID']['sortType'] = true;

$config->publishtemplate->dtable->spug->fieldList['hosts']['title'] = $lang->publishtemplate->hostNum;
$config->publishtemplate->dtable->spug->fieldList['hosts']['name']  = 'hostNum';
$config->publishtemplate->dtable->spug->fieldList['hosts']['type']  = 'text';

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

$config->publishtemplate->dtable->cne = new stdclass();
$config->publishtemplate->dtable->cne->fieldList['name']['title']    = $lang->publishtemplate->name;
$config->publishtemplate->dtable->cne->fieldList['name']['name']     = 'name';
$config->publishtemplate->dtable->cne->fieldList['name']['type']     = 'text';
$config->publishtemplate->dtable->cne->fieldList['name']['sortType'] = true;

$config->publishtemplate->dtable->cne->fieldList['productName']['title'] = $lang->publishtemplate->productName;
$config->publishtemplate->dtable->cne->fieldList['productName']['name']  = 'productName';
$config->publishtemplate->dtable->cne->fieldList['productName']['type']  = 'text';

$config->publishtemplate->dtable->cne->fieldList['systemID']['title']    = $lang->publishtemplate->systemID;
$config->publishtemplate->dtable->cne->fieldList['systemID']['name']     = 'systemID';
$config->publishtemplate->dtable->cne->fieldList['systemID']['type']     = 'text';
$config->publishtemplate->dtable->cne->fieldList['systemID']['sortType'] = true;

// $config->publishtemplate->dtable->cne->fieldList['envID']['title']    = $lang->publishtemplate->envID;
// $config->publishtemplate->dtable->cne->fieldList['envID']['name']     = 'envID';
// $config->publishtemplate->dtable->cne->fieldList['envID']['type']     = 'text';
// $config->publishtemplate->dtable->cne->fieldList['envID']['sortType'] = true;

// $config->publishtemplate->dtable->cne->fieldList['clusterID']['title']    = $lang->publishtemplate->clusterID;
// $config->publishtemplate->dtable->cne->fieldList['clusterID']['name']     = 'clusterID';
// $config->publishtemplate->dtable->cne->fieldList['clusterID']['type']     = 'text';
// $config->publishtemplate->dtable->cne->fieldList['clusterID']['sortType'] = true;

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