Changeset 7655 for trunk/workflow/inc/report/includes
- Timestamp:
- 12/14/12 14:30:35 (11 years ago)
- Location:
- trunk/workflow/inc/report/includes/classes
- Files:
-
- 3 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/workflow/inc/report/includes/classes/FormularioUtil.class.php
r5307 r7655 88 88 $resu = pg_query($conn,$sql); 89 89 if (pg_num_rows($resu)>0) { 90 for ($x=0;$x<pg_num_rows($resu); $x++) {90 for ($x=0;$x<pg_num_rows($resu);++$x) { 91 91 $arrSelectValues[pg_fetch_result($resu,$x,$id)] = pg_fetch_result($resu,$x,$value); 92 92 } … … 111 111 $resu = pg_query($conn,$sql); 112 112 if (pg_num_rows($resu)>0) { 113 for ($x=0;$x<pg_num_rows($resu); $x++) {113 for ($x=0;$x<pg_num_rows($resu);++$x) { 114 114 $arrSelectChecks[] = array(pg_fetch_result($resu,$x,$oid), pg_fetch_result($resu,$x,$descricao), false); 115 115 } … … 122 122 $resu = pg_query($conn,$sql); 123 123 if (pg_num_rows($resu)>0) { 124 for ($x=0;$x<pg_num_rows($resu); $x++) {124 for ($x=0;$x<pg_num_rows($resu);++$x) { 125 125 $arrSelectChecks[] = array(pg_fetch_result($resu,$x,$oid), pg_fetch_result($resu,$x,$descricao), false); 126 126 } -
trunk/workflow/inc/report/includes/classes/Listagem.class.php
r6413 r7655 1388 1388 1389 1389 1390 for ($qtd_reg = 1;$qtd_reg <= $qtd_registros; $qtd_reg++) {1390 for ($qtd_reg = 1;$qtd_reg <= $qtd_registros; ++$qtd_reg) { 1391 1391 1392 1392 if ($this->_isarray) { … … 1458 1458 if ($cntcheckspan) { 1459 1459 if ($this->_temarquivocsv) { 1460 for ($j=1; $j<= $cntcheckspan; $j++) {1460 for ($j=1; $j<= $cntcheckspan; ++$j) { 1461 1461 if ($j == $cntcheckspan) { 1462 1462 $this->_txtarquivo .= $txtarquivotexto; … … 1729 1729 1730 1730 if ($this->_temarquivocsv) { 1731 for ($j=1; $j<= $cntcheckspan; $j++) {1731 for ($j=1; $j<= $cntcheckspan; ++$j) { 1732 1732 if ($j == $cntcheckspan) { 1733 1733 $this->_txtarquivo .= $txtarquivotexto; … … 1803 1803 if ($cntcheckspan) { 1804 1804 if ($this->_temarquivocsv) { 1805 for ($j=1; $j<= $cntcheckspan; $j++) {1805 for ($j=1; $j<= $cntcheckspan; ++$j) { 1806 1806 if ($j == $cntcheckspan) { 1807 1807 $this->_txtarquivo .= $txtarquivotexto; … … 2158 2158 public function autoAdicionarColunas() { 2159 2159 $i = pg_num_fields($this->dados); 2160 for ($j = 0; $j < $i; $j++) {2160 for ($j = 0; $j < $i; ++$j) { 2161 2161 $fieldname = pg_field_name($this->dados, $j); 2162 2162 $tipo = pg_field_type($this->dados, $j); -
trunk/workflow/inc/report/includes/classes/SqlParser.class.php
r5307 r7655 118 118 protected function getQuantidadeIfs($texto) { 119 119 $qtd = 0; 120 for ($i = 0; $i <= strlen($texto); $i++) {120 for ($i = 0; $i <= strlen($texto); ++$i) { 121 121 if (strtolower(substr($texto,$i,3)) == "#if") { 122 122 $qtd = $qtd + 1; … … 128 128 protected function numerarCondicao($texto,$num) { 129 129 $qtd = 0; 130 for ($i = 0; $i <= strlen($texto); $i++) {130 for ($i = 0; $i <= strlen($texto); ++$i) { 131 131 if (strtolower(substr($texto,$i,3)) == "#if") { 132 132 $qtd = $qtd + 1; … … 134 134 $condicoesfechadas = 0; 135 135 if ($qtd == $num) { 136 for ($j = $i+1; $j <= strlen($texto); $j++) {136 for ($j = $i+1; $j <= strlen($texto); ++$j) { 137 137 138 138 if ((strtolower(substr($texto,$j,5)) == "#/if#")) {
Note: See TracChangeset
for help on using the changeset viewer.