top.window.location = '../../ocomon/open_form/ticket_show_global.php?numero={$numero}&id={$gtID}{$rating_id}'"; exit; } if ((!isset($_SESSION['s_logado']) || !$_SESSION['s_logado']) && isset($_GET['numero']) && isset($_GET['id'])) { /* Não autenticado */ echo ""; exit; } elseif (!isset($_SESSION['s_logado']) || $_SESSION['s_logado'] == 0) { $_SESSION['session_expired'] = 1; echo ""; exit; } $auth = new AuthNew($_SESSION['s_logado'], $_SESSION['s_nivel'], 3, 1); $uareas = explode(',', (string)$_SESSION['s_uareas']); $config = getConfig($conn); $mailConfig = getMailConfig($conn); /* Posicionamento do campo de descrição do chamado: default | top | bottom */ $fieldDescriptionPosition = getConfigValue($conn, 'TICKET_DESCRIPTION_POS') ?? 'default'; /* Se é próprio solicitante */ $isRequester = false; $isResponsible = false; $isRegistrationUser = false; $allowRequestFeedback = false; ?> <?= APP_NAME; ?> <?= VERSAO; ?> query($query); $row = $resultado->fetch(); // Recursos do chamado $resources = getResourcesFromTicket($conn, $row['numero']); $resources_info = []; if (!empty($resources)) { foreach ($resources as $resource) { $modelInfo = getAssetsModels($conn, $resource['model_id'], null, null, 1, ['t.tipo_nome']); $resources_info[$resource['model_id']]['model_id'][] = $resource['model_id']; $resources_info[$resource['model_id']]['modelo_full'][] = $modelInfo['tipo'] . ' ' . $modelInfo['fabricante'] . ' ' . $modelInfo['modelo']; $resources_info[$resource['model_id']]['categoria'][] = $modelInfo['cat_name']; $resources_info[$resource['model_id']]['amount'][] = $resource['amount']; $resources_info[$resource['model_id']]['unitary_price'][] = $resource['unitary_price']; } foreach ($resources_info as $key => $value) { $resources_info[$key]['model_id'] = implode(', ', $resources_info[$key]['model_id']); $resources_info[$key]['modelo_full'] = implode(', ', $resources_info[$key]['modelo_full']); $resources_info[$key]['categoria'] = implode(', ', $resources_info[$key]['categoria']); $resources_info[$key]['amount'] = implode(', ', $resources_info[$key]['amount']); $resources_info[$key]['unitary_price'] = implode(', ', $resources_info[$key]['unitary_price']); } $resources_info = arraySortByColumn($resources_info, 'modelo_full'); } /* Resetando pois está logado e não possui o rating_id */ $GLOBALACCESS = false; /* Se não for o próprio usuário que abriu o chamado */ if ($_SESSION['s_uid'] != $row['aberto_por_cod']) { $isRegistrationUser = $_SESSION['s_uid'] == $row['registration_operator_cod']; /* Checa se tem o link global da ocorrência */ if (isset($_GET['id']) && !empty($_GET['id'])) { $gtID = str_replace(" ", "+", $_GET['id']); if ($gtID == getGlobalTicketId($conn, $row['numero'])) $GLOBALACCESS = true; } /* Checa se é admin da área */ if ($_SESSION['s_nivel'] == 3 && !$GLOBALACCESS) { if (!$isRegistrationUser) { $managebleAreas = getManagedAreasByUser($conn, $_SESSION['s_uid']); $managebleAreas = array_column($managebleAreas, 'sis_id'); $isAreaAdmin = in_array($row['aberto_por_area'], $managebleAreas); if (!$_SESSION['s_area_admin'] || !in_array($row['aberto_por_area'], $managebleAreas)) { echo message('danger', 'Ooops!', TRANS('MSG_NOT_ALLOWED'), '', '', true); exit; } } } } else { $isRequester = true; } // $onlyView = (($isRequester && !in_array($row['area_cod'], $uareas)) || $isRegistrationUser); $onlyView = (($isRequester && !in_array($row['area_cod'], $uareas)) || ($isRegistrationUser && !in_array($row['area_cod'], $uareas)) || ($isRequester && $_SESSION['s_nivel'] == 3)); /* Controle para evitar acesso ao chamado por usuarios operadores que não fazem parte da area do chamado */ // if (!$isAdmin && !$isRequester && !$isAreaAdmin) { if (!$isAdmin && !$isRequester && !$isAreaAdmin && !$isRegistrationUser) { if (!in_array($row['area_cod'], $uareas)) { ?>

