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/phpgwapi/inc/class.matrixview.inc.php

    r2 r7655  
    6161                function matrixview ($month_int = 0, $year_int = 0) 
    6262                { 
    63                         for($i;$i<32;$i++) 
     63                        for($i;$i<32;++$i) 
    6464                        { 
    6565                                if(checkdate($month_int,$i,$year_int)) $days++; 
     
    131131                                        $go = 0; 
    132132                                } 
    133                                 $i++; 
     133                                ++$i; 
    134134                        } 
    135135                 
     
    211211 
    212212                        // loop through number of items 
    213                         for($z=0;$z<$this->items_count;$z++) 
     213                        for($z=0;$z<$this->items_count;++$z) 
    214214                        { 
    215215                                // seperate color and name from first array element 
     
    222222 
    223223                                // loop through days of desired month 
    224                                 for($r=1;$r<$this->sumdays+1;$r++) 
     224                                for($r=1;$r<$this->sumdays+1;++$r) 
    225225                                { 
    226226                                        if($this->items_content[$z][$r] == 'x') 
     
    258258                        echo '<td>' . lang('Title') . '</td>' . "\n"; 
    259259 
    260                         for($i=1;$i<$this->sumdays+1;$i++) 
     260                        for($i=1;$i<$this->sumdays+1;++$i) 
    261261                        { 
    262262                                echo '<td bgcolor="'; echo $this->color_headerfield; echo '">' . sprintf("%02d",$i) . '</td>' . "\n"; 
     
    302302                                echo '<select name="month"';  
    303303 
    304                                 for($i=0;$i<13;$i++) 
     304                                for($i=0;$i<13;++$i) 
    305305                                { 
    306306                                        if ($this->month == $i) 
     
    318318                                echo '<select name="year"'; 
    319319 
    320                                 for($i = date('Y') -2;$i<date('Y')+5;$i++) 
     320                                for($i = date('Y') -2;$i<date('Y')+5;++$i) 
    321321                                { 
    322322                                        if($this->year == $i) 
Note: See TracChangeset for help on using the changeset viewer.