Exemple #1
0
        if ($rowAssentamento2['asset_privated'] == 1) {
            $transAssetText = TRANS('CHECK_ASSET_PRIVATED');
        } else {
            $transAssetText = "";
        }
        print "<TR>";
        print "<TD width='20%' ' bgcolor='" . TD_COLOR . "' valign='top'>";
        if ($rowAssentamento2['tipo_assentamento'] == 3) {
            //SE FOR JUSTIFICATIVA
            print "<b>" . TRANS('TXT_JUSTIFICATION') . "</b> ";
        } else {
            print "" . TRANS('FIELD_NESTING') . " " . $printCont . " " . TRANS('SHORT_OF') . " " . $linhas . " ";
        }
        print "" . TRANS('SHORT_BY') . " " . $rowAssentamento2['nome'] . " " . TRANS('SHORT_IN') . " " . formatDate($rowAssentamento2['data']) . "" . "<br/><b>" . $transAssetText . "</b></TD>";
        if (isset($_GET['destaca'])) {
            print "<TD colspan='4' align='left'  class='textareaDisable' valign='top'>" . destaca($_GET['destaca'], nl2br($rowAssentamento2['assentamento'])) . "</TD>";
        } else {
            print "<TD colspan='4' align='left'  class='textareaDisable' valign='top'>" . nl2br($rowAssentamento2['assentamento']) . "</TD>";
        }
        print "<TD width='20%'  valign='top'>&nbsp;</td>";
        print "</TR>";
        $i++;
    }
    print "</table></div></td></tr>";
}
if ($_SESSION['s_nivel'] == 3) {
    print "<form name='short' method='post' action='" . $_SERVER['PHP_SELF'] . "'>";
    print "<input type='hidden' name='hidNumero' id='idNumero' value='" . $COD . "'>";
    if (isset($_GET['id'])) {
        print "<input type='hidden' name='urlid' id='idUrl' value='" . $_GET['id'] . "'>";
        print "<tr><td colspan='4'><input type='button' class='button' onClick=\"ajaxFunction('idDivDetails', 'insert_comment.php', 'idLoad', 'numero=idNumero', 'urlid=idUrl');\" value='" . TRANS('INSERT_COMMENT', 'Inserir comentário', 0) . "'></td></tr>";
        print "<TABLE border='1' style=\"{border-collapse:collapse;}\" align='center' width='100%'>";
        print "<tr>";
        print "<TD align='left' bgcolor='" . TD_COLOR . "'>" . TRANS('OCO_FIELD_NUMBER') . ":</TD>";
        print "<TD align='left'><a onClick= \"javascript: popup_alerta('mostra_consulta.php?popup=true&numero=" . $row['numero'] . "&destaca=" . $destacaProb . "')\">" . "<font color='blue'>" . $row['numero'] . "</font></a></TD>";
        print "<TD align='left'>" . TRANS('OCO_DATE') . ":</TD>";
        print "<TD align='left'>" . datab($row['data']) . "</TD>";
        print "<TD align='left'>" . TRANS('OCO_FIELD_OPERATOR') . ":</TD>";
        print "<TD align='left'>" . $row['nome'] . "</TD>";
        print "</TR>";
        print "<TR>";
        print "<TD width='20%' align='left' bgcolor='" . TD_COLOR . "' valign='top'>" . TRANS('OCO_FIELD_PROB') . ":</TD>";
        print "<TD colspan='5' width='80%' align='left'>" . destaca($destacaProb, nl2br($row['problema'])) . "</TD>";
        print "</TR>";
        print "<TR>";
        print "<TD width='20%' align='left' bgcolor='" . TD_COLOR . "' valign='top'>" . TRANS('COL_TIT_SOLUTION') . ":</TD>";
        print "<TD colspan='5' width='80%' align='left'>" . destaca($destacaProb, nl2br($row['solucao'])) . "</TD>";
        print "</TR>";
        print "<HR>";
        print "</TABLE>";
    }
    //ZERANDO O ARRAY ACHOU
    for ($j = 0; $j <= count($achou); $j++) {
        array_pop($achou);
    }
}
//while
?>
<script type='text/javascript'>

	function popup_alerta(pagina)	{ //Exibe uma janela popUP
      		x = window.open(pagina,'_blank','dependent=yes,width=700,height=470,scrollbars=yes,statusbar=no,resizable=yes');