$data = $rs_cta; if ($row = $SQL->fetch_row($rs_cta)) { $data = $SQL->obtener_datos($rs_cta); $arrcols = array_keys($data); $totcol = count($arrcols); $ds->data = $data; $totrow = $ds->getRowCount("spg_cuenta"); for ($z = 1; $z <= $totrow; $z++) { $cuenta = $data["spg_cuenta"][$z]; $denominacion = $data["denominacion"][$z]; $codest1 = $data["codestpro1"][$z]; $denestpro1 = uf_obtener_denominacion("spg_ep1", "denestpro1", " codestpro1='" . $codest1 . "'"); $codest2 = $data["codestpro2"][$z]; $denestpro2 = uf_obtener_denominacion("spg_ep2", "denestpro2", " codestpro1='" . $codest1 . "' AND codestpro2 ='" . $codest2 . "'"); $codest3 = $data["codestpro3"][$z]; $denestpro3 = uf_obtener_denominacion("spg_ep3", "denestpro3", " codestpro1='" . $codest1 . "' AND codestpro2 ='" . $codest2 . "' AND codestpro3 ='" . $codest3 . "' "); $scgcuenta = $data["sc_cuenta"][$z]; $status = $data["status"][$z]; if ($status == "S") { print "<tr class=celdas-blancas>"; print "<td>" . $cuenta . "</td>"; print "<td align=left>" . $codest1 . "</td>"; print "<td align=left>" . $codest2 . "</td>"; print "<td align=left>" . $codest3 . "</td>"; print "<td align=left>" . $denominacion . "</td>"; print "<td align=center>" . $scgcuenta . "</td>"; } else { print "<tr class=celdas-azules>"; print "<td><a href=\"javascript: aceptar('{$cuenta}','{$denominacion}','{$scgcuenta}','{$codest1}','{$denestpro1}','{$codest2}','{$denestpro2}','{$codest3}','{$denestpro3}','{$status}');\">" . $cuenta . "</a></td>"; print "<td align=left>" . $codest1 . "</td>"; print "<td align=left>" . $codest2 . "</td>";
$data = $rs_cta; if ($row = $io_sql->fetch_row($rs_cta)) { $data = $io_sql->obtener_datos($rs_cta); $arrcols = array_keys($data); $totcol = count($arrcols); $ds->data = $data; $totrow = $ds->getRowCount("spg_cuenta"); for ($z = 1; $z <= $totrow; $z++) { $cuenta = $data["spg_cuenta"][$z]; $denominacion = $data["denominacion"][$z]; $codest1 = $data["CodEstPro1"][$z]; $denestpro1 = uf_obtener_denominacion("spg_ep1", "DenEstPro1", " CodEstPro1='" . $codest1 . "'"); $codest2 = $data["CodEstPro2"][$z]; $denestpro2 = uf_obtener_denominacion("spg_ep2", "DenEstPro2", " CodEstPro1='" . $codest1 . "' AND CodEstPro2 ='" . $codest2 . "'"); $codest3 = $data["CodEstPro3"][$z]; $denestpro3 = uf_obtener_denominacion("spg_ep3", "DenEstPro3", " CodEstPro1='" . $codest1 . "' AND CodEstPro2 ='" . $codest2 . "' AND CodEstPro3 ='" . $codest3 . "' "); $scgcuenta = $data["sc_cuenta"][$z]; $status = $data["status"][$z]; if ($status == "S") { print "<tr class=celdas-blancas>"; print "<td>" . $cuenta . "</td>"; print "<td align=left>" . $codest1 . "</td>"; print "<td align=left>" . $codest2 . "</td>"; print "<td align=left>" . $codest3 . "</td>"; print "<td align=left>" . $denominacion . "</td>"; print "<td align=center>" . $scgcuenta . "</td>"; } else { print "<tr class=celdas-azules>"; print "<td><a href=\"javascript: aceptar('{$cuenta}','{$denominacion}','{$scgcuenta}','{$codest1}','{$denestpro1}','{$codest2}','{$denestpro2}','{$codest3}','{$denestpro3}','{$status}');\">" . $cuenta . "</a></td>"; print "<td align=left>" . $codest1 . "</td>"; print "<td align=left>" . $codest2 . "</td>";