Changeset 7655 for trunk/mobile


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

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

Location:
trunk/mobile
Files:
4 edited

Legend:

Unmodified
Added
Removed
  • trunk/mobile/inc/class.ui_mobilecalendar.inc.php

    r6057 r7655  
    204204                                 
    205205                                //identificando os dias do mês anterior 
    206                                 for($i = 0; $i < $day_of_week_first_day; $i++) { 
     206                                for($i = 0; $i < $day_of_week_first_day; ++$i) { 
    207207                                        $days_of_calendar[$i] = array("day" => ($last_day_of_before_month-$day_of_week_first_day+$i+1), "month" => $last_month_year[0], "year" => $last_month_year[1], "other_month" => true);                                   
    208208                                } 
    209209                                 
    210210                                //adicionando os dias do mês especificado 
    211                                 for($i = 0; $i < ($last_day_of_month ); $i++) { 
     211                                for($i = 0; $i < ($last_day_of_month ); ++$i) { 
    212212                                        $days_of_calendar[$i+$day_of_week_first_day] = array("day" => $i+1, "month" => $month, "year" => $year, "other_month" => false); 
    213213                                } 
     
    234234                                $this->template->parse('events_box','bar_block',true); 
    235235                                 
    236                                 for($i = 0; $i < 7; $i++) { 
     236                                for($i = 0; $i < 7; ++$i) { 
    237237                                        $this->template->set_var("week_day", $this->shortDaysOfWeek[$i]); 
    238238                                        $this->template->parse('week_day_box','calendar_header_block',true); 
  • trunk/mobile/inc/class.ui_mobilecc.inc.php

    r5928 r7655  
    225225                                $this->template->set_var('href_next',"index.php?menuaction=mobile.". 
    226226                                                                                 "ui_mobilecc.change_letter&letter=".$last_letter); 
    227                                 $first_letter++; 
    228                         } 
    229                          
    230                         for($i=1;$i<=$max_letters;$i++) { //Roda as letras 
     227                                ++$first_letter; 
     228                        } 
     229                         
     230                        for($i=1;$i<=$max_letters;++$i) { //Roda as letras 
    231231                                        $this->template->set_var("href","index.php?menuaction=mobile.". 
    232232                                                                                        "ui_mobilecc.change_letter&letter=".$first_letter); 
     
    238238                                        $this->template->set_var("letter",strtoupper($first_letter)); 
    239239                                        $this->template->fp("pagging_letters","pagging_block",true); 
    240                                         $first_letter++; 
     240                                        ++$first_letter; 
    241241                        } 
    242242                         
     
    846846         
    847847                                if ( !empty($params['email']) || !empty($params['id_connection_email']) ){ 
    848                                         $cont++; 
     848                                        ++$cont; 
    849849                                 
    850850                                        if (empty($params['id_connection_email'])){ 
     
    860860         
    861861                                if ( !empty($params['phone']) || !empty($params['id_connection_phone']) ){ 
    862                                         $cont++; 
     862                                        ++$cont; 
    863863         
    864864                                        if (empty($params['id_connection_phone'])){ 
  • trunk/mobile/inc/class.ui_mobilemail.inc.php

    r6714 r7655  
    573573                        { 
    574574                                // Geração das páginas 
    575                                 for ($i = 1; $i <= $number_of_pages ; $i++) 
     575                                for ($i = 1; $i <= $number_of_pages ; ++$i) 
    576576                                { 
    577577 
  • trunk/mobile/index.php

    r5303 r7655  
    1414        } 
    1515         
    16         $fwConstruct .= $REQUEST_URI; 
     16        $fwConstruct .= urldecode($REQUEST_URI); 
    1717         
    1818        if(!$GLOBALS['sessionid']) 
Note: See TracChangeset for help on using the changeset viewer.