'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', 'form' => [ 'inputs' => [ [ 'label' => __('Free search'), 'type' => 'text', 'id' => 'string', 'name' => 'string', ], [ 'label' => __('Status'), 'type' => 'select', 'name' => 'status', 'fields' => $status, 'nothing' => __('Any'), 'nothing_value' => null, ], [ 'label' => __('Priorities'), 'type' => 'select', 'name' => 'priority', 'fields' => $priorities, 'nothing' => __('Any'), 'nothing_value' => null, ], [ 'label' => __('Group'), 'type' => 'select', 'name' => 'idGroup', 'fields' => $groups, 'nothing' => __('Any'), 'nothing_value' => null, ], [ 'label' => __('Creation date'), 'type' => 'interval', 'name' => 'fromDate', 'value' => 0, 'nothing' => __('Any'), 'nothing_value' => 0, ], ], ], 'filter_main_class' => 'box-flat white_table_graph fixed_filter_bar ', ] ); } catch (Exception $e) { echo $e->getMessage(); } $input_button = '
'; html_print_action_buttons($input_button);