'', 'label' => __('Servers'), ], ] ); if (empty($message) === false) { echo $message; } // Auxiliar to display deletion modal. echo ''; echo ''; // Consoles list. try { $columns = [ 'id_console', 'description', 'version', 'last_execution', 'console_type', 'timezone', 'public_url', 'options', ]; $column_names = [ __('Console ID'), __('Description'), __('Version'), __('Last Execution'), __('Console type'), __('Timezone'), __('Public URL'), [ 'text' => __('Options'), 'class' => 'action_buttons', ], ]; $tableId = 'consoles_list'; // Load datatables user interface. ui_print_datatable( [ 'id' => $tableId, 'class' => 'info_table', 'style' => 'width: 99%', 'columns' => $columns, 'column_names' => $column_names, 'ajax_url' => 'include/ajax/consoles.ajax', 'ajax_data' => ['get_all_datatables_formatted' => 1], 'ajax_postprocess' => 'process_datatables_item(item)', 'no_sortable_columns' => [-1], 'order' => [ 'field' => 'id', 'direction' => 'asc', ], ] ); } catch (Exception $e) { echo $e->getMessage(); } ?>