Beispiel #1
0
        //------------------------------------------------------------- INICIO ALTERACAO --------------------------------------------------------------
        //print "<TR class='header'><td class='line'>".TRANS('COL_PROB','Problema')."</TD><td class='line'>".TRANS('COL_AREA','')."</TD><td class='line'>".TRANS('COL_SLA','SLA')."</TD>".
        print "<TR class='header'><td class='line'>" . TRANS('COL_PROB', 'Problema') . "</TD><td class='line'>" . TRANS('COL_DESC', 'Descrição') . "</TD><td class='line'>" . TRANS('COL_ALIMENTA_BANCO_SOLUCAO') . "</TD><td class='line'>" . TRANS('COL_AREA', '') . "</TD><td class='line'>" . TRANS('COL_SLA', 'SLA') . "</TD>" . "<td class='line'>" . $row_config['conf_prob_tipo_1'] . "</TD><td class='line'>" . $row_config['conf_prob_tipo_2'] . "</TD>" . "<td class='line'>" . $row_config['conf_prob_tipo_3'] . "</TD><td class='line'>" . TRANS('COL_EDIT', '') . "</TD><td class='line'>" . TRANS('COL_DEL', '') . "</TD></tr>";
        $j = 2;
        while ($row = mysql_fetch_array($PAGE->RESULT_SQL)) {
            if ($j % 2) {
                $trClass = "lin_par";
            } else {
                $trClass = "lin_impar";
            }
            $j++;
            print "<tr class=" . $trClass . " id='linhax" . $j . "' onMouseOver=\"destaca('linhax" . $j . "','" . $_SESSION['s_colorDestaca'] . "');\" onMouseOut=\"libera('linhax" . $j . "','" . $_SESSION['s_colorLinPar'] . "','" . $_SESSION['s_colorLinImpar'] . "');\"  onMouseDown=\"marca('linhax" . $j . "','" . $_SESSION['s_colorMarca'] . "');\">";
            print "<td class='line'>" . $row['problema'] . "</td>";
            print "<td class='line'>" . NVL($row['prob_descricao']) . "</td>";
            //------------------------------------------------------------- INICIO ALTERACAO --------------------------------------------------------------
            print "<td class='line'>" . transbool($row['prob_alimenta_banco_solucao']) . "</td>";
            //------------------------------------------------------------- FIM ALTERACAO --------------------------------------------------------------
            print "<td class='line'>" . NVL($row['sistema']) . "</td>";
            print "<td class='line'>" . ($row['slas_desc'] == '' ? '&nbsp;' : $row['slas_desc']) . "</td>";
            print "<td class='line'>" . ($row['probt1_desc'] == '' ? '&nbsp;' : $row['probt1_desc']) . "</td>";
            print "<td class='line'>" . ($row['probt2_desc'] == '' ? '&nbsp;' : $row['probt2_desc']) . "</td>";
            print "<td class='line'>" . ($row['probt3_desc'] == '' ? '&nbsp;' : $row['probt3_desc']) . "</td>";
            print "<td class='line'><a onClick=\"redirect('" . $_SERVER['PHP_SELF'] . "?action=alter&cod=" . $row['prob_id'] . "&cellStyle=true')\"><img height='16' width='16' src='" . ICONS_PATH . "edit.png' title='" . TRANS('HNT_EDIT') . "'></a></td>";
            print "<td class='line'><a onClick=\"confirmaAcao('" . TRANS('ENSURE_DEL') . "?','" . $_SERVER['PHP_SELF'] . "', 'action=excluir&cod=" . $row['prob_id'] . "')\"><img height='16' width='16' src='" . ICONS_PATH . "drop.png' title='" . TRANS('HNT_DEL') . "'></a></TD>";
            print "</TR>";
        }
        print "<tr><td colspan='8'>";
        $PAGE->showOutputPages();
        print "</td></tr>";
    }
} else {
 print "<tr><td colspan='6'>";
 print "<B>" . TRANS('FOUND') . " <font color=red>" . $PAGE->NUMBER_REGS . "</font> " . TRANS('RECORDS_IN_SYSTEM') . ". " . TRANS('SHOWING_PAGE') . " " . $PAGE->PAGE . " (" . $PAGE->NUMBER_REGS_PAGE . " " . TRANS('RECORDS') . ")</B></TD>";
 print "</tr>";
 print "<TR class='header'><td class='line'>" . TRANS('COL_SCRIPT_NAME', '') . "</TD><td class='line'>" . TRANS('COL_DESC') . "</TD><td class='line'>" . TRANS('COL_SCRIPT_ENDUSER') . "</TD><td class='line'>" . TRANS('COL_PROB') . "</TD>" . "<td class='line'>" . TRANS('COL_EDIT', '') . "</TD><td class='line'>" . TRANS('COL_DEL', '') . "</TD></tr>";
 $j = 2;
 while ($row = mysql_fetch_array($PAGE->RESULT_SQL)) {
     if ($j % 2) {
         $trClass = "lin_par";
     } else {
         $trClass = "lin_impar";
     }
     $j++;
     print "<tr class=" . $trClass . " id='linhax" . $j . "' onMouseOver=\"destaca('linhax" . $j . "','" . $_SESSION['s_colorDestaca'] . "');\" onMouseOut=\"libera('linhax" . $j . "','" . $_SESSION['s_colorLinPar'] . "','" . $_SESSION['s_colorLinImpar'] . "');\"  onMouseDown=\"marca('linhax" . $j . "','" . $_SESSION['s_colorMarca'] . "');\">";
     print "<td class='line'><a onClick=\"redirect('" . $_SERVER['PHP_SELF'] . "?action=details&cod=" . $row['scpt_id'] . "&cellStyle=true')\">" . NVL($row['scpt_nome']) . "</a></td>";
     print "<td class='line'><a onClick=\"redirect('" . $_SERVER['PHP_SELF'] . "?action=details&cod=" . $row['scpt_id'] . "&cellStyle=true')\">" . NVL($row['scpt_desc']) . "</a></td>";
     print "<td class='line'>" . transbool($row['scpt_enduser']) . "</td>";
     $texto = trim($row['scpt_script']);
     if (strlen($texto) > 50) {
         $texto = substr($texto, 0, 45) . " ..... ";
     }
     $qryProb = "SELECT * FROM prob_x_script " . "LEFT JOIN problemas on prob_id = prscpt_prob_id " . "WHERE prscpt_scpt_id = " . $row['scpt_id'] . " " . "AND prscpt_prob_id = prob_id " . "GROUP BY problema " . "ORDER BY problema ";
     $execProb = mysql_query($qryProb);
     $allProbs = "";
     while ($rowProb = mysql_fetch_array($execProb)) {
         !empty($allProbs) ? $allProbs .= ",<br>" : ($allProbs .= "");
         $allProbs .= $rowProb['problema'];
     }
     print "<td class='line'>" . NVL($allProbs) . "</td>";
     print "<td class='line'><a onClick=\"redirect('" . $_SERVER['PHP_SELF'] . "?action=alter&cod=" . $row['scpt_id'] . "&cellStyle=true')\"><img height='16' width='16' src='" . ICONS_PATH . "edit.png' title='" . TRANS('HNT_EDIT') . "'></a></td>";
     print "<td class='line'><a onClick=\"confirmaAcao('" . TRANS('ENSURE_DEL') . "?','" . $_SERVER['PHP_SELF'] . "', 'action=excluir&cod=" . $row['scpt_id'] . "')\"><img height='16' width='16' src='" . ICONS_PATH . "drop.png' title='" . TRANS('HNT_DEL') . "'></a></TD>";
     print "</TR>";
Beispiel #3
0
                $trClass = "lin_impar";
            }
            $j++;
            if ($row['sis_status'] == 0) {
                $lstatus = TRANS('INACTIVE', 'INATIVO');
            } else {
                $lstatus = TRANS('ACTIVE', 'ATIVO');
            }
            if ($row['conf_name'] == "") {
                $textScreen = TRANS('SCREEN_FULL');
            } else {
                $textScreen = $row['conf_name'];
            }
            print "<tr class=" . $trClass . " id='linhax" . $j . "' onMouseOver=\"destaca('linhax" . $j . "','" . $_SESSION['s_colorDestaca'] . "');\" onMouseOut=\"libera('linhax" . $j . "','" . $_SESSION['s_colorLinPar'] . "','" . $_SESSION['s_colorLinImpar'] . "');\"  onMouseDown=\"marca('linhax" . $j . "','" . $_SESSION['s_colorMarca'] . "');\">";
            print "<td class='line'>" . $row['sistema'] . "</td>";
            print "<td class='line'>" . transbool($row['sis_atende']) . "</td>";
            print "<td class='line'>" . $row['sis_email'] . "</td>";
            print "<td class='line'>" . NVL($textScreen) . "</td>";
            print "<td class='line'>" . $lstatus . "</td>";
            print "<td class='line'><a onClick=\"redirect('" . $_SERVER['PHP_SELF'] . "?action=alter&cod=" . $row['sis_id'] . "&cellStyle=true')\"><img height='16' width='16' src='" . ICONS_PATH . "edit.png' title='" . TRANS('COL_EDIT') . "'></a></td>";
            print "<td class='line'><a onClick=\"confirmaAcao('" . TRANS('ENSURE_DEL') . "?','" . $_SERVER['PHP_SELF'] . "','action=excluir&cod=" . $row['sis_id'] . "')\"><img height='16' width='16' src='" . ICONS_PATH . "drop.png' title='" . TRANS('COL_DEL') . "'></a></TD>";
            print "</TR>";
        }
        //print "</TABLE>";
    }
} else {
    if (isset($_GET['action']) && $_GET['action'] == "incluir" && empty($_POST['submit'])) {
        print "<BR><B>" . TRANS('CADASTRE_AREA') . "</B> <font color='red'>" . TRANS('ALERT_AREA_PERMISSION') . "</font><BR>";
        print "<TR>";
        print "<TD width='20%' align='left' bgcolor=" . TD_COLOR . ">" . TRANS('COL_AREA') . ":</TD>";
        print "<TD width='80%' align='left' bgcolor=" . BODY_COLOR . "><INPUT type='text' name='area' class='text' id='idArea'>" . "<input type='checkbox' name='areaatende' value='1' checked>" . TRANS('COL_ATEND') . "</TD>";
    } else {
        $cor1 = TD_COLOR;
        print "<tr><td colspan='7' class='line'>";
        print "<B>" . TRANS('FOUND') . " <font color=red>" . $PAGE->NUMBER_REGS . "</font> " . TRANS('RECORDS_IN_SYSTEM') . ". " . TRANS('SHOWING_PAGE') . " " . $PAGE->PAGE . " (" . $PAGE->NUMBER_REGS_PAGE . " " . TRANS('RECORDS') . ")</B></TD></tr>";
        //print "".TRANS('THERE_IS_ARE')."&nbsp;<b>".$registros."</b>&nbsp;".TRANS('USER_S_IN_SYSTEM').".<br>";
        print "<TR class='header'><td class='line'>" . TRANS('OPT_NAME', 'Nome') . "</TD>" . "<td class='line'>" . TRANS('OPT_LOGIN_NAME', 'Login') . "</TD><td class='line'>" . TRANS('OCO_FIELD_AREA', 'Área') . "</TD>" . "<td class='line'>" . TRANS('OCO_FIELD_AREA_ADMIN', 'Área admin') . "</TD>" . "<td class='line'>" . TRANS('OCO_FIELD_SUBSCRIBE_DATE', 'Data de inclusão') . "</TD><td class='line'>" . TRANS('OCO_FIELD_HIRE_DATE', 'Data de admissão') . "</TD>" . "<td class='line'>" . TRANS('OCO_FIELD_EMAIL', 'E-mail') . "</TD><td class='line'>" . TRANS('OCO_FIELD_PHONE', 'Telefone') . "</TD>" . "<td class='line'>" . TRANS('OCO_FIELD_LEVEL', 'Nível') . "</TD><td class='line'>" . TRANS('OCO_FIELD_ALTER', 'Alterar') . "</TD>" . "<td class='line'>" . TRANS('OCO_FIELD_EXCLUDE', 'Excluir') . "</TD></TR>";
        $i = 0;
        $j = 2;
        while ($row = mysql_fetch_array($PAGE->RESULT_SQL)) {
            $j % 2 ? $trClass = "lin_par" : ($trClass = "lin_impar");
            $j++;
            print "<tr class=" . $trClass . " id='linhax" . $j . "' onMouseOver=\"destaca('linhax" . $j . "','" . $_SESSION['s_colorDestaca'] . "');\" onMouseOut=\"libera('linhax" . $j . "','" . $_SESSION['s_colorLinPar'] . "','" . $_SESSION['s_colorLinImpar'] . "');\"  onMouseDown=\"marca('linhax" . $j . "','" . $_SESSION['s_colorMarca'] . "');\">";
            print "<td class='line'>" . $row['nome'] . "</TD>";
            print "<td class='line'>" . $row['login'] . "</TD>";
            print "<td class='line'>" . $row['sistema'] . "</TD>";
            print "<td class='line'>" . transbool($row['user_admin']) . "</TD>";
            print "<td class='line'>" . datab($row['data_inc']) . "</TD>";
            print "<td class='line'>" . datab($row['data_admis']) . "</TD>";
            print "<td class='line'>" . $row['email'] . "</TD>";
            print "<td class='line'>" . NVL($row['fone']) . "</TD>";
            print "<td class='line'><a href='usuarios.php?nivel=" . $row['nivel_cod'] . "&n_desc=" . $row['nivel_nome'] . "'>" . $row['nivel_nome'] . "</a></TD>";
            print "<td class='line'><a onClick=\"redirect('usuarios.php?action=alter&cellStyle=true&login="******"')\"><img height='16' width='16' src='" . ICONS_PATH . "edit.png' title='" . TRANS('HNT_EDIT') . "'></a></td>";
            print "<td class='line'><a onClick=\"javascript:confirmaAcao('" . TRANS('ENSURE_DEL') . " " . $row['nome'] . "?','usuarios.php','action=excluir&login="******"');\"><img height='16' width='16' src='" . ICONS_PATH . "drop.png' title='" . TRANS('HNT_DEL') . "'></TD>";
            print "</TR>";
        }
        print "<tr><td colspan='8'>";
        $PAGE->showOutputPages();
        print "</td></tr>";
    }
} else {
    if (isset($_GET['action']) && $_GET['action'] == "incluir" && empty($_POST['submit'])) {
        print "<tr><td colspan='4'>";
        print "" . TRANS('THERE_IS_ARE') . " <b>" . $registros . "</b> " . TRANS('RECORDS_IN_SYSTEM') . ".</td>";
        print "</tr>";
        print "<TR class='header'><td class='line'>" . TRANS('COL_SITUAC') . "</TD><td class='line'>" . TRANS('COL_DESC') . "</TD><td class='line'>" . TRANS('COL_HILIGHT') . "</TD><td class='line'>" . TRANS('COL_EDIT') . "</TD><td class='line'>" . TRANS('COL_DEL') . "</TD></tr>";
        $j = 2;
        while ($row = mysql_fetch_array($resultado)) {
            if ($j % 2) {
                $trClass = "lin_par";
            } else {
                $trClass = "lin_impar";
            }
            $j++;
            print "<tr class=" . $trClass . " id='linhax" . $j . "' onMouseOver=\"destaca('linhax" . $j . "','" . $_SESSION['s_colorDestaca'] . "');\" onMouseOut=\"libera('linhax" . $j . "','" . $_SESSION['s_colorLinPar'] . "','" . $_SESSION['s_colorLinImpar'] . "');\"  onMouseDown=\"marca('linhax" . $j . "','" . $_SESSION['s_colorMarca'] . "');\">";
            print "<td class='line'>" . $row['situac_nome'] . "</td>";
            print "<td class='line'>" . NVL($row['situac_desc']) . "</td>";
            print "<td class='line'>" . transbool($row['situac_destaque']) . "</td>";
            print "<td class='line'><a onClick=\"redirect('" . $_SERVER['PHP_SELF'] . "?action=alter&cod=" . $row['situac_cod'] . "&cellStyle=true')\"><img height='16' width='16' src='" . ICONS_PATH . "edit.png' title='" . TRANS('HNT_EDIT') . "'></a></td>";
            print "<td class='line'><a onClick=\"confirmaAcao('" . TRANS('ENSURE_DEL') . "?','" . $_SERVER['PHP_SELF'] . "', 'action=excluir&cod=" . $row['situac_cod'] . "')\"><img height='16' width='16' src='" . ICONS_PATH . "drop.png' title='" . TRANS('HNT_DEL') . "'></a></TD>";
            print "</TR>";
        }
        //print "</TABLE>";
    }
} else {
    if (isset($_GET['action']) && $_GET['action'] == "incluir" && empty($_POST['submit'])) {
        print "<BR><B>" . TRANS('CADASTRE_SITUAC') . "</B><BR>";
        print "<TR>";
        print "<TD width='20%' align='left' bgcolor='" . TD_COLOR . "'>" . TRANS('COL_SITUAC') . ":</TD>";
        print "<TD width='80%' align='left' bgcolor='" . BODY_COLOR . "'><INPUT type='text' name='situacao' class='text' id='idSituacao'>" . "<input type='checkbox' name='destaque'>" . TRANS('COL_HILIGHT') . "</td>";
        print "</TR>";
        print "<tr>";
        print "<TD width='20%' align='left' bgcolor='" . TD_COLOR . "'>" . TRANS('COL_DESC') . ":</TD>";
Beispiel #6
0
        print "<br><br><TR><td class='line'>";
        print "" . TRANS('THERE_IS_ARE') . " <b>" . $linhas . "</b> " . TRANS('RECORDS_IN_SYSTEM') . ".</TD></TR>";
        print "<TABLE border='0' cellpadding='5' cellspacing='0'  width='50%'>";
        print "<TR class='header'><td class='line'>" . TRANS('COL_DATE') . "</TD><td class='line'>" . TRANS('COL_DESC') . "</TD><td class='line'>" . TRANS('COL_PERSISTANT', 'PERMANENTE') . "</TD><td class='line'><b>" . TRANS('COL_EDIT') . "</b></TD><td class='line'><b>" . TRANS('COL_DEL') . "</b></TD>";
        $j = 2;
        while ($row = mysql_fetch_array($resultado)) {
            if ($j % 2) {
                $trClass = "lin_par";
            } else {
                $trClass = "lin_impar";
            }
            $j++;
            print "<tr class=" . $trClass . " id='linhax" . $j . "' onMouseOver=\"destaca('linhax" . $j . "','" . $_SESSION['s_colorDestaca'] . "');\" onMouseOut=\"libera('linhax" . $j . "','" . $_SESSION['s_colorLinPar'] . "','" . $_SESSION['s_colorLinImpar'] . "');\"  onMouseDown=\"marca('linhax" . $j . "','" . $_SESSION['s_colorMarca'] . "');\">";
            print "<td class='line'>" . datab2($row['data_feriado']) . "</TD>";
            print "<td class='line'>" . $row['desc_feriado'] . "</TD>";
            print "<td class='line'>" . transbool($row['fixo_feriado']) . "</TD>";
            print "<td class='line'><a onClick=\"redirect('feriados.php?action=alter&cod=" . $row['cod_feriado'] . "')\"><img height='16' width='16' src='" . ICONS_PATH . "edit.png' title='" . TRANS('HNT_EDIT') . "'></a></TD>";
            print "<td class='line'><a onClick=\"confirma('" . TRANS('ENSURE_DEL') . "?','feriados.php?action=excluir&cod=" . $row['cod_feriado'] . "')\"><img height='16' width='16' src='" . ICONS_PATH . "drop.png' title='" . TRANS('HNT_DEL') . "'></a></TD>";
            print "</TR>";
        }
        print "</TABLE>";
    }
} else {
    if (isset($_GET['action']) && $_GET['action'] == "incluir" && !isset($_POST['submit'])) {
        print "<B>" . TRANS('CADASTRE_HOLIDAYS') . ":<br>";
        print "<form method='post' name='incluir' action='" . $_SERVER['PHP_SELF'] . "' onSubmit='return valida()'>";
        print "<TABLE border='0' cellpadding='5' cellspacing='0' width='50%'>";
        print "<tr>";
        print "<td class='line'>" . TRANS('COL_DESC') . "</td><td class='line'><input type='text' class='text' name='descricao' id='idDesc'></td>";
        print "</tr>";
        print "<tr>";
        print "<tr><td>" . TRANS('OPT_LNK_TAG') . "</td><td>" . transbool($row['conf_scr_chktag']) . "</td></tr>";
        print "<tr><td>" . TRANS('OPT_LNK_HIST') . "</td><td>" . transbool($row['conf_scr_chkhist']) . "</td></tr>";
        print "<tr><td>" . TRANS('OPT_FIELD_CONTACT') . "</td><td>" . transbool($row['conf_scr_contact']) . "</td></tr>";
        print "<tr><td>" . TRANS('OPT_FIELD_PHONE') . "</td><td>" . transbool($row['conf_scr_fone']) . "</td></tr>";
        print "<tr><td>" . TRANS('OPT_FIELD_LOCAL') . "</td><td>" . transbool($row['conf_scr_local']) . "</td></tr>";
        print "<tr><td>" . TRANS('OPT_BT_LOAD_LOCAL') . "</td><td>" . transbool($row['conf_scr_btloadlocal']) . "</td></tr>";
        print "<tr><td>" . TRANS('OPT_SCH_LOCAL') . "</td><td>" . transbool($row['conf_scr_searchbylocal']) . "</td></tr>";
        print "<tr><td>" . TRANS('OPT_FIELD_OPERATOR') . "</td><td>" . transbool($row['conf_scr_operator']) . "</td></tr>";
        print "<tr><td>" . TRANS('OPT_FIELD_DATE') . "</td><td>" . transbool($row['conf_scr_date']) . "</td></tr>";
        print "<tr><td>" . TRANS('OPT_FIELD_SCHEDULE') . "</td><td>" . transbool($row['conf_scr_schedule']) . "</td></tr>";
        print "<tr><td>" . TRANS('OPT_FIELD_FOWARD') . "</td><td>" . transbool($row['conf_scr_foward']) . "</td></tr>";
        print "<tr><td>" . TRANS('OPT_FIELD_STATUS') . "</td><td>" . transbool($row['conf_scr_status']) . "</td></tr>";
        print "<tr><td>" . TRANS('OPT_FIELD_ATTACH') . "</td><td>" . transbool($row['conf_scr_upload']) . "</td></tr>";
        print "<tr><td>" . TRANS('OPT_FIELD_REPLICATE') . "</td><td>" . transbool($row['conf_scr_replicate']) . "</td></tr>";
        print "<tr><td>" . TRANS('OPT_FIELD_PRIOR') . "</td><td>" . transbool($row['conf_scr_prior']) . "</td></tr>";
        print "<tr><td>" . TRANS('OPT_FIELD_SEND_EMAIL') . "</td><td>" . transbool($row['conf_scr_mail']) . "</td></tr>";
        print "<tr><td colspan='2'>" . TRANS('OPT_FIELD_MSG') . ":</td></tr><tr><td colspan='2'>" . $row['conf_scr_msg'] . "</td></tr>";
        print "<tr><td></td><td></td></tr>";
        print "</TABLE>";
    }
} else {
    if (isset($_GET['action']) && $_GET['action'] == "alter" && empty($_POST['submit'])) {
        print "<form name='alter' action='" . $_SERVER['PHP_SELF'] . "' method='post' onSubmit=\"return valida()\">";
        //onSubmit='return valida()'
        print "<TABLE border='0' cellpadding='1' cellspacing='0' width='50%'>";
        print "<TR class='header'><td>" . TRANS('OPT_DIRETIVA') . "</TD><td>" . TRANS('OPT_VALOR') . "</TD></TD></tr>";
        print "<tr><td colspan='2'>&nbsp;</td></tr>";
        print "<tr><td>" . TRANS('SCREEN_PROFILE_NAME') . "</td>";
        print "<td><input type='text' class='text' name='screen_name' id='idScreen' value='" . $row['conf_name'] . "'></td></tr>";
        print "<tr><td>" . TRANS('OPT_ALLOW_USER_OPEN') . "</td><td>";
        //.transbool($row['conf_user_opencall'])."</td></tr>";
Beispiel #8
0
    } else {
        $cor = TD_COLOR;
        $cor1 = TD_COLOR;
        $linhas = mysql_numrows($resultado);
        print "<td>";
        print "<TABLE border='0' cellpadding='5' cellspacing='0'  width='50%'>";
        print "<tr><td colspan='2'><b>" . TRANS('TTL_CONFIG', 'Configuração') . ":</b></td></tr>";
        print "<TR class='header'><td>" . TRANS('OPT_DIRETIVA') . "</TD><td>" . TRANS('OPT_VALOR') . "</TD></TD></tr>";
        print "<tr><td colspan='2'>&nbsp;</td></tr>";
        print "<tr><td>" . TRANS('OPT_USE_SMTP', 'Utiliza SMTP') . "</td><td>" . transbool($row['mail_issmtp']) . "</td></tr>";
        print "<tr><td>" . TRANS('OPT_SMTP_ADDRESS', 'Endereço SMTP') . "</td><td>" . $row['mail_host'] . "</td></tr>";
        print "<tr><td>" . TRANS('OPT_NEED_AUTH', 'Precisa de autenticação') . "</td><td>" . transbool($row['mail_isauth']) . "</td></tr>";
        print "<tr><td>" . TRANS('OPT_USER', 'Usuário') . "</td><td>" . $row['mail_user'] . "</td></tr>";
        print "<tr><td>" . TRANS('OPT_ADDRESS_FROM', 'Endereço de envio (FROM)') . "</td><td>" . $row['mail_from'] . "</td></tr>";
        print "<tr><td>" . TRANS('OPT_ADDRESS_FROM_NAME', 'Nome do From (alias)') . "</td><td>" . $row['mail_from_name'] . "</td></tr>";
        print "<tr><td>" . TRANS('OPT_CONTENT_HTML', 'Conteúdo HTML') . "</td><td>" . transbool($row['mail_ishtml']) . "</td></tr>";
        print "<tr><td></td><td></td></tr>";
        print "</TABLE>";
    }
} else {
    if (isset($_GET['action']) && $_GET['action'] == "alter" && empty($_POST['submit'])) {
        print "<form name='alter' action='" . $_SERVER['PHP_SELF'] . "' method='post'>";
        //onSubmit='return valida()'
        print "<TABLE border='0' cellpadding='1' cellspacing='0' width='50%'>";
        print "<TR class='header'><td>" . TRANS('OPT_DIRETIVA') . "</TD><td>" . TRANS('OPT_VALOR') . "</TD></TD></tr>";
        print "<tr><td colspan='2'>&nbsp;</td></tr>";
        print "<tr><td>" . TRANS('OPT_USE_SMTP') . "</td><td>";
        //.transbool($row['conf_user_opencall'])."</td></tr>";
        print "<select name='issmtp' class='select'>";
        print "<option value='0'";
        if ($row['mail_issmtp'] == 0) {
Beispiel #9
0
        $listAreas .= $rowAreas['sistema'];
    }
}
if (empty($_GET['action']) and empty($_POST['submit'])) {
    print "<br><TD align='left'>" . "<input type='button' class='button' id='idBtIncluir' value='" . TRANS('BT_EDIT_CONFIG') . "' onClick=\"redirect('" . $_SERVER['PHP_SELF'] . "?action=alter&cellStyle=true');\">" . "</TD><br><BR>";
    if (mysql_numrows($resultado) == 0) {
        echo mensagem(TRANS('ALERT_CONFIG_EMPTY'));
    } else {
        $cor = TD_COLOR;
        $cor1 = TD_COLOR;
        $linhas = mysql_numrows($resultado);
        print "<td>";
        print "<TABLE border='0' cellpadding='5' cellspacing='0'  width='50%'>";
        print "<TR class='header'><td>" . TRANS('OPT_DIRETIVA') . "</TD><td>" . TRANS('OPT_VALOR') . "</TD></TD></tr>";
        print "<tr><td colspan='2'>&nbsp;</td></tr>";
        print "<tr><td>" . TRANS('OPT_ALLOW_USER_OPEN') . "</td><td>" . transbool($row['conf_user_opencall']) . "</td></tr>";
        print "<tr><td>" . TRANS('OPT_AREA_ONLY_OPEN') . "</td><td>" . $row['ownarea'] . "</td></tr>";
        //print "<tr><td>".TRANS('OPT_AREA_USER_OPENTO')."</td><td>".$row['sistema']."</td></tr>";
        print "<tr><td colspan='2'>&nbsp;</td></tr>";
        print "<tr><td colspan='2'>" . TRANS('OPT_FIELD_MSG', 'Mensagem ao abrir chamado') . ":</td></tr><tr><td colspan='2'>" . $row['conf_scr_msg'] . "</td></tr>";
        print "<tr><td></td><td></td></tr>";
        print "</TABLE>";
    }
} else {
    if (isset($_GET['action']) && $_GET['action'] == "alter" && empty($_POST['submit'])) {
        print "<form name='alter' action='" . $_SERVER['PHP_SELF'] . "' method='post' onSubmit=\"return valida()\">";
        //onSubmit='return valida()'
        print "<TABLE border='0' cellpadding='1' cellspacing='0' width='50%'>";
        print "<TR class='header'><td>" . TRANS('OPT_DIRETIVA') . "</TD><td>" . TRANS('OPT_VALOR') . "</TD></TD></tr>";
        print "<tr><td colspan='2'>&nbsp;</td></tr>";
        print "<tr><td>" . TRANS('OPT_ALLOW_USER_OPEN') . "</td><td>";
        print "<br><br><TR><td class='line'>";
        print "" . TRANS('THERE_IS_ARE') . " <b>" . $linhas . "</b> " . TRANS('RECORDS_IN_SYSTEM') . ".</TD></TR>";
        print "<TABLE border='0' cellpadding='5' cellspacing='0'  width='50%'>";
        print "<TR class='header'><td class='line'>" . TRANS('COL_LEVEL') . "</TD><td class='line'>" . TRANS('COL_DESC') . "</TD><td class='line'>" . TRANS('COL_DEFAULT', 'PADRAO') . "</TD><td class='line'>" . TRANS('COL_COLOR', 'COR') . "</TD><td class='line'><b>" . TRANS('COL_EDIT') . "</b></TD><td class='line'><b>" . TRANS('COL_DEL') . "</b></TD>";
        $j = 2;
        while ($row = mysql_fetch_array($resultado)) {
            if ($j % 2) {
                $trClass = "lin_par";
            } else {
                $trClass = "lin_impar";
            }
            $j++;
            print "<tr class=" . $trClass . " id='linhax" . $j . "' onMouseOver=\"destaca('linhax" . $j . "','" . $_SESSION['s_colorDestaca'] . "');\" onMouseOut=\"libera('linhax" . $j . "','" . $_SESSION['s_colorLinPar'] . "','" . $_SESSION['s_colorLinImpar'] . "');\"  onMouseDown=\"marca('linhax" . $j . "','" . $_SESSION['s_colorMarca'] . "');\">";
            print "<td class='line'>" . $row['pr_nivel'] . "</TD>";
            print "<td class='line'>" . $row['pr_desc'] . "</TD>";
            print "<td class='line'>" . transbool($row['pr_default']) . "</TD>";
            //print "<td class='line' style='{background-color:".$row['pr_color'].";}';>".$row['pr_color']."</TD>";
            print "<td class='line'><input type='text' class='quadro' style='max-width: 50px; background-color:" . $row['pr_color'] . "; border-color:" . $row['pr_color'] . ";'; disabled></TD>";
            print "<td class='line'><a onClick=\"redirect('" . $_SERVER['PHP_SELF'] . "?action=alter&cod=" . $row['pr_cod'] . "')\"><img height='16' width='16' src='" . ICONS_PATH . "edit.png' title='" . TRANS('HNT_EDIT') . "'></a></TD>";
            print "<td class='line'><a onClick=\"confirma('" . TRANS('ENSURE_DEL') . "?','" . $_SERVER['PHP_SELF'] . "?action=excluir&cod=" . $row['pr_cod'] . "&cod_nivel=" . $row['pr_nivel'] . "')\"><img height='16' width='16' src='" . ICONS_PATH . "drop.png' title='" . TRANS('HNT_DEL') . "'></a></TD>";
            print "</TR>";
        }
        print "</TABLE>";
    }
} else {
    if (isset($_GET['action']) && $_GET['action'] == "incluir" && !isset($_POST['submit'])) {
        print "<B>" . TRANS('CADASTRE_PRIORITY_ATEND') . ":<br>";
        print "<form id='form1' method='post' name='incluir' action='" . $_SERVER['PHP_SELF'] . "' onSubmit='return valida()'>";
        print "<TABLE border='0' cellpadding='5' cellspacing='1' width='50%'>";
        print "<tr>";
        print "<td bgcolor='" . TD_COLOR . "'>" . TRANS('COL_DESC') . "</td><td class='line'><input type='text' class='text' name='descricao' id='idDesc'><input type='checkbox' name='permanente'>" . TRANS('COL_DEFAULT') . "</td>";