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']; $fields = [ 'conf_scr_client' => TRANS('CLIENT'), 'conf_scr_area' => TRANS('RESPONSIBLE_AREA'), 'conf_scr_prob' => TRANS('ISSUE_TYPE'), 'conf_scr_desc' => TRANS('DESCRIPTION'), 'conf_scr_unit' => TRANS('COL_UNIT'), 'conf_scr_tag' => TRANS('ASSET_TAG_TAG'), 'conf_scr_contact' => TRANS('CONTACT'), 'conf_scr_contact_email' => TRANS('CONTACT_EMAIL'), 'conf_scr_fone' => TRANS('COL_PHONE'), 'conf_scr_local' => TRANS('DEPARTMENT'), 'conf_scr_operator' => TRANS('TECHNICIAN'), 'conf_scr_upload' => TRANS('ATTACH_FILE'), 'conf_scr_prior' => TRANS('OCO_PRIORITY'), 'conf_scr_foward' => TRANS('FORWARD_TICKET_TO'), 'conf_scr_mail' => TRANS('OCO_FIELD_SEND_MAIL_TO'), 'conf_scr_date' => TRANS('OPENING_DATE'), 'conf_scr_status' => TRANS('COL_STATUS'), 'conf_scr_schedule' => TRANS('TO_SCHEDULE'), 'conf_scr_channel' => TRANS('OPENING_CHANNEL') ]; ?> <?= APP_NAME; ?> <?= VERSAO; ?>

 

query($qrymsgdefault); $rowmsgdefault = $execqrydefault->fetch(); $query = "SELECT c.*, a.* FROM configusercall as c, sistemas as a WHERE c.conf_opentoarea = a.sis_id and c.conf_cod <> 1"; //codigo 1 é reservado para as definicoes globais if (isset($_GET['cod'])) { $query .= " AND c.conf_cod = '" . (int)$_GET['cod'] . "' "; } $query .= " ORDER BY conf_name"; $resultado = $conn->query($query); $registros = $resultado->rowCount(); if ((!isset($_GET['action'])) && !isset($_POST['submit'])) { ?>

fetchall() as $row) { /* Campos habilitados */ $fieldsInProfile = []; $customFieldsInProfile = []; foreach ($fields as $tableField => $label) { if ($row[$tableField]) { $fieldsInProfile[] = $label; } } /* Campos personalizados (vinculados ao perfil) não exibidos na tela de abertura */ $customFieldsOnlyEdition = []; $only_edition_fields_id = []; if ($row['cfields_only_edition']) { $only_edition_fields_id = explode(',', $row['cfields_only_edition']); $custom_fields = getCustomFields($conn, null, 'ocorrencias'); foreach ($custom_fields as $cfield) { if (in_array($cfield['id'], $only_edition_fields_id)) { $customFieldsOnlyEdition[] = $cfield['field_label']; } } } /* Campos personalizados */ if ($row['conf_scr_custom_ids']) { $fields_id = explode(',', $row['conf_scr_custom_ids']); $custom_fields = getCustomFields($conn, null, 'ocorrencias'); foreach ($custom_fields as $cfield) { // if (in_array($cfield['id'], $fields_id)) { if (in_array($cfield['id'], $fields_id) && !in_array($cfield['id'], $only_edition_fields_id)) { $customFieldsInProfile[] = $cfield['field_label']; } } } $listAreasIn = ""; $sqlIn = "SELECT * FROM sistemas where sis_screen='" . $row['conf_cod'] . "' ORDER BY sistema"; $resIn = $conn->query($sqlIn); foreach ($resIn->fetchall() as $rowIn) { $listAreasIn .= '
  • ' . $rowIn['sistema'] ?? '' . '
  • '; } $listIssuesIn = ""; $sqlIn = "SELECT * FROM problemas WHERE prob_profile_form = '" . $row['conf_cod'] . "' ORDER BY problema"; $resIn = $conn->query($sqlIn); foreach ($resIn->fetchall() as $rowIn) { $listIssuesIn .= '
  • ' . $rowIn['problema'] ?? '' . '
  • '; } ?>
    " . TRANS('DEFAULT_PROFILE') . ""; } ?>

    " name="" value="yes" /> _no" name="" value="no" checked />
    " name="">
    " name="">
    fetch(); /* Recebe os valores de obrigatorieda para cada campo onde se aplica */ $required_fields = getFormRequiredInfo($conn, $row['conf_cod']); /* Atualizar campos personalizados que foram desativados ou excluídos */ ?>
    /> />
    /> />
    /> />
    >
    /> />
    >
    /> />
    >
    /> />
    >
    /> />
    >
    /> />
    >
    /> />
    /> />
    /> />
    >
    /> />
    >
    /> />
    >
    /> />
    >
    /> />
    /> />
    /> />
    /> />
    /> />
    /> />
    >
    /> />
    /> />
    >
    /> />
    />
    />

    " name="" value="yes" /> _no" name="" value="no" />
    " name="" >
    " name="" >