Ignore:
Timestamp:
12/14/12 14:30:35 (11 years ago)
Author:
douglasz
Message:

Ticket #3236 - Melhorias de performance no codigo do Expresso.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/workflow/inc/class.powergraphic.inc.php

    r6037 r7655  
    405405 
    406406            unset($temp[$index]); 
    407             $i++; 
     407            ++$i; 
    408408        } 
    409409 
     
    464464            imagestring($this->img, 3, ($this->graphic_area_x1-$less-7), ($higher_value_y-7), $this->higher_value_str, $this->color['axis_values']); 
    465465 
    466             for ($i = 1; $i < 10; $i++) 
     466            for ($i = 1; $i < 10; ++$i) 
    467467            { 
    468468                $dec_y = $i * ($higher_value_size / 10); 
     
    503503            imagestring($this->img, 3, (($this->graphic_area_x1+$higher_value_size) - ($this->string_width($this->higher_value, 3)/2)), ($this->graphic_area_y2+2), $this->higher_value_str, $this->color['axis_values']); 
    504504 
    505             for ($i = 1, $alt = 15; $i < 10; $i++) 
     505            for ($i = 1, $alt = 15; $i < 10; ++$i) 
    506506            { 
    507507                $dec_x = number_format(round($i * ($higher_value_size  / 10), 1), 1, ".", ""); 
     
    561561                $y2   = $this->graphic_area_y2 - 1; 
    562562                $x   += $this->space_between_bars; 
    563                 $num++; 
     563                ++$num; 
    564564 
    565565                imageline($this->img, ($x1+1), ($y1-1), $x2, ($y1-1), $this->color['bars_shadow']); 
     
    950950                imagestring($this->img, 2, ($x2-$less), ($y-2), $percent, $this->color['axis_values']); 
    951951                $y += 14; 
    952                 $num++; 
     952                ++$num; 
    953953            } 
    954954        } 
     
    12811281    <span style="margin-left: 40px;">Parameter</span>  
    12821282    <span style="margin-left: 50px;">Value 1</span>  <span id="value_2" style="display: none; margin-left: 25px;">Value 2</span>'; 
    1283         for ($i = 0; $i <= 4; $i++) { 
     1283        for ($i = 0; $i <= 4; ++$i) { 
    12841284            echo '<div style="margin-left: 8px;"> '.($i+1).'. <input type="text" name="x'.$i.'" id="x'.$i.'" size="20" /> '; 
    12851285            echo ' <input type="text" name="y'.$i.'" id="y'.$i.'" size="10" onkeypress="return numbers();" /> '; 
Note: See TracChangeset for help on using the changeset viewer.