top.window.location = '../../index.php'"; exit; } require_once __DIR__ . "/" . "../../includes/include_geral_new.inc.php"; require_once __DIR__ . "/" . "../../includes/classes/ConnectPDO.php"; use includes\classes\ConnectPDO; $conn = ConnectPDO::getInstance(); $auth = new AuthNew($_SESSION['s_logado'], $_SESSION['s_nivel'], 2, 1); $_SESSION['s_page_ocomon'] = $_SERVER['PHP_SELF']; function ordenaPorColunas($array, $col) { ksort($array); $arrayIndexado = array(); $i = 0; foreach ($array as $nome => $link) { $arrayIndexado[$i][$nome] = $link; $i++; } $tamanho = count($array); //quantidade de elementos do array $partlen = floor($tamanho / $col); //quantidade de elementos por coluna (ajustar o valor do resto da divisao) $resto = $tamanho % $col; $arrayLinha = array(); $i = 0; $elemento = 1; // $coluna_size = 0; $collumnIndex = 0; $cont = 0; $colunaX = array(); for ($j = 0; $j < $col; $j++) { $colunaX[$j] = $partlen; if ($resto > 0) { $colunaX[$j] = $partlen + 1; $resto--; } } // foreach ($arrayIndexado as $indice => $array2) { foreach ($arrayIndexado as $array2) { foreach ($array2 as $nome => $link) { $arrayLinha[$i][$nome] = $link; if ($elemento < $colunaX[$cont]) { $elemento++; } else { $elemento = 1; $collumnIndex++; $cont++; $i = $collumnIndex; } if ($elemento != 1) { $i += $col; } } } ksort($arrayLinha); return $arrayLinha; } $colunas = 3; $listItem = array(); $itemIcon = array(); $listItem[TRANS('REP_PROB_AREA')] = "relatorio_problemas_areas.php"; $listItem[TRANS('DEPARTMENTS_MOST_ACTIVES')] = "relatorio_setores_areas.php"; $listItem[TRANS('TLT_REPORT_SLAS')] = "relatorio_slas_worktime.php"; $listItem[TRANS('TLT_REPORT_CALL_FOR_EQUIP')] = "chamados_x_etiqueta.php"; // $listItem[TRANS('TREATINGS_BY_TECHNITIAN')] = "relatorio_operadores_areas.php"; // $listItem[TRANS('TREATINGS_BY_TECHNITIAN')] = "report_workers.php"; $listItem[TRANS('TOP_10_CONTACTS')] = "relatorio_usuarios_areas.php"; $listItem[TRANS('TTL_REP_QTD_CALL_AREA_PERIOD')] = "relatorio_chamados_area.php"; $listItem[TRANS('TTL_REP_CALL_OPEN_USER_FINISH')] = "relatorio_usuario_final.php"; $listItem[TRANS('PROBLEM_TYPES_CATEGORIES')] = "relatorio_chamados_categorias.php"; $listItem[TRANS('TICKETS_BY_STATUS')] = "relatorio_chamados_status.php"; $listItem[TRANS('TAGGING_CLOUD_REPORT')] = "tagCloud.php"; $listItem[TRANS('REPORT_CLIENTS')] = "report_clients.php"; // $listItem[TRANS('CLOSURES_BY_TECHNITIAN')] = "report_main_workers.php"; $listItem[TRANS('REPORT_TICKETS_BY_RATE')] = "report_tickets_rates.php"; // $listItem[TRANS('TICKETS_IN_PERIOD')] = "report_tickets_holistic.php"; $listItem[TRANS('TTL_REP_QTD_CALL_AREA_PERIOD_PLUS')] = "relatorio_chamados_area_plus.php"; $listItem[TRANS('REPORT_BY_RESOURCES')] = "report_by_resources.php"; $listItem[TRANS('REPORT_STATUS_CHANGES')] = "report_status_changes.php"; $listItem[TRANS('TREATING_TIMES')] = "report_treating_times.php"; $itemIcon[TRANS('REP_PROB_AREA')] = ""; $itemIcon[TRANS('DEPARTMENTS_MOST_ACTIVES')] = ""; $itemIcon[TRANS('TLT_REPORT_SLAS')] = ""; $itemIcon[TRANS('TLT_REPORT_CALL_FOR_EQUIP')] = ""; // $itemIcon[TRANS('TREATINGS_BY_TECHNITIAN')] = ""; $itemIcon[TRANS('TOP_10_CONTACTS')] = ""; $itemIcon[TRANS('TTL_REP_QTD_CALL_AREA_PERIOD')] = ""; $itemIcon[TRANS('TTL_REP_CALL_OPEN_USER_FINISH')] = ""; $itemIcon[TRANS('PROBLEM_TYPES_CATEGORIES')] = ""; $itemIcon[TRANS('TICKETS_BY_STATUS')] = ""; $itemIcon[TRANS('TAGGING_CLOUD_REPORT')] = ""; $itemIcon[TRANS('REPORT_CLIENTS')] = ""; // $itemIcon[TRANS('CLOSURES_BY_TECHNITIAN')] = ""; $itemIcon[TRANS('REPORT_TICKETS_BY_RATE')] = ""; // $itemIcon[TRANS('TICKETS_IN_PERIOD')] = ""; $itemIcon[TRANS('TTL_REP_QTD_CALL_AREA_PERIOD_PLUS')] = ""; $itemIcon[TRANS('REPORT_BY_RESOURCES')] = ""; $itemIcon[TRANS('REPORT_STATUS_CHANGES')] = ""; $itemIcon[TRANS('TREATING_TIMES')] = ""; $listItem[TRANS('CUSTOM_FIELD_REPORT')] = "report_custom_fields.php"; $itemIcon[TRANS('CUSTOM_FIELD_REPORT')] = ""; $listItem[TRANS('REPORT_TICKETS_TREATING_TIMES')] = "report_tickets_times.php"; $itemIcon[TRANS('REPORT_TICKETS_TREATING_TIMES')] = ""; $listItem[TRANS('REPORT_TREATINGS_AND_PARTICIPATIONS')] = "report_ultimate_treatings_by_operators.php"; $itemIcon[TRANS('REPORT_TREATINGS_AND_PARTICIPATIONS')] = ""; ?> <?= APP_NAME; ?> <?= VERSAO; ?>
 
  .
$value) { $class = (isImpar($j) ? 'lin_par' : 'lin_impar'); if ($ctdTD == 1) { ?> " . $itemIcon[$key] . " " . $key . ""; print ""; if ($ctdTD == $colunas) { ?>
" . $itemIcon[$key] . " " . $key . "