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(); $areaAdmin = 0; $areaId = (isset($_GET['area']) && !empty($_GET['area']) ? $_GET['area'] : ''); $action = ''; $allowedActions = ['edit', 'delete']; if (isset($_GET['action']) && in_array($_GET['action'], $allowedActions)) { $action = $_GET['action']; } if (empty($areaId)) { echo message('danger', 'Ooops', TRANS('MSG_ERR_NOT_EXECUTE'), '', '', true); exit; } $areaInfo = getAreaInfo($conn, $areaId); $auth = new AuthNew($_SESSION['s_logado'], $_SESSION['s_nivel'], 1); ?> <?= APP_NAME; ?> <?= VERSAO; ?>

 

query($query); $registros = $resultado->rowCount(); if ((!isset($_GET['action'])) && !isset($_POST['submit'])) { ?> ' . echo message('info', '', TRANS('SELECTED_AREA') . ': ' . $areaInfo['area_name'] . '', '', '', true, 'fas fa-arrow-right'); ?>

: 

fetchall() as $row) { // $tr_class = ''; $active = ($row['prob_active'] ? '' : ''); $tr_class = (empty($active) ? 'table-danger': ''); /* Exceções para áreas de atendimento */ $exception_areas = []; $button_class = 'text-secondary area-ban'; $hint = ''; $exception_function = ''; $disable = ' disabled'; if (empty($row['sistema']) || $row['sistema'] == '-1') { /* Permite alteração de visibilidade apenas para tipos de problemas ativos no sistema */ if (!empty($active)) { $disable = ''; $button_class = 'text-primary issue-shown'; $hint = TRANS('DONT_SHOW_TO_THIS_AREA'); $exception_function = 'confirmAddExceptionModal'; if (!empty($row['prob_not_area'])) { $exception_areas = explode(',', $row['prob_not_area']); if (in_array($areaId, $exception_areas)) { $button_class = 'text-danger issue-hidden'; $hint = TRANS('SHOW_AGAIN_TO_THIS_AREA'); $exception_function = 'confirmRemoveExceptionModal'; $tr_class = 'table-danger'; } } } } ?>
' : $row['probt1_desc']); ?> ' : $row['probt2_desc']); ?> ' : $row['probt3_desc']); ?>