Changeset 7655 for trunk/workflow/inc/report
- Timestamp:
- 12/14/12 14:30:35 (12 years ago)
- Location:
- trunk/workflow/inc/report
- Files:
-
- 7 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/workflow/inc/report/downloads.php
r5307 r7655 16 16 17 17 $fileDown = ''; 18 for($i = 1; $i < (count($pathPartes)); $i++){18 for($i = 1; $i < (count($pathPartes)); ++$i){ 19 19 $fileDown = ($fileDown != '') ? $fileDown . '/' : $fileDown ; 20 20 $fileDown .= $pathPartes[$i]; -
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#")) { -
trunk/workflow/inc/report/xajax/xajax.inc.php
r5307 r7655 608 608 if ($bFoundFunction) 609 609 { 610 for ($i = 0; $i < sizeof($aArgs); $i++)610 for ($i = 0; $i < sizeof($aArgs); ++$i) 611 611 { 612 612 // If magic quotes is on, then we need to strip the slashes from the args -
trunk/workflow/inc/report/xajax/xajaxCompress.php
r5307 r7655 58 58 $escaped = false; 59 59 $quoteChar = ""; 60 61 for($i=0;$i<count($lines);$i++) 60 $lines_count = count($lines); 61 62 for($i=0;$i<$lines_count;++$i) 62 63 { 63 64 $line = $lines[$i]; … … 65 66 66 67 //loop through line's characters and take out any literal strings, replace them with ___i___ where i is the index of this string 67 for($j=0;$j<strlen($line); $j++)68 for($j=0;$j<strlen($line);++$j) 68 69 { 69 70 $c = substr($line,$j,1); … … 89 90 $quoteChar = $d; 90 91 $literal = $d; 91 $j++;92 ++$j; 92 93 } 93 94 else if($d=="//") //ignore string markers that are found inside comments … … 126 127 array_push($literal_strings,$literal); 127 128 128 $j++;129 ++$j; 129 130 } 130 131 else if($c == "\\" && !$escaped) … … 143 144 144 145 //now process each line at a time 145 for($i=0;$i<count($lines);$i++) 146 $lines_count = count($lines); 147 for($i=0;$i<$lines_count;++$i) 146 148 { 147 149 $line = $lines[$i]; … … 175 177 176 178 //finally loop through and replace all the literal strings: 177 for($i=0;$i<count($literal_strings);$i++) 179 $literal_strings_count = count($literal_strings); 180 for($i=0;$i<$literal_strings_count;++$i) 178 181 $sJS = str_replace("___".$i."___",$literal_strings[$i],$sJS); 179 182 -
trunk/workflow/inc/report/xajax/xajaxResponse.inc.php
r5307 r7655 257 257 if ($queryStart !== FALSE) 258 258 { 259 $queryStart++;259 ++$queryStart; 260 260 $queryEnd = strpos($sURL, '#', $queryStart); 261 261 if ($queryEnd === FALSE)
Note: See TracChangeset
for help on using the changeset viewer.