".__('Zero results found')."
\n"; } else { $table->cellpadding = 4; $table->cellspacing = 4; $table->width = '98%'; $table->class = 'databox'; $table->align = []; $table->align[4] = 'center'; $table->head = []; // $table->head[0] = __('ID').' '.''.html_print_image('images/sort_up.png', true, ['style' => $selectpolicieIDUp]).''.''.html_print_image('images/sort_down.png', true, ['style' => $selectpolicieIDDown]).''; $table->head[0] = __('Name').' '.''.html_print_image('images/sort_up.png', true, ['style' => $selectNameUp]).''.''.html_print_image('images/sort_down.png', true, ['style' => $selectNameDown]).''; $table->head[1] = __('Description').' '.''.html_print_image('images/sort_up.png', true, ['style' => $selectDescriptionUp]).''.''.html_print_image('images/sort_down.png', true, ['style' => $selectDescriptionDown]).''; $table->head[2] = __('Id_group').' '.''.html_print_image('images/sort_up.png', true, ['style' => $selectId_groupUp]).''.''.html_print_image('images/sort_down.png', true, ['style' => $selectId_groupDown]).''; $table->head[3] = __('Status').' '.''.html_print_image('images/sort_up.png', true, ['style' => $selectStatusUp]).''.''.html_print_image('images/sort_down.png', true, ['style' => $selectstatusDown]).''; $table->data = []; foreach ($policies as $policie) { $policieIDCell = "".$policies['id'].''; switch ($policie['status']) { case POLICY_UPDATED: $status = html_print_image( 'images/policies_ok.png', true, ['title' => __('Policy updated')] ); break; case POLICY_PENDING_DATABASE: $status = html_print_image( 'images/policies_error_db.png', true, ['title' => __('Pending update policy only database')] ); break; case POLICY_PENDING_ALL: $status = html_print_image( 'images/policies_error.png', true, ['title' => __('Pending update policy')] ); break; } $url = $config['homeurl'].'/index.php?'.'sec=gmodules&'.'sec2=enterprise/godmode/policies/policies&id='.$policie['id'].''; array_push( $table->data, [ // $policie['id'], ''.$policie['name'].'', $policie['description'], ui_print_group_icon($policie['id_group'], true), $status, ] ); } $totalPolicies = count($policies); echo '
'; html_print_table($table); unset($table); ui_pagination($totalPolicies); }