Changeset 6057 for trunk/mobile
- Timestamp:
- 04/27/12 09:17:30 (12 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/mobile/inc/class.ui_mobilecalendar.inc.php
r4277 r6057 146 146 //descobrindo a semana anterior e a pŽroxima 147 147 $last_week = date("d-m-Y", strtotime("-7 day", mktime(0,0,0,$month,$day,$year) ) ); 148 $last_week = split("-",$last_week);148 $last_week = preg_split('/-/',$last_week); 149 149 $next_week = date("d-m-Y", strtotime("+7 day", mktime(0,0,0,$month,$day,$year) ) ); 150 $next_week = split("-",$next_week);150 $next_week = preg_split('/-/',$next_week); 151 151 152 152 //descobrind o primeiro dia da semana e o último 153 153 $first_week_day = date("d-m-Y", strtotime("-".$current_day_of_week." day", mktime(0,0,0,$month,$day,$year) ) ); 154 $first_week_day = split("-",$first_week_day);154 $first_week_day = preg_split('/-/',$first_week_day); 155 155 $last_week_day = date("d-m-Y", strtotime("+".(6-$current_day_of_week)." day", mktime(0,0,0,$month,$day,$year) ) ); 156 $last_week_day = split("-",$last_week_day);156 $last_week_day = preg_split('/-/',$last_week_day); 157 157 158 158 //definindo a barra de navegação do calandário … … 196 196 $last_day_of_before_month = date('t', mktime(0,0,0,$month-1,"01",$year)); 197 197 $last_month_year = date("m-Y", strtotime("-1 month", mktime(0,0,0,$month,"01",$year) ) ); 198 $last_month_year = split("-",$last_month_year);198 $last_month_year = preg_split('/-/',$last_month_year); 199 199 $next_month_year = date("m-Y", strtotime("+1 month", mktime(0,0,0,$month,"01",$year) ) ); 200 $next_month_year = split("-",$next_month_year);200 $next_month_year = preg_split('/-/',$next_month_year); 201 201 $today = date("d-m-Y"); 202 202 … … 285 285 //descobrind o primeiro dia da semana e o último 286 286 $before_day = date("d-m-Y", strtotime("-1 day", mktime(0,0,0,$month,$day,$year) ) ); 287 $before_day = split("-",$before_day);287 $before_day = preg_split('/-/',$before_day); 288 288 $next_day = date("d-m-Y", strtotime("+1 day", mktime(0,0,0,$month,$day,$year) ) ); 289 $next_day = split("-",$next_day);289 $next_day = preg_split('/-/',$next_day); 290 290 291 291 //definindo a barra de navegação do calandário
Note: See TracChangeset
for help on using the changeset viewer.