Changeset 7655 for trunk/calendar/inc/class.uicalendar.inc.php
- Timestamp:
- 12/14/12 14:30:35 (12 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/calendar/inc/class.uicalendar.inc.php
r6057 r7655 282 282 if(!$mini_cal_tpl->get_var('daynames')) 283 283 { 284 for($i=0;$i<7; $i++)284 for($i=0;$i<7;++$i) 285 285 { 286 286 $var = Array( … … 328 328 ); 329 329 } 330 for($l=0;$l<count($var); $l++)330 for($l=0;$l<count($var);++$l) 331 331 { 332 332 $this->output_template_array($mini_cal_tpl,'monthweek_day','mini_day',$var[$l]); … … 742 742 $p->set_var($var); 743 743 744 for($i=1;$i<=12; $i++)744 for($i=1;$i<=12;++$i) 745 745 { 746 746 if(($i % 3) == 1) … … 1331 1331 $str = ''; 1332 1332 1333 for($i=0;$i<count($event['recur_exception']); $i++)1333 for($i=0;$i<count($event['recur_exception']);++$i) 1334 1334 { 1335 1335 $str .= ' <option value="'.$i.'">'.$GLOBALS['phpgw']->common->show_date($event['recur_exception'][$i]).'</option>'."\n"; … … 1457 1457 // Add participants 1458 1458 $participants = explode(";", $GLOBALS['phpgw']->session->appsession("participants") ); 1459 for($_f_part=0; $_f_part<count($participants); $_f_part++)1459 for($_f_part=0; $_f_part<count($participants); ++$_f_part) 1460 1460 { 1461 1461 $this->bo->add_attribute('participants','A',$participants[$_f_part]); … … 1800 1800 . '<tr><td height="1" colspan="'.((11 * $interval) + 1).'" bgcolor="black"><img src="'.$pix.'"></td></tr>' 1801 1801 . '<tr><td width="15%"><font color="'.$this->theme['bg_text'].'" face="'.$this->theme['font'].'" size="-2">'.lang('Participant').'</font></td>'; 1802 for($i=8;$i<19; $i++)1803 { 1804 for($j=0;$j<$interval; $j++)1802 for($i=8;$i<19;++$i) 1803 { 1804 for($j=0;$j<$interval;++$j) 1805 1805 { 1806 1806 $k = ($j == 0 ? sprintf('%02d',$i).'<br>':'').sprintf('%02d',$j*$increment); … … 1854 1854 if(!$this->bo->cached_events[$date['full']]) 1855 1855 { 1856 for($j=8;$j<19; $j++)1856 for($j=8;$j<19;++$j) 1857 1857 { 1858 for($k=0;$k<$interval; $k++)1858 for($k=0;$k<$interval;++$k) 1859 1859 { 1860 1860 // $helper_name = $k* … … 1867 1867 { 1868 1868 $time_slice = $this->bo->prepare_matrix($interval,$increment,$part,$date['full']); 1869 for($h=8;$h<19; $h++)1869 for($h=8;$h<19;++$h) 1870 1870 { 1871 1871 $hour = $h * 10000; 1872 for($m=0;$m<$interval; $m++)1872 for($m=0;$m<$interval;++$m) 1873 1873 { 1874 1874 $index = ($hour + (($m * $increment) * 100)); … … 2267 2267 $y = $this->bo->year; 2268 2268 $this->bo->read_holidays($y); 2269 for ($i=1; $i<=$this->bo->num_months; $i++,$m++)2269 for ($i=1; $i<=$this->bo->num_months; ++$i,++$m) 2270 2270 { 2271 2271 if ($m == 13) … … 2296 2296 ); 2297 2297 } 2298 for ($d=1; $d<=$days; $d++)2298 for ($d=1; $d<=$days; ++$d) 2299 2299 { 2300 2300 $dayname = substr(lang(date('D',mktime(0,0,0,$m,$d,$y))),0,2); … … 2601 2601 if ($end_cell == $start_cell && $end_cell < $last_cell) 2602 2602 { 2603 $end_cell++; // min. width 1 interval2603 ++$end_cell; // min. width 1 interval 2604 2604 } 2605 2605 } … … 2736 2736 // process all events within observed interval 2737 2737 // 2738 for($v=$this->planner_firstday;$v<=$this->planner_lastday; $v++)2738 for($v=$this->planner_firstday;$v<=$this->planner_lastday;++$v) 2739 2739 { 2740 2740 $daily = $this->bo->cached_events[$v]; … … 2809 2809 $accounts = $GLOBALS['phpgw']->acl->get_ids_for_location('run',1,'calendar'); 2810 2810 $users = Array(); 2811 for($i=0;$i<count($accounts); $i++)2811 for($i=0;$i<count($accounts);++$i) 2812 2812 { 2813 2813 $user = $accounts[$i]; … … 2820 2820 if($group_members != False) 2821 2821 { 2822 for($j=0;$j<count($group_members); $j++)2822 for($j=0;$j<count($group_members);++$j) 2823 2823 { 2824 2824 if(!isset($users[$group_members[$j]])) … … 2861 2861 ); 2862 2862 2863 for($i=0;$i<count($var); $i++)2863 for($i=0;$i<count($var);++$i) 2864 2864 { 2865 2865 $this->output_template_array($p,'rows','list',$var[$i]); … … 3155 3155 if($this->bo->check_perms(PHPGW_ACL_PRIVATE) == True) 3156 3156 { 3157 $cols++;3157 ++$cols; 3158 3158 } 3159 3159 … … 3229 3229 /* Bloco adicionado para receber o dia a partir do qual a versao para impressao sera gerada */ 3230 3230 $str_ini = ''; 3231 for ($i = 1; $i <= ($GLOBALS['phpgw']->datetime->days_in_month($m, $y)); $i++)3231 for ($i = 1; $i <= ($GLOBALS['phpgw']->datetime->days_in_month($m, $y)); ++$i) 3232 3232 { 3233 3233 $str_ini .= '<option value="'.$i.'"'.($i == $day?' selected':'').'>'.$i.'</option>'."\n"; 3234 3234 } 3235 3235 $str_qtd = '<option value="'.''.'"'.($i == $_POST['qtd_dias']?' selected':'').'>'.''.'</option>'."\n"; 3236 for ($i = 1; $i <= 45; $i++)3236 for ($i = 1; $i <= 45; ++$i) 3237 3237 { 3238 3238 $str_qtd .= '<option value="'.$i.'"'.($i == $_POST['qtd_dias']?' selected':'').'>'.$i.'</option>'."\n"; … … 3272 3272 3273 3273 $str = ''; 3274 for ($i = 0; $i < 20; $i++)3275 { 3276 $m++;3274 for ($i = 0; $i < 20; ++$i) 3275 { 3276 ++$m; 3277 3277 if ($m > 12) 3278 3278 { 3279 3279 $m = 1; 3280 $y++;3280 ++$y; 3281 3281 } 3282 3282 $d = mktime(0,0,0,$m,1,$y); … … 3304 3304 3305 3305 $str = ''; 3306 for ($i = -7; $i <= 7; $i++)3306 for ($i = -7; $i <= 7; ++$i) 3307 3307 { 3308 3308 $begin = $sun + (7*24*60*60 * $i) + 12*60*60; // we use midday, that changes in daylight-saveing does not effect us … … 3329 3329 3330 3330 $str = ''; 3331 for ($i = ($this->bo->year - 3); $i < ($this->bo->year + 3); $i++)3331 for ($i = ($this->bo->year - 3); $i < ($this->bo->year + 3); ++$i) 3332 3332 { 3333 3333 $str .= '<option value="'.$i.'"'.($i == $this->bo->year?' selected':'').'>'.$i.'</option>'."\n"; … … 3358 3358 $date_str .= ' <input type="hidden" name="year" value="'.$this->bo->year.'">'."\n"; 3359 3359 3360 for($i=1; $i<=6; $i++)3360 for($i=1; $i<=6; ++$i) 3361 3361 { 3362 3362 $str .= '<option value="'.$i.'"'.($i == $this->bo->num_months?' selected':'').'>'.$i.'</option>'."\n"; … … 3607 3607 3608 3608 $description = $this->bo->get_short_field($event,$is_private,'description'); 3609 for($i=0;$i<count($picture); $i++)3609 for($i=0;$i<count($picture);++$i) 3610 3610 { 3611 3611 $var = Array( … … 3797 3797 3798 3798 $description = $this->bo->get_short_field($event,$is_private,'description'); 3799 for($i=0;$i<count($picture); $i++)3799 for($i=0;$i<count($picture);++$i) 3800 3800 { 3801 3801 $var = Array( … … 3868 3868 3869 3869 $overlap = ''; 3870 for($i=0;$i<count($overlapping_events); $i++)3870 for($i=0;$i<count($overlapping_events);++$i) 3871 3871 { 3872 3872 $overlapped_event = $this->bo->read_entry($overlapping_events[$i],True); … … 4056 4056 } 4057 4057 4058 for($i=0;$i<7; $i++)4058 for($i=0;$i<7;++$i) 4059 4059 { 4060 4060 $p->set_var('col_title',lang($GLOBALS['phpgw']->datetime->days[$i])); … … 4536 4536 $tstop = $tstart + 604800; 4537 4537 $original_owner = $this->bo->so->owner; 4538 for($i=0;$i<$counter; $i++)4538 for($i=0;$i<$counter;++$i) 4539 4539 { 4540 4540 $this->bo->so->owner = $owners_array[$i]; … … 4877 4877 . '<tr><td height="1" colspan="'.((24 * $interval) + 1).'" bgcolor="black"><img src="'.$pix.'"></td></tr>' 4878 4878 . '<tr><td width="15%"><font color="'.$this->theme['bg_text'].'" face="'.$this->theme['font'].'" size="-2">'.lang('Participant').'</font></td>'; 4879 for($i=0;$i<24; $i++)4880 { 4881 for($j=0;$j<$interval; $j++)4879 for($i=0;$i<24;++$i) 4880 { 4881 for($j=0;$j<$interval;++$j) 4882 4882 { 4883 4883 $k = ($j == 0 ? sprintf('%02d',$i).'<br>':'').sprintf('%02d',$j*$increment); … … 4916 4916 if(!$this->bo->cached_events[$date['full']]) 4917 4917 { 4918 for($j=0;$j<24; $j++)4918 for($j=0;$j<24;++$j) 4919 4919 { 4920 for($k=0;$k<$interval; $k++)4920 for($k=0;$k<$interval;++$k) 4921 4921 { 4922 4922 $str .= '<td height="1" align="left" bgcolor="'.$this->theme['bg_color'].'" color="#999999"> </td>'; … … 4928 4928 { 4929 4929 $time_slice = $this->bo->prepare_matrix($interval,$increment,$part,$date['full']); 4930 for($h=0;$h<24; $h++)4930 for($h=0;$h<24;++$h) 4931 4931 { 4932 4932 $hour = $h * 10000; … … 5479 5479 // days 5480 5480 $dout = '<select name="cal[alarmdays]">'."\n"; 5481 for($i=0;$i<32; $i++)5481 for($i=0;$i<32;++$i) 5482 5482 { 5483 5483 $dout .= '<option value="'.$i.'"'.($i==$days?' selected':'').'>'.$i.'</option>'."\n"; … … 5486 5486 // hours 5487 5487 $hout = '<select name="cal[alarmhours]">'."\n"; 5488 for($i=0;$i<25; $i++)5488 for($i=0;$i<25;++$i) 5489 5489 { 5490 5490 $hout .= '<option value="'.$i.'"'.($i==$hours?' selected':'').'>'.$i.'</option>'."\n"; … … 5493 5493 // minutes 5494 5494 $mout = '<select name="cal[alarmminutes]">'."\n"; 5495 for($i=0;$i<61; $i++)5495 for($i=0;$i<61;++$i) 5496 5496 { 5497 5497 $mout .= '<option value="'.$i.'"'.($i==$min?' selected':'').'>'.$i.'</option>'."\n"; … … 5734 5734 } 5735 5735 5736 for ($i=0; $i<count($control_data['part']); $i++)5736 for ($i=0; $i<count($control_data['part']); ++$i) 5737 5737 { 5738 5738 $id = $control_data['part'][$i]; … … 5745 5745 if ($control_data['action'] == lang('Delete selected contacts')) 5746 5746 { 5747 for ($i=0; $i<count($control_data['delete']); $i++)5747 for ($i=0; $i<count($control_data['delete']); ++$i) 5748 5748 { 5749 5749 $id = $control_data['delete'][$i]; … … 5773 5773 $p->set_var('ckbox_delete_participant',$contact['name']); 5774 5774 $p->parse('V_partlist','B_partlist',True); 5775 $total_contacts++;5775 ++$total_contacts; 5776 5776 } 5777 5777 … … 5894 5894 { 5895 5895 $data = date("m"); 5896 for ($j=0,$datetime=$startdate;$j<7; $j++,$datetime += 86400)5896 for ($j=0,$datetime=$startdate;$j<7;++$j,$datetime += 86400) 5897 5897 { 5898 5898 $date = date('Ymd',$datetime + (60 * 60 * 2)); // +2h to be save when switching to and from dst, $datetime is alreay + TZ-Offset … … 5970 5970 if($holidays) 5971 5971 { 5972 for($k=0;$k<count($holidays); $k++)5972 for($k=0;$k<count($holidays);++$k) 5973 5973 { 5974 5974 $holiday_name[] = $holidays[$k]['name'];
Note: See TracChangeset
for help on using the changeset viewer.