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'], 1); $_SESSION['s_page_admin'] = $_SERVER['PHP_SELF']; $suggestions = '[{}]'; $config = getConfig($conn); $version4 = $config['conf_updated_issues']; $issues_app = ($version4 ? 'issues_by_area_4.0.php' : 'issues_by_area.php'); $categoriesLabels = [ 1 => $config['conf_prob_tipo_1'], 2 => $config['conf_prob_tipo_2'], 3 => $config['conf_prob_tipo_3'], 4 => $config['conf_prob_tipo_4'], 5 => $config['conf_prob_tipo_5'], 6 => $config['conf_prob_tipo_6'] ]; $categories[] = ["tag" => $config['conf_prob_tipo_1'], "value" => 1]; $categories[] = ["tag" => $config['conf_prob_tipo_2'], "value" => 2]; $categories[] = ["tag" => $config['conf_prob_tipo_3'], "value" => 3]; $categories[] = ["tag" => $config['conf_prob_tipo_4'], "value" => 4]; $categories[] = ["tag" => $config['conf_prob_tipo_5'], "value" => 5]; $categories[] = ["tag" => $config['conf_prob_tipo_6'], "value" => 6]; $categories = json_encode($categories); $categories_setted = $config['conf_cat_chain_at_opening']; $textCategoriesSetted = TRANS('NO_PRE_FILTERS_DEFINED'); if (!empty($categories_setted)) { $textCategoriesSetted = "
    "; $array_categories_setted = explode(',', $categories_setted); foreach ($array_categories_setted as $cat) { $textCategoriesSetted .= "
  1. " . $categoriesLabels[$cat] . "
  2. "; } $textCategoriesSetted .= "
"; } ?> <?= APP_NAME; ?> <?= VERSAO; ?>

 

$user['nome'], "value" => $user['user_id']]; } } /* Sugestões para a seleção de usuários administradores */ $suggestions = json_encode($arrayUsers); } $query .= " ORDER BY sistema"; try { $resultado = $conn->query($query); } catch (Exception $e) { echo message('danger', 'Ooops!', $e->getMessage(), ''); return false; } $registros = $resultado->rowCount(); if ((!isset($_GET['action'])) && !isset($_POST['submit'])) { ?>

fetchall() as $row) { $process_tickets = ($row['sis_atende'] ? '' : ''); $dynamic_mode = ($row['sis_opening_mode'] == 2 ? '' : ''); $disableViewIssues = (!$row['sis_atende'] ? ' disabled': ''); $rowClass = (!empty($disableViewIssues) ? 'text-secondary area-ban' : 'text-info area-info'); $popoverIssues = (empty($disableViewIssues) ? 'data-toggle="popover" data-placement="top" data-trigger="hover" data-content="' . TRANS("SEE_THE_TYPES_OF_ISSUES_FOR_THIS_AREA") . '"': ''); $lstatus = ($row['sis_status'] == 1 ? '' : ''); $textScreen = ($row['conf_name'] == "" ? TRANS('ALL_FIELDS_SCREEN') : $row['conf_name']); $modulesText = ""; $modules = []; $modules[] = (getModuleAccess($conn, 1, $row['sis_id']) ? TRANS('MOD_TICKETS') : ""); $modules[] = (getModuleAccess($conn, 2, $row['sis_id']) ? TRANS('MOD_INVENTORY') : ""); foreach ($modules as $mod) { if (!empty($mod)) $modulesText .= '
  • ' . $mod ?? '' . '
  • '; } /* Administradores da área */ $admins = []; $admins = getAreaAdmins($conn, $row['sis_id']); $adminsNames = ""; if (count($admins)) { ?>
      ' . $admin['nome'] ?? '' . ''; } ?>
    /> />
    /> />
    /> />
    /> />
     
    /> />
    /> />
    fetch(); ?>
    /> />
    /> />
    /> />
    /> />
     :
    /> />
    /> />
     
     :