* * This program is free software; you can redistribute it and/or modify * it under the terms of the GNU General Public License as published by * the Free Software Foundation; either version 3 of the License, or * (at your option) any later version. * * This program is distributed in the hope that it will be useful, * but WITHOUT ANY WARRANTY; without even the implied warranty of * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the * GNU General Public License for more details. * * You should have received a copy of the GNU General Public License * along with this program; if not, write to the Free Software * Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA. * */ // Protection to avoid direct call of template if (empty($conf) || !is_object($conf)) { print "Error, template page can't be called as URL"; exit; } dol_include_once('/multicompany/admin/tpl/switch.tpl.php'); $colHidden = (!empty($conf->global->MULTICOMPANY_COLHIDDEN) ? implode(",", json_decode($conf->global->MULTICOMPANY_COLHIDDEN, true)) : null); $colOrder = (!empty($conf->global->MULTICOMPANY_COLORDER) ? json_decode($conf->global->MULTICOMPANY_COLORDER, true) : array('id' => 0, 'direction' => 'asc')); $columns = array(); $columns['id'] = array( 'label' => 'ID', 'sortable' => true, 'searchable' => true, 'priority' => 12, 'center' => 'dt-center' ); $columns['label'] = array( 'label' => 'Label', 'sortable' => true, 'searchable' => true, 'priority' => 1, ); $columns['description'] = array( 'label' => 'Description', 'sortable' => true, 'searchable' => true, 'priority' => 11, ); $columns['name'] = array( 'label' => 'Name', 'priority' => 10, 'center' => 'dt-center' ); $columns['zip'] = array( 'label' => 'Zip', 'priority' => 9, 'center' => 'dt-center' ); $columns['town'] = array( 'label' => 'Town', 'priority' => 8, 'center' => 'dt-center' ); $columns['country'] = array( 'label' => 'Country', 'priority' => 7, 'center' => 'dt-center' ); $columns['currency'] = array( 'label' => 'Currency', 'priority' => 6, 'center' => 'dt-center' ); $columns['language'] = array( 'label' => 'DefaultLanguageShort', 'priority' => 5, 'center' => 'dt-center' ); if (!empty($this->tpl['extrafields']->attribute_label)) { foreach ($this->tpl['extrafields']->attribute_label as $key => $value) { $columns[$key] = array( 'label' => $value, 'center' => 'dt-center' ); } } $columns['visible'] = array( 'label' => 'Visible', 'width' => '20px', 'priority' => 3, 'center' => 'dt-center' ); $columns['active'] = array( 'label' => 'Status', 'width' => '20px', 'priority' => 2, 'center' => 'dt-center' ); $columns['tools'] = array( 'label' => 'Tools', 'width' => '50px', 'priority' => 4, 'center' => 'dt-center' ); //var_dump($columns); ?> $values) { //$moreattr = (!empty($values['priority'])?'data-priority="'.$values['priority'].'"':''); echo getTitleFieldOfList($values['label'], 1, '', '', '', '', '', '', '', 'entity_' . $key . ' '); } ?>
trans('LoadingDataFromServer'); ?>
?action=create">trans('AddEntity'); ?>