'; $url_link .= __('metaconsole'); $url_link .= ''; } else { $url_link = __('any node'); } \ui_print_warning_message( __( 'This node is configured with centralized mode. All alert calendar information is read only. Go to %s to manage it.', $url_link ) ); } if (empty($message) === false) { echo $message; } // Datatables list. try { $columns = [ [ 'text' => 'id', 'class' => 'invisible', ], 'name', 'id_group', 'description', [ 'text' => 'options', 'class' => 'w150px table_action_buttons', ], ]; $column_names = [ __('ID'), __('Name'), __('Group'), __('Description'), __('Options'), ]; $tableId = 'calendar_list'; // Load datatables user interface. ui_print_datatable( [ 'id' => $tableId, 'class' => 'info_table', 'style' => 'width: 100%', 'columns' => $columns, 'column_names' => $column_names, 'ajax_url' => $ajax_url, 'ajax_data' => ['method' => 'drawListCalendar'], 'no_sortable_columns' => [-1], 'order' => [ 'field' => 'id', 'direction' => 'asc', ], 'search_button_class' => 'sub filter float-right', 'form' => [ 'inputs' => [ [ 'label' => __('Free search'), 'type' => 'text', 'class' => 'mw250px', 'id' => 'free_search', 'name' => 'free_search', ], ], ], ] ); } catch (Exception $e) { echo $e->getMessage(); } if ((bool) check_acl($config['id_user'], 0, 'LM') === true) { HTML::printForm( [ 'form' => [ 'action' => $url.'&op=edit', 'method' => 'POST', ], 'inputs' => [ [ 'arguments' => [ 'name' => 'button', 'label' => __('Create'), 'type' => 'submit', 'attributes' => 'class="sub next"', ], ], ], ] ); } \enterprise_hook('close_meta_frame');