'.TRANS('MSG_TICKET_NOT_ALLOWED_TO_BE_VIEWED'), '', '', true); exit; } } /* Se é o usuário que está marcado como operador do chamado */ // if ($row['operador_cod'] == $_SESSION['s_uid']) { // $isResponsible = true; // } $isResponsible = isTicketTreater($conn, $numero, $_SESSION['s_uid']); /** Controle de inatividade */ $statusToMonitor = $config['stats_to_close_by_inactivity']; $statusAnswered = $config['stat_out_inactivity']; // $isApproved = false; $isRated = isRated($conn, $COD); $showClosureOption = true; $isDone = false; $canBeRated = false; $isClosed = ($row['status_cod'] == 4 ? true : false); $isScheduled = ($row['oco_scheduled'] == 1 ? true : false); $showApprovalOption = false; $closedStatus = 4; $doneStatus = $closedStatus; $deadlineToApprove = ''; $onlyBusinessDays = ($config['conf_only_weekdays_to_count_after_done'] ? true : false); $ratedInfo = getRatedInfo($conn, $COD); $doneStatus = $config['conf_status_done']; if ($row['status_cod'] == $doneStatus) { $isDone = true; /* Checar o limite de tempo para a validacao do atendimento */ if (!empty($row['data_fechamento'])) { $deadlineToApprove = addDaysToDate($row['data_fechamento'], $config['conf_time_to_close_after_done'], $onlyBusinessDays); if (date('Y-m-d H:i:s') < $deadlineToApprove) { $showApprovalOption = ($isRequester && !$isResponsible && !$isRated ? true : false); $canBeRated = (!$isRated ? true : false); } } } $isRejected = isRejected($conn, $COD); $deadlineToApprove = ($isDone ? dateScreen($deadlineToApprove, 0, 'd/m/Y H:i') : ''); /* Se o tipo de solicitação precisar de autorização sobre o custo do chamado */ $tickets_cost_field = (!empty($config['tickets_cost_field']) ? $config['tickets_cost_field'] : ""); $isAuthorizer = false; $has_cost = false; if ($row['need_authorization']) { if ($row['authorization_status'] != 2 && $row['authorization_status'] != 3) { /* Só poderá ser concluído se for autorizado ou recusado */ $showClosureOption = false; } $cost_field_info = []; if (empty($tickets_cost_field)) { echo message('danger', 'Ooops!', TRANS('CONFIG_NEED_COST_FIELD_DEFINED'), '', '', true); } else { insertCfieldCaseNotExists($conn, $row['numero'], $tickets_cost_field); $cost_field_info = getTicketCustomFields($conn, $row['numero'], $tickets_cost_field); if (!empty($cost_field_info['field_value']) && priceDB($cost_field_info['field_value']) > 0) { $has_cost = true; } } $requesterArea = $row['area_solicitante_cod']; $possibleAuthorizers = []; if (!empty($cost_field_info)) { $possibleAuthorizers = getAreaAdmins($conn, $requesterArea, priceDB($cost_field_info['field_value'])); } if (!empty($possibleAuthorizers)) { foreach ($possibleAuthorizers as $possibleAuthorizer) { if ($possibleAuthorizer['user_id'] == $_SESSION['s_uid']) { $isAuthorizer = true; break; } } } } $authorizationTypes = [ 0 => TRANS('NOT_APPLICABLE'), 1 => TRANS('STATUS_WAITING_AUTHORIZATION'), 2 => TRANS('STATUS_AUTHORIZED'), 3 => TRANS('STATUS_REFUSED') ]; $authorizationMsgTypes = [ 0 => 'primary', 1 => 'info', 2 => 'success', 3 => 'danger' ]; $authorizationIconTypes = [ 0 => 'check', 1 => 'pause', 2 => 'check', 3 => 'exclamation-triangle' ]; $authorizationMsgType = "info"; $authorizationIcon = "check"; $renderRequestAuthorizationBT = false; $btSetCost = false; $authorizationStatus = TRANS('NOT_APPLICABLE'); if ($row['need_authorization']) { if (!$has_cost && !$isClosed && !$isDone) { $authorizationMsgType = "oc-orange"; $authorizationIcon = "comment-dollar"; $authorizationStatus = TRANS('WAITING_COST_SET'); if ($_SESSION['s_nivel'] != 3) { $btSetCost = true; } } elseif ($has_cost && empty($row['authorization_status'])) { $authorizationStatus = TRANS('WAITING_REQUEST_AUTHORIZATION'); $authorizationMsgType = "oc-orange"; $authorizationIcon = "exclamation-circle"; if ($_SESSION['s_nivel'] != 3) { $renderRequestAuthorizationBT = true; $btSetCost = true; } } elseif ($has_cost && $row['authorization_status'] == 3 && $_SESSION['s_nivel'] != 3 && empty($row['data_fechamento'])) { /* Recusados - Ainda podem ter o custo alterado */ $btSetCost = true; $authorizationStatus = $authorizationTypes[$row['authorization_status'] ?? 0]; $authorizationMsgType = $authorizationMsgTypes[$row['authorization_status'] ?? 0]; $authorizationIcon = $authorizationIconTypes[$row['authorization_status'] ?? 0]; } else { $authorizationStatus = $authorizationTypes[$row['authorization_status'] ?? 0]; $authorizationMsgType = $authorizationMsgTypes[$row['authorization_status'] ?? 0]; $authorizationIcon = $authorizationIconTypes[$row['authorization_status'] ?? 0]; } } $badgeNotification = ""; if ($btSetCost) { /* Botão para definir ou atualizar o custo */ $currentCostField = getTicketCustomFields($conn, $row['numero'], $tickets_cost_field); $currentCost = $currentCostField['field_value']; $textBTSetCost = ($currentCost > 0 ? TRANS('BT_UPDATE_COST') : TRANS('BT_SET_COST')); $renderCostBT = ''; } if ($renderRequestAuthorizationBT) { /* Botão para solicitar autorização */ $textBTRequestAuthorization = TRANS('BT_REQUEST_AUTHORIZATION'); $btRequestAuthorization = ''; } $closingTextClass = "text-white"; $closingText = TRANS('CLOSE_TICKET'); $closingText = ($showApprovalOption ? TRANS('APPROVE_AND_CLOSE') : TRANS('TREATING_DONE') ); $closingTextClass = ($isRequester && $showApprovalOption ? "text-warning font-weight-bold" : $closingTextClass); /* Checagem para saber se o usuário logado pode tratar o chamado (edição e encerramento) */ if ($_SESSION['s_nivel'] != 1) { if ($_SESSION['s_nivel'] > 2) { /* Somente-abertura não pode tratar */ $allowTreat = false; } elseif (($isRequester && !$config['conf_allow_op_treat_own_ticket']) || $onlyView) { /* Se for operador solicitante, então depende da configuração sobre se o usuário operador pode tratar chamados abertos por ele mesmo*/ $allowTreat = false; } else { $allowTreat = true; } } else { /* Admin sempre pode tratar */ $allowTreat = true; } $arrayStatusToMonitor = []; if (!empty($statusToMonitor)) { $arrayStatusToMonitor = explode(',', (string)$statusToMonitor); $alreadyRequestedFeedback = (in_array($row['status_cod'], $arrayStatusToMonitor) ? true : false); $alreadyAnswered = ($row['status_cod'] == $statusAnswered ? true : false); $allowRequestFeedback = (!$isClosed && !$isDone && !$isScheduled && !$isRequester && $isResponsible && !$alreadyRequestedFeedback && !$alreadyAnswered); } $ticketWorkers = getTicketWorkers($conn, $COD); $hasWorker = (empty($ticketWorkers) ? false : true); $mainWorker = getTicketWorkers($conn, $COD, 1); $mainWorker = (!empty($mainWorker) ? $mainWorker['user_id'] : ""); /* ASSENTAMENTOS */ if ($allowTreat) { $entries = getTicketEntries($conn, $numero, true); } else $entries = getTicketEntries($conn, $numero); $assentamentos = count($entries); // var_dump($query2); /* CHECA SE A OCORRÊNCIA É SUB CHAMADO */ $sqlPai = "select * from ocodeps where dep_filho = " . $COD . " "; $execpai = $conn->query($sqlPai); $rowPai = $execpai->fetch(); if ($rowPai && $rowPai['dep_pai'] != "") { $msgPai = TRANS('FIELD_OCCO_SUB_CALL') . "" . $rowPai['dep_pai'] . ""; } else $msgPai = ""; $storeParent = []; $storeSons = []; $relations = []; $firstOfAll = getFirstFather($conn, $COD, $storeParent); if ($firstOfAll) { $relations = getTicketDownRelations($conn, $firstOfAll, $storeSons); } /* INÍCIO DAS CHECAGENS PARA A MONTAGEM DO MENU DE OPÇÕES */ $showItemClosure = false; $showItemEdit = false; $showItemAttend = false; $showItemOpenSubcall = false; $showItemReopen = false; $showItemPrint = true; $showItemSla = true; $showItemDocTime = false; /* Essa função será removida - pouca utilidade e muito onerosa */ $showItemSendMail = false; $showItemHistory = true; $showItemSchedule = false; $itemClosure = ""; $itemEdit = ""; $itemAttend = ""; $itemOpenSubcall = ""; $itemReopen = ""; $itemPrint = "print_ticket.php?numero=" . $row['numero']; /* TRANS('FIELD_PRINT_OCCO') */ $itemSla = "mostra_sla_definido.php?popup=true&numero=" . $row['numero']; /* TRANS('COL_SLA') */ $itemDocTime = "tempo_doc.php?popup=true&cod=" . $row['numero']; /* TRANS('FIELD_TIME_DOCUMENTATION') */ $itemSendMail = ""; $itemHistory = "ticket_history.php?numero=" . $row['numero']; if ($showApprovalOption) { $showItemClosure = false; /* Mudar pra true para exibir o menu */ $itemClosure = " onClick=\"approvingTicket({$row['numero']})\""; } else { if ($row['status_cod'] != 4 && $row['status_cod'] != $doneStatus && $allowTreat) { $showItemClosure = $showClosureOption; $itemClosure = "href=\"ticket_close.php?numero={$row['numero']}\""; $showItemSchedule = true; } } $showAddResources = false; if ($allowTreat && !$isClosed && !$isDone) { $showAddResources = true; $showItemEdit = true; $itemEdit = "ticket_edit.php?numero=" . $row['numero']; /* TRANS('BT_EDIT') */ } if ($row['stat_painel_cod'] != 1 && $row['stat_painel_cod'] != 3 && ($allowTreat)) { $showItemAttend = true; } if (!$isClosed && !$isDone && $allowTreat) { $showItemOpenSubcall = true; $itemOpenSubcall = "ticket_add.php?pai=" . $row['numero']; } /** * Só permite reabertura para o usuário solicitante ou operador técnico (do próprio chamado) * dentro do prazo limite pós encerramento e se o chamado não tiver sido aprovado e avaliado. */ // if ($row['status_cod'] == 4 && $config['conf_allow_reopen'] && ($isRequester || $isResponsible) && !$isRated) { /* A partir da implementação da avaliação dos atendimento, agora somente os responsáveis pelo chamado podem reabrir */ if (($isClosed || $isDone) && $config['conf_allow_reopen'] && $isResponsible && !$isRated) { /* Checar o limite de tempo */ if ($config['conf_reopen_deadline']) { $date1 = new DateTime($row['data_fechamento']); $date2 = new DateTime(); if ($date1->diff($date2)->days <= $config['conf_reopen_deadline']) { $showItemReopen = true; } else { $showItemReopen = false; } } else { // $showItemReopen = ($isRequester && !$isResponsible && $isDone ? false : true); $showItemReopen = true; } } if ($allowTreat && $mailConfig['mail_send']) { $showItemSendMail = true; $itemSendMail = "form_send_mail.php?popup=true&numero=" . $row['numero']; /* TRANS('SEND_EMAIL') */ } /* final das chegagens para a montagem do menu de opções */ /* INÍCIO DAS CONSULTAS REFERENTES À OCORRÊNCIA */ // $issueDetails = (!empty($row['prob_cod']) && $row['prob_cod'] != '-1' ? getIssueDetailed($conn, $row['prob_cod'])[0] : []); $issueDetails = (!empty($row['prob_cod']) && $row['prob_cod'] != '-1' ? getIssueDetailed($conn, $row['prob_cod']) : []); $issueDetails = (!empty($issueDetails) && $issueDetails[0] ? $issueDetails[0] : []); $descricao = ""; if (isset($_GET['destaca'])) { $descricao = destaca($_GET['destaca'], toHtml(nl2br($row['descricao']))); } else { $descricao = toHtml(nl2br($row['descricao'])); } $descricao = (new \Html2Text\Html2Text(safeStrip($descricao)))->getText(); $ShowlinkScript = ""; $qryScript = "SELECT * FROM prob_x_script WHERE prscpt_prob_id = " . $row['prob_cod'] . ""; $execQryScript = $conn->query($qryScript); if ($execQryScript->rowCount() > 0) $ShowlinkScript = ""; $global_link = getGlobalUri($conn, $_GET['numero']); $dateOpen = (!empty($row['oco_real_open_date'] && $row['oco_real_open_date'] != '0000-00-00 00:00:00') ? formatDate($row['oco_real_open_date']) : formatDate($row['data_abertura'])); $dateClose = formatDate($row['data_fechamento']); $dateLastSchedule = formatDate($row['oco_scheduled_to']); $dateScheduleTo = ""; $timeScheduleTo = ""; $dateRealOpen = formatDate($row['oco_real_open_date']); $scriptSolution = ""; if ($isClosed || $isDone) { if ($row['data_abertura'] != $row['oco_real_open_date'] && $row['oco_real_open_date'] != '0000-00-00 00:00:00') { $dateLastSchedule = formatDate($row['data_abertura']); $dateClose = formatDate($row['data_fechamento']); $dateRealOpen = formatDate($row['oco_real_open_date']); } else { // $dateOpen = formatDate($row['data_abertura']); $dateOpen = (!empty($row['oco_real_open_date'] && $row['oco_real_open_date'] != '0000-00-00 00:00:00') ? formatDate($row['oco_real_open_date']) : formatDate($row['data_abertura'])); $dateClose = formatDate($row['data_fechamento']); } $scriptSolution = $row['script_desc']; } else { if ($isScheduled) { // $dateOpen = formatDate($row['data_abertura']); $dateOpen = (!empty($row['oco_real_open_date'] && $row['oco_real_open_date'] != '0000-00-00 00:00:00') ? formatDate($row['oco_real_open_date']) : formatDate($row['data_abertura'])); // $dateScheduleTo = formatDate($row['oco_scheduled_to']); $dateScheduleTo = dateScreen($row['oco_scheduled_to'], 0, 'd/m/Y H:i'); $timeScheduleTo = explode(" ", $row['oco_scheduled_to'])[1]; } else { // $dateOpen = formatDate($row['data_abertura']); $dateOpen = (!empty($row['oco_real_open_date'] && $row['oco_real_open_date'] != '0000-00-00 00:00:00') ? formatDate($row['oco_real_open_date']) : formatDate($row['data_abertura'])); // $dateScheduleTo = formatDate($row['oco_scheduled_to']); } if ($row['data_abertura'] != $row['oco_real_open_date'] && $row['oco_real_open_date'] != '0000-00-00 00:00:00' && !empty($row['oco_real_open_date'])) { $dateLastSchedule = formatDate($row['data_abertura']); $dateRealOpen = formatDate($row['oco_real_open_date']); } } $qryMail = "SELECT * FROM mail_hist m, usuarios u WHERE m.mhist_technician=u.user_id AND m.mhist_oco=" . $COD . " ORDER BY m.mhist_date"; $execMail = $conn->query($qryMail); $emails = $execMail->rowCount(); $sqlFiles = "select * from imagens where img_oco = " . $COD . ""; $resultFiles = $conn->query($sqlFiles); $hasFiles = $resultFiles->rowCount(); /* FINAL DAS CONSULTAS REFERENTES À OCORRÊNCIA */ $colLabel = "col-sm-3 text-md-right font-weight-bold p-2"; $colsDefault = "small text-break border-bottom rounded p-2 bg-white"; /* border-secondary */ $colContent = $colsDefault . " col-sm-3 col-md-3"; $colContentLine = $colsDefault . " col-sm-9"; $colContentLineFile = " text-break border-bottom rounded p-2 bg-white col-sm-9"; // $colContentDescription = "small text-break border border-secondary rounded p-2 bg-white col-sm-9"; $colContentDescription = "small text-break alert alert-secondary rounded p-4 bg-white col-sm-9"; $ticketAuxWorkers = getTicketWorkers($conn, $COD, 2); $selectAuxWorkers = []; if (!empty($ticketAuxWorkers)) { foreach ($ticketAuxWorkers as $aux) { $selectAuxWorkers[] = $aux['user_id']; } } $selectAuxWorkersJs = json_encode($selectAuxWorkers); ?>
$isDone, // 'isRequester' => $isRequester, // 'isClosed' => $isClosed, // ]); // if ($isRegistrationUser) { if ($isRegistrationUser && !$isRequester && !$isAdmin && !$isAreaAdmin && !$isResponsible && (!in_array($row['area_cod'], $uareas))) { $msg_registration_user = TRANS('MSG_JUST_REGISTRATION_OPERATOR'); ?>
' .TRANS('DEADLINE_TO_APPROVE'). ': ' . $deadlineToApprove .''; ?>
' .TRANS('DEADLINE_TO_APPROVE'). ': ' . $deadlineToApprove .''; ?>
'; ?>
 
 
" . TRANS("SATS") . " " . $worktimeSets['sat']; $renderWtSets .= "
" . TRANS("SUNS") . " " . $worktimeSets['sun']; $renderWtSets .= "
" . TRANS("MNL_FERIADOS") . " " . $worktimeSets['off']; } ?>
$catKey) { if (!empty($issueDetails[$catKey]) && strlen($issueDetails[$catKey]) > 1) { $arrayCategories[] = $groupNames[$key] . ": " . $issueDetails[$catKey]; } } $categories = implode(",", $arrayCategories); ?>
" . $aux['nome']. ""; } } ?>
" . $row['pr_descricao'] . ""; ?>
" . $row['chamado_status'] . ""; /* font-size: 16px; */ ?>
$field) { if (!empty($field)) { if (!empty($hiddenCustomFields) && in_array($field['field_id'], $hiddenCustomFields)) { unset($custom_fields[$key]); } } } $number_of_collumns = 2; if (count($custom_fields) && !empty($custom_fields[0]['field_id'])) { ?>

'; } elseif ($field['field_type'] == 'textarea') { $isTextArea = true; } $field_value = (!empty($field_value) && $highlightCost ? ''.TRANS("CURRENCY").' ' . $field_value . '' : $field_value); $col = ($col > $number_of_collumns ? 1 : $col); if ($col == 1) { ?>
0 ? '' : ' disabled'); $ariaDisabledAssent = ($assentamentos > 0 ? '' : ' true'); $classDisabledEmails = ($emails > 0 ? '' : ' disabled'); $ariaDisabledEmails = ($emails > 0 ? '' : ' true'); $classDisabledFiles = ($hasFiles > 0 ? '' : ' disabled'); $ariaDisabledFiles = ($hasFiles > 0 ? '' : ' true'); $classDisabledSubs = ($firstOfAll ? '' : ' disabled'); $ariaDisabledSubs = ($firstOfAll ? '' : ' true'); ?>
fetchAll() as $rowAsset) { $transAssetText = ""; if ($rowAsset['asset_privated'] == 1) { $transAssetText = "" . TRANS('CHECK_ASSET_PRIVATED') . ""; } else { $transAssetText = "" . TRANS('CHECK_ASSET_PUBLIC') . ""; } /* Badge da primeira resposta */ $badgeFirstResponse = ""; if (!empty($row['data_atendimento']) && $row['data_atendimento'] == $rowAsset['created_at']) { $badgeFirstResponse = ' ' . TRANS('FIRST_RESPONSE') . ''; } $author = $rowAsset['nome'] ?? TRANS('AUTOMATIC_PROCESS'); ?>
#
fetchAll() as $rowMail) { $limite = 30; $shortBody = trim($rowMail['mhist_body']); $shortBody = toHtml(nl2br($shortBody)); $shortBody = (new \Html2Text\Html2Text(safeStrip($shortBody)))->getText(); if (strlen((string)$shortBody) > $limite) { $shortBody = substr($shortBody, 0, ($limite - 4)) . "..."; } ?>
#
fetchAll() as $rowFiles) { $size = round($rowFiles['img_size'] / 1024, 1); $rowFiles['img_tipo'] . "](" . $size . "k)"; if (isImage($rowFiles["img_tipo"])) { $viewImage = " "; } else { $viewImage = ""; } ?>
#
k
$relation) { /* Deve exibir apenas os demais chamados relacionados não exibindo o próprio */ if ($ticketNumber != $COD) { $label = ""; $qryDetail = $QRY["ocorrencias_full_ini"] . " WHERE o.numero = " . $ticketNumber . " "; $execDetail = $conn->query($qryDetail); $rowDetail = $execDetail->fetch(); if ($rowDetail['data_abertura'] <= $row['data_abertura']) { $label = ""; } else { $label = ""; } $texto = noHtml($rowDetail['descricao']); if (strlen((string)$texto) > 200) { $texto = substr($texto, 0, 195) . " ..... "; }; ?>
" . TRANS('COL_PHONE'); ?> " . TRANS('DESCRIPTION'); ?> " . TRANS('COL_STATUS'); ?>
  " . noHtml($rowDetail['telefone']); ?> " . $texto; ?> " . $rowDetail['chamado_status']; ?>