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.sbox.inc.php

    r5912 r7655  
    7575                        $t_s[$selected] = ' selected'; 
    7676 
    77                         for ($i=0; $i<24; $i++) 
     77                        for ($i=0; $i<24; ++$i) 
    7878                        { 
    7979                                $s .= '<option value="' . $i . '"' . $t_s[$i] . '>' 
     
    8989                        $s = '<select name="' . $name . '">'; 
    9090                        $t_s[$selected] = " selected"; 
    91                         for ($i=1; $i<13; $i++) 
     91                        for ($i=1; $i<13; ++$i) 
    9292                        { 
    9393                                $s .= '<option value="' . $i . '"' . $t_s[$i] . '>' 
     
    106106                        $t_s[$selected] = " selected"; 
    107107 
    108                         for ($i=0; $i<60; $i++) 
     108                        for ($i=0; $i<60; ++$i) 
    109109                        { 
    110110                                $s .= '<option value="' . $i . '"' . $t_s[sprintf("%02d",$i)] . '>' . sprintf("%02d",$i) . '</option>'; 
     
    139139                { 
    140140                        $out = ''; 
    141                         for($i=0;$i<count($this->weekdays);$i++) 
     141                        for($i=0;$i<count($this->weekdays);++$i) 
    142142                        { 
    143143                                $out .= '<option value="'.$i.'"'.($selected!=$i?'':' selected').'>'.($this->weekdays[$i]!=''?lang($this->weekdays[$i]):'').'</option>'."\n"; 
     
    148148                function nr2weekday($selected = 0) 
    149149                { 
    150                         for($i=0;$i<count($this->weekdays);$i++) 
     150                        for($i=0;$i<count($this->weekdays);++$i) 
    151151                        { 
    152152                                if ($selected > 0 && $selected == $i) 
     
    161161                        $out = ''; 
    162162                        $c_monthnames = count($this->monthnames); 
    163                         for($i=0;$i<$c_monthnames;$i++) 
     163                        for($i=0;$i<$c_monthnames;++$i) 
    164164                        { 
    165165                                $out .= '<option value="'.$i.'"'.($selected!=$i?'':' selected').'>'.($this->monthnames[$i]!=''?lang($this->monthnames[$i]):'').'</option>'."\n"; 
     
    171171                { 
    172172                        $out = ''; 
    173                         for($i=0;$i<=12;$i++) 
     173                        for($i=0;$i<=12;++$i) 
    174174                        { 
    175175                                $out .= '<option value="'.$i.'"'.($selected!=$i?'':' selected').'>'.($i?$i:'').'</option>'."\n"; 
     
    183183                        $out = ''; 
    184184 
    185                         for($i=0;$i<32;$i++) 
     185                        for($i=0;$i<32;++$i) 
    186186                        { 
    187187                                $out .= '<option value="'.($i?$i:'').'"'.($selected!=$i?'':' selected').'>'.($i?$i:'').'</option>'."\n"; 
     
    214214 
    215215                        // We need to add some good error checking here. 
    216                         for ($i=$startYear;$i<$endyear; $i++) 
     216                        for ($i=$startYear;$i<$endyear; ++$i) 
    217217                        { 
    218218                                $out .= '<option value="'.$i.'"'; 
     
    251251                        $out = '<select name="' . $name . '">'; 
    252252 
    253                         for($i=1;$i<count($arr);$i++) 
     253                        for($i=1;$i<count($arr);++$i) 
    254254                        { 
    255255                                $out .= "<option value=\""; 
     
    304304                                if(@is_array($selected)) 
    305305                                { 
    306                                         for($i=0;$i<count($selected);$i++) 
     306                                        for($i=0;$i<count($selected);++$i) 
    307307                                        { 
    308308                                                if ($group['account_id'] == $selected[$i]) 
Note: See TracChangeset for help on using the changeset viewer.