Changeset 4705 for trunk/calendar/inc
- Timestamp:
- 07/13/11 15:35:43 (13 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/calendar/inc/class.uicalendar.inc.php
r4565 r4705 5165 5165 ) 5166 5166 ); 5167 5167 $this->bo->read_holidays($params['year']); 5168 5168 $next = $GLOBALS['phpgw']->datetime->makegmttime(0,0,0,$this->bo->month,$this->bo->day + 7,$this->bo->year); 5169 5169 $prev = $GLOBALS['phpgw']->datetime->makegmttime(0,0,0,$this->bo->month,$this->bo->day - 7,$this->bo->year); … … 5188 5188 'new_week' => $tpl, 5189 5189 ); 5190 5190 $feriados_do_ano = Array(); 5191 foreach ($this->bo->cached_holidays as $key => $value) 5192 { 5193 $feriados_do_ano[$key] = utf8_encode($this->bo->cached_holidays[$key][0]['name']); 5194 } 5191 5195 $p->set_file($templates); 5192 5196 $p->set_block('new_week','day','day'); … … 5202 5206 $p->set_var('user',$GLOBALS['phpgw']->common->grab_owner_name($this->bo->owner)); 5203 5207 $p->set_var('events_json',json_encode($result_events_json['events_to_show_json'])?json_encode($result_events_json['events_to_show_json']):'null'); 5208 $p->set_var('holidays_json',json_encode($feriados_do_ano)?json_encode($feriados_do_ano):null); 5204 5209 return $p->fp('out','day'); 5205 5210 … … 5210 5215 $p = CreateObject('phpgwapi.Template',$this->template_dir); 5211 5216 $p->set_unknowns('keep'); 5212 5213 5217 $tpl = 'new_month.tpl'; 5214 5218 … … 5257 5261 ) 5258 5262 ); 5259 5263 $this->bo->read_holidays($params['year']); 5260 5264 $print = '<a href="javascript:void(0)" id="printFriendly">['.lang('Printer Friendly').']</a>'; 5261 5265 … … 5277 5281 } 5278 5282 5283 $feriados_do_ano = Array(); 5284 foreach ($this->bo->cached_holidays as $key => $value) 5285 { 5286 $feriados_do_ano[$key] = utf8_encode($this->bo->cached_holidays[$key][0]['name']); 5287 } 5279 5288 $m = mktime(0,0,0,$this->bo->month,1,$this->bo->year); 5280 5289 $p->set_file($templates); … … 5293 5302 $p->set_var('user',$GLOBALS['phpgw']->common->grab_owner_name($this->bo->owner)); 5294 5303 $p->set_var('events_json',json_encode($result_events_json['events_to_show_json'])?json_encode($result_events_json['events_to_show_json']):'null'); 5304 $p->set_var('holidays_json',json_encode($feriados_do_ano)?json_encode($feriados_do_ano):null); 5295 5305 return $p->fp('out','day'); 5296 5306 }
Note: See TracChangeset
for help on using the changeset viewer.