示例#1
0
            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 {
    if (isset($_GET['action']) && $_GET['action'] == "incluir" && empty($_POST['submit'])) {
        print "<BR><B>" . TRANS('CADASTRE_PROB') . "</B><BR>";
        print "<TR>";
        print "<TD width='20%' align='left' bgcolor='" . TD_COLOR . "'>" . TRANS('COL_PROB') . ":</TD>";
        //------------------------------------------------------------- INICIO ALTERACAO --------------------------------------------------------------
        //print "<TD width='80%' align='left' bgcolor='".BODY_COLOR."'><INPUT type='text' name='problema' class='text' id='idProblema'></td>";
        print "<TD width='80%' align='left' bgcolor='" . BODY_COLOR . "'><INPUT type='text' name='problema' class='text' id='idProblema'>";
        print "<input type='checkbox' name='alimentabancosolucao' value='1' checked>" . TRANS('COL_ALIMENTA_BANCO_SOLUCAO') . " ";
        print "</td>";
        //------------------------------------------------------------- FIM ALTERACAO --------------------------------------------------------------
        print "</TR>";
        print "<tr>";