'index.php?sec=ITSM&sec2=operation/ITSM/itsm', 'label' => __('ITSM'), ], [ 'link' => 'index.php?sec=ITSM&sec2=operation/ITSM/itsm&operation=list', 'label' => __('ITSM Tickets'), ], ] ); if (empty($error) === false) { ui_print_error_message($error); } if (empty($successfullyMsg) === false) { ui_print_success_message($successfullyMsg); } try { $columns = [ 'idIncidence', 'title', 'groupCompany', 'statusResolution', 'priority', 'updateDate', 'startDate', 'idCreator', 'owner', 'operation', ]; $column_names = [ __('ID'), __('Title'), __('Group').'/'.__('Company'), __('Status').'/'.__('Resolution'), __('Priority'), __('Updated'), __('Started'), __('Creator'), __('Owner'), [ 'text' => __('Op.'), 'class' => 'table_action_buttons w90px', ], ]; ui_print_datatable( [ 'id' => 'itms_list_tickets', 'class' => 'info_table', 'style' => 'width: 99%', 'columns' => $columns, 'column_names' => $column_names, 'ajax_url' => $ajaxController, 'ajax_data' => ['method' => 'getListTickets'], 'no_sortable_columns' => [ 2, 3, -1, ], 'order' => [ 'field' => 'updateDate', 'direction' => 'desc', ], 'search_button_class' => 'sub filter float-right', 'filter_main_class' => 'box-flat white_table_graph fixed_filter_bar', ] ); } catch (Exception $e) { echo $e->getMessage(); } $input_button = '
'; $input_button .= html_print_submit_button( __('Create'), '', false, ['icon' => 'next'], true ); $input_button .= '
'; html_print_action_buttons($input_button);