Changeset 7655 for trunk/calendar/inc
- Timestamp:
- 12/14/12 14:30:35 (11 years ago)
- Location:
- trunk/calendar/inc
- Files:
-
- 11 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/calendar/inc/class.bocalendar.inc.php
r7436 r7655 912 912 $endtime += $offset*$multi; 913 913 $starttime <= $enddate; 914 $i++,914 ++$i, 915 915 $i = ($i < count($dowOffsets))?$i:0, 916 916 $multi = $dowOffsets[$i], … … 1252 1252 $minparts = min($l_participants); 1253 1253 $part = Array(); 1254 for($i=0;$i<count($parts); $i++)1254 for($i=0;$i<count($parts);++$i) 1255 1255 { 1256 1256 if (($accept_type = substr($parts[$i],-1,1)) == '0' || (int)$accept_type > 0) … … 2137 2137 { 2138 2138 $exceptions = explode(',',$exception_str); 2139 for($exception_count=0;$exception_count<count($exceptions); $exception_count++)2139 for($exception_count=0;$exception_count<count($exceptions);++$exception_count) 2140 2140 { 2141 2141 $exception[] = (int)$exceptions[$exception_count]; … … 2196 2196 } 2197 2197 2198 for($i=0;$i<count($this->cached_events[$date]); $i++)2198 for($i=0;$i<count($this->cached_events[$date]);++$i) 2199 2199 { 2200 2200 if($this->cached_events[$date][$i]['id'] == $event['id'] || $this->cached_events[$date][$i]['reference'] == $event['id']) … … 2256 2256 $repeated = $this->repeating_events; 2257 2257 $r_events = count($repeated); 2258 for ($i=0;$i<$r_events; $i++)2258 for ($i=0;$i<$r_events;++$i) 2259 2259 { 2260 2260 $rep_events = $this->repeating_events[$i]; … … 2460 2460 { 2461 2461 $emonth = 1; 2462 $eyear++;2462 ++$eyear; 2463 2463 } 2464 2464 } … … 2510 2510 if($c_cached_ids) 2511 2511 { 2512 for($i=0;$i<$c_cached_ids; $i++)2512 for($i=0;$i<$c_cached_ids;++$i) 2513 2513 { 2514 2514 $event = $this->so->read_entry($cached_event_ids[$i]); … … 2525 2525 $start['month'] = (int)(substr($startdate,4,2)); 2526 2526 $start['mday'] = (int)(substr($startdate,6,2)); 2527 for($j=$startdate,$k=0;$j<=$enddate; $k++,$j=(int)(date('Ymd',mktime(0,0,0,$start['month'],$start['mday'] + $k,$start['year']))))2527 for($j=$startdate,$k=0;$j<=$enddate;++$k,$j=(int)(date('Ymd',mktime(0,0,0,$start['month'],$start['mday'] + $k,$start['year'])))) 2528 2528 { 2529 2529 $c_evt_day = count($this->cached_events[$j]) - 1; … … 2556 2556 if($c_cached_ids_repeating) 2557 2557 { 2558 for($i=0;$i<$c_cached_ids_repeating; $i++)2558 for($i=0;$i<$c_cached_ids_repeating;++$i) 2559 2559 { 2560 2560 $this->repeating_events[$i] = $this->so->read_entry($cached_event_ids_repeating[$i]); … … 2575 2575 { 2576 2576 echo '<!-- Total events found matching '.$search_date.' = '.count($this->cached_events[$search_date]).' -->'."\n"; 2577 for($i=0;$i<count($this->cached_events[$search_date]); $i++)2577 for($i=0;$i<count($this->cached_events[$search_date]);++$i) 2578 2578 { 2579 2579 echo '<!-- Date: '.$search_date.' ['.$i.'] = '.$this->cached_events[$search_date][$i]['id'].' -->'."\n"; … … 2583 2583 } 2584 2584 $retval = Array(); 2585 for($j=date('Ymd',mktime(0,0,0,$smonth,$sday,$syear)),$k=0;$j<=date('Ymd',mktime(0,0,0,$emonth,$eday,$eyear)); $k++,$j=date('Ymd',mktime(0,0,0,$smonth,$sday + $k,$syear)))2585 for($j=date('Ymd',mktime(0,0,0,$smonth,$sday,$syear)),$k=0;$j<=date('Ymd',mktime(0,0,0,$emonth,$eday,$eyear));++$k,$j=date('Ymd',mktime(0,0,0,$smonth,$sday + $k,$syear))) 2586 2586 { 2587 2587 if(is_array($this->cached_events[$j])) … … 2765 2765 function prepare_matrix($interval,$increment,$part,$fulldate) 2766 2766 { 2767 for($h=0;$h<24; $h++)2768 { 2769 for($m=0;$m<$interval; $m++)2767 for($h=0;$h<24;++$h) 2768 { 2769 for($m=0;$m<$interval;++$m) 2770 2770 { 2771 2771 $index = (($h * 10000) + (($m * $increment) * 100)); … … 2785 2785 $starttemp = $this->splittime("$start",False); 2786 2786 $subminute = 0; 2787 for($m=0;$m<$interval; $m++)2787 for($m=0;$m<$interval;++$m) 2788 2788 { 2789 2789 $minutes = $increment * $m; … … 2797 2797 $endtemp = $this->splittime("$end",False); 2798 2798 $addminute = 0; 2799 for($m=0;$m<$interval; $m++)2799 for($m=0;$m<$interval;++$m) 2800 2800 { 2801 2801 $minutes = ($increment * $m); … … 2809 2809 $endtemp = $this->splittime("$end",False); 2810 2810 2811 for($h=$starttemp['hour'];$h<=$endtemp['hour']; $h++)2811 for($h=$starttemp['hour'];$h<=$endtemp['hour'];++$h) 2812 2812 { 2813 2813 $startminute = 0; … … 2825 2825 $time_display = $GLOBALS['phpgw']->common->show_date($eventstart['raw'],$this->users_timeformat).'-'.$GLOBALS['phpgw']->common->show_date($eventend['raw'],$this->users_timeformat); 2826 2826 $time_description = '('.$time_display.') '.$this->get_short_field($event,$private,'title').$this->display_status($event['participants'][$part]); 2827 for($m=$startminute;$m<$endminute; $m++)2827 for($m=$startminute;$m<$endminute;++$m) 2828 2828 { 2829 2829 $index = ($hour + (($m * $increment) * 100)); … … 2866 2866 2867 2867 //verifica se todos os participantes rejeitaram o evento 2868 for($i = 0; $i < count($sts); $i++ ){2868 for($i = 0; $i < count($sts); ++$i ){ 2869 2869 if( $sts[i] === "R") 2870 2870 unset( $sts[i] ); … … 3065 3065 $last_space = false; 3066 3066 3067 for($i=0, $count=0; $i < $str_width; $i++, $count++)3067 for($i=0, $count=0; $i < $str_width; ++$i, ++$count) 3068 3068 { 3069 3069 // If we're at a break … … 4199 4199 { 4200 4200 $already_moved = Array(); 4201 for($v=$firstday;$v<=$lastday; $v++)4201 for($v=$firstday;$v<=$lastday;++$v) 4202 4202 { 4203 4203 if (!$this->cached_events[$v]) … … 4436 4436 { 4437 4437 $cal_grps = ''; 4438 for($i=0;$i<count($event['groups']); $i++)4438 for($i=0;$i<count($event['groups']);++$i) 4439 4439 { 4440 4440 if($GLOBALS['phpgw']->accounts->exists($event['groups'][$i])) -
trunk/calendar/inc/class.boholiday.inc.php
r5132 r7655 145 145 $c_holidays = count($_POST['name']); 146 146 $fp = fopen($file,'w'); 147 for($i=0;$i<$c_holidays; $i++)147 for($i=0;$i<$c_holidays;++$i) 148 148 { 149 149 fwrite($fp,$this->locales[0]."\t".$_POST['name'][$i]."\t".$_POST['day'][$i]."\t".$_POST['month'][$i]."\t".$_POST['occurence'][$i]."\t".$_POST['dow'][$i]."\t".$_POST['observance'][$i]."\n"); … … 262 262 } 263 263 $c_lines = count($lines); 264 for($i=0;$i<$c_lines; $i++)264 for($i=0;$i<$c_lines;++$i) 265 265 { 266 266 // echo 'Line #'.$i.' : '.$lines[$i]."<br>\n"; … … 346 346 { 347 347 $c_holidays = count($holidays); 348 for($outer_loop=0;$outer_loop<($c_holidays - 1); $outer_loop++)349 { 350 for($inner_loop=$outer_loop;$inner_loop<$c_holidays; $inner_loop++)348 for($outer_loop=0;$outer_loop<($c_holidays - 1);++$outer_loop) 349 { 350 for($inner_loop=$outer_loop;$inner_loop<$c_holidays;++$inner_loop) 351 351 { 352 352 if($holidays[$outer_loop]['date'] > $holidays[$inner_loop]['date']) … … 364 364 { 365 365 $new_holidays = Array(); 366 for($i=0;$i<count($holidays); $i++)366 for($i=0;$i<count($holidays);++$i) 367 367 { 368 368 // echo "Setting Holidays Date : ".date('Ymd',$holidays[$i]['date'])."<br>\n"; … … 386 386 387 387 $temp_locale = $GLOBALS['phpgw_info']['user']['preferences']['common']['country']; 388 for($i=0;$i<count($holidays); $i++)388 for($i=0;$i<count($holidays);++$i) 389 389 { 390 390 $c = $i; -
trunk/calendar/inc/class.boicalendar.inc.php
r6057 r7655 1434 1434 //$this->debug('parse_parameters array return_value: '._debug_array($return_value,False)); 1435 1435 1436 for ($i = 0; $i < count($return_value); $i++) {1436 for ($i = 0; $i < count($return_value); ++$i) { 1437 1437 $name = strtolower($return_value[$i]['param']); 1438 1438 $value = $this->strip_quotes($return_value[$i]['value']); … … 1591 1591 if (!empty ($event['x_type'])) { 1592 1592 $c_x_type = count($event['x_type']); 1593 for ($j = 0; $j < $c_x_type; $j++) {1593 for ($j = 0; $j < $c_x_type; ++$j) { 1594 1594 $str .= ';' . $this->build_xtype($event['x_type'][$j], '='); 1595 1595 } … … 1637 1637 if (!empty ($event['x_type'])) { 1638 1638 $c_x_type = count($event['x_type']); 1639 for ($j = 0; $j < $c_x_type; $j++) {1639 for ($j = 0; $j < $c_x_type; ++$j) { 1640 1640 $str .= ';' . $this->build_xtype($event['x_type'][$j], '='); 1641 1641 } … … 1661 1661 if (!empty ($event[$value])) { 1662 1662 if ($multiples && $value != 'exdate') { 1663 for ($i = 0; $i < count($event[$value]); $i++) {1663 for ($i = 0; $i < count($event[$value]); ++$i) { 1664 1664 $str .= $this->fold(strtoupper(str_replace('_', '-', $value)) . $this->build_parameters($event[$value][$i], $value)); 1665 1665 } … … 1674 1674 case 'uri' : 1675 1675 if (!empty ($event[$value])) { 1676 for ($i = 0; $i < count($event[$value]); $i++) {1676 for ($i = 0; $i < count($event[$value]); ++$i) { 1677 1677 $str .= $this->fold(strtoupper(str_replace('_', '-', $value)) . $this->build_parameters($event[$value][$i], $to_text)); 1678 1678 } … … 1682 1682 if (!empty ($event[$value])) { 1683 1683 if ($multiples) { 1684 for ($i = 0; $i < count($event[$value]); $i++) {1684 for ($i = 0; $i < count($event[$value]); ++$i) { 1685 1685 $str .= $this->fold(strtoupper(str_replace('_', '-', $value)) . $this->build_parameters($event[$value][$i], $value)); 1686 1686 } … … 1712 1712 if (@ $this->parameter[$key]['type'] != 'function') { 1713 1713 if ($multiples && count($event[$value]) > 1) { 1714 for ($i = 0; $i < count($event[$value]); $i++) {1714 for ($i = 0; $i < count($event[$value]); ++$i) { 1715 1715 $str .= $this->fold(strtoupper(str_replace('_', '-', $value)) . $this->build_parameters($event[$value][$i], $value)); 1716 1716 } … … 1721 1721 $function = $this->parameter[$value]['function']; 1722 1722 if ($multiples) { 1723 for ($i = 0; $i < count($event[$value]); $i++) {1723 for ($i = 0; $i < count($event[$value]); ++$i) { 1724 1724 $str .= $this->fold(strtoupper(str_replace('_', '-', $value)) . ':' . $this-> $function ($event[$value][$i])); 1725 1725 } … … 1732 1732 case 'cal-address' : 1733 1733 if (is_array($event[$value][0])) { 1734 for ($j = 0; $j < count($event[$value]); $j++) {1734 for ($j = 0; $j < count($event[$value]); ++$j) { 1735 1735 $temp_output = $this->build_parameters($event[$value][$j], $value); 1736 1736 if ($temp_output) { … … 1748 1748 } 1749 1749 if (!empty ($event['x_type'])) { 1750 for ($i = 0; $i < count($event['x_type']); $i++) {1750 for ($i = 0; $i < count($event['x_type']); ++$i) { 1751 1751 $str .= $this->build_xtype($event['x_type'][$i], ':'); 1752 1752 } … … 1755 1755 if ($ical_item == 'vtimezone') { 1756 1756 if ($event['tzdata']) { 1757 for ($k = 0; $k < count($event['tzdata']); $k++) {1757 for ($k = 0; $k < count($event['tzdata']); ++$k) { 1758 1758 $str .= 'BEGIN:' . strtoupper($event['tzdata'][$k]['type']) . "\r\n"; 1759 1759 $str .= $this->build_card_internals(strtolower($event['tzdata'][$k]['type']), $event['tzdata'][$k]); … … 1763 1763 } 1764 1764 elseif ($event['alarm']) { 1765 for ($k = 0; $k < count($event['alarm']); $k++) {1765 for ($k = 0; $k < count($event['alarm']); ++$k) { 1766 1766 $str .= 'BEGIN:VALARM' . "\r\n"; 1767 1767 $str .= $this->build_card_internals('valarm', $event['alarm'][$k]); … … 2632 2632 $attendee_count = count($ical['attendee']); 2633 2633 2634 for ($j = 0; $j < $attendee_count; $j++) {2634 for ($j = 0; $j < $attendee_count; ++$j) { 2635 2635 if ($this->is_owner($ical['attendee'][$j])) { 2636 2636 $so_event->add_attribute('participants', $this->switch_to_phpgw_status($ical['attendee'][$j]['partstat']), (int) $GLOBALS['phpgw_info']['user']['account_id']); … … 2788 2788 2789 2789 $c_events = count($ical['event']); 2790 for ($i = 0; $i < $c_events; $i++) {2790 for ($i = 0; $i < $c_events; ++$i) { 2791 2791 $ex_participants = new exParticipants(); 2792 2792 … … 2832 2832 $c_attendees = count($ical['event'][$i]['attendee']); 2833 2833 $all_attendees = ''; 2834 for ($a = 0; $a < $c_attendees; $a++) {2834 for ($a = 0; $a < $c_attendees; ++$a) { 2835 2835 $cname = '"' . $ical['event'][$i]['attendee'][$a]['cn'] . '"'; 2836 2836 $email = $ical['event'][$i]['attendee'][$a]['mailto']['user']; -
trunk/calendar/inc/class.calendar_holiday.inc.php
r2 r7655 137 137 } 138 138 $c_lines = count($lines); 139 for($i=0;$i<$c_lines; $i++)139 for($i=0;$i<$c_lines;++$i) 140 140 { 141 141 // echo 'Line #'.$i.' : '.$lines[$i]."<br>\n"; … … 204 204 $i = $c; 205 205 } 206 $i++;206 ++$i; 207 207 } 208 208 $this->holidays = $this->sort_by_date($this->holidays); … … 217 217 while($this->db->next_record()) 218 218 { 219 $i++;219 ++$i; 220 220 $holidays[$i]['locale'] = $this->db->f('locale'); 221 221 $holidays[$i]['name'] = $GLOBALS['phpgw']->strip_html($this->db->f('name')); … … 254 254 { 255 255 $c_holidays = count($holidays); 256 for($outer_loop=0;$outer_loop<($c_holidays - 1); $outer_loop++)256 for($outer_loop=0;$outer_loop<($c_holidays - 1);++$outer_loop) 257 257 { 258 258 $outer_date = $holidays[$outer_loop]['date']; 259 for($inner_loop=$outer_loop;$inner_loop<$c_holidays; $inner_loop++)259 for($inner_loop=$outer_loop;$inner_loop<$c_holidays;++$inner_loop) 260 260 { 261 261 $inner_date = $holidays[$inner_loop]['date']; … … 279 279 280 280 $c_holidays = count($this->holidays); 281 for($i=0;$i<$c_holidays; $i++)281 for($i=0;$i<$c_holidays;++$i) 282 282 { 283 283 if($this->holidays[$i]['date'] > $date) -
trunk/calendar/inc/class.ex_participants.inc.php
r5143 r7655 106 106 $exp .= '('.$this->lang['NO ANSWER'].')'; 107 107 108 $count++;108 ++$count; 109 109 $return .= $exp; 110 110 } -
trunk/calendar/inc/class.holidaycalc_US.inc.php
r2 r7655 53 53 if($dow == 0) 54 54 { 55 $i++;55 ++$i; 56 56 $holidays[$i]['locale'] = $holiday['locale']; 57 57 $holidays[$i]['name'] = $holiday['name'].' (Observed)'; … … 65 65 elseif($dow == 6) 66 66 { 67 $i++;67 ++$i; 68 68 $holidays[$i]['locale'] = $holiday['locale']; 69 69 $holidays[$i]['name'] = $holiday['name'].' (Observed)'; -
trunk/calendar/inc/class.socalendar.inc.php
r6057 r7655 179 179 $events = $this->list_events($startYear,$startMonth,$startDay,$endYear,$endMonth,$endDay); 180 180 $events_cached = Array(); 181 for($i=0;$i<count($events); $i++)181 for($i=0;$i<count($events);++$i) 182 182 { 183 183 $events_cached[] = $this->read_entry($events[$i]); -
trunk/calendar/inc/class.socalendar_sql.inc.php
r7552 r7655 185 185 { 186 186 $id = 'cal:'.(int)$cal_id.':'.$n; 187 $n++;187 ++$n; 188 188 189 189 $alarm['cal_id'] = $cal_id; // we need the back-reference … … 376 376 377 377 $id = 'cal:'.(int)$cal_id.':'.$n; 378 $n++;378 ++$n; 379 379 380 380 $alarm['cal_id'] = $cal_id; // we need the back-reference … … 402 402 } 403 403 } 404 $y++;404 ++$y; 405 405 } 406 406 } … … 426 426 427 427 $id = 'cal:'.(int)$cal_id.':'.$n; 428 $n++;428 ++$n; 429 429 430 430 $alarm['cal_id'] = $cal_id; // we need the back-reference … … 467 467 468 468 $id = 'cal:'.(int)$cal_id.':'.$n; 469 $n++;469 ++$n; 470 470 471 471 $alarm['cal_id'] = $cal_id; // we need the back-reference … … 597 597 { 598 598 $groups = explode(',',$this->stream->f('groups')); 599 for($j=1;$j<count($groups) - 1; $j++)599 for($j=1;$j<count($groups) - 1;++$j) 600 600 { 601 601 $this->add_attribute('groups',$groups[$j],$j-1); -
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']; -
trunk/calendar/inc/class.uiholiday.inc.php
r1684 r7655 186 186 $end = min($total,$this->bo->start+$maxmatchs); 187 187 $p->set_var('rows',lang('showing %1 - %2 of %3',1+$this->bo->start,$end,$total)); 188 for($i=$this->bo->start; $i < $end; $i++)188 for($i=$this->bo->start; $i < $end; ++$i) 189 189 { 190 190 $tr_color = $GLOBALS['phpgw']->nextmatchs->alternate_row_color($tr_color); … … 313 313 ); 314 314 $out = ''; 315 for($i=0;$i<7; $i++)315 for($i=0;$i<7;++$i) 316 316 { 317 317 $out .= '<option value="'.$i.'"'.($holiday['dow']==$i?' selected':'').'>'.$dow[$i].'</option>'."\n"; … … 491 491 $c_holidays = count($holidays); 492 492 echo '<input type="hidden" name="locale" value="'.$this->bo->locales[0].'">'."\n"; 493 for($i=0;$i<$c_holidays; $i++)493 for($i=0;$i<$c_holidays;++$i) 494 494 { 495 495 echo '<input type="hidden" name="name[]" value="'.htmlspecialchars($holidays[$i]['name']).'">'."\n" -
trunk/calendar/inc/class.uipublicview.inc.php
r5132 r7655 217 217 if($this->bo->check_perms(PHPGW_ACL_PRIVATE) == True) 218 218 { 219 $cols++;219 ++$cols; 220 220 } 221 221 … … 268 268 269 269 $str = ''; 270 for ($i = 0; $i < 25; $i++)271 { 272 $m++;270 for ($i = 0; $i < 25; ++$i) 271 { 272 ++$m; 273 273 if ($m > 12) 274 274 { 275 275 $m = 1; 276 $y++;276 ++$y; 277 277 } 278 278 $d = mktime(0,0,0,$m,1,$y); … … 301 301 302 302 $str = ''; 303 for ($i = -7; $i <= 7; $i++)303 for ($i = -7; $i <= 7; ++$i) 304 304 { 305 305 $begin = $sun + (7*24*60*60 * $i) + 12*60*60; // we use midday, that changes in daylight-saveing does not effect us … … 326 326 327 327 $str = ''; 328 for ($i = ($this->bo->year - 3); $i < ($this->bo->year + 3); $i++)328 for ($i = ($this->bo->year - 3); $i < ($this->bo->year + 3); ++$i) 329 329 { 330 330 $str .= '<option value="'.$i.'"'.($i == $this->bo->year?' selected':'').'>'.$i.'</option>'."\n"; … … 356 356 $date_str .= ' <input type="hidden" name="year" value="'.$this->bo->year.'">'."\n"; 357 357 358 for($i=1; $i<=6; $i++)358 for($i=1; $i<=6; ++$i) 359 359 { 360 360 $str .= '<option value="'.$i.'"'.($i == $this->bo->num_months?' selected':'').'>'.$i.'</option>'."\n"; … … 521 521 522 522 $description = $this->bo->get_short_field($event,$is_private,'description'); 523 for($i=0;$i<count($picture); $i++)523 for($i=0;$i<count($picture);++$i) 524 524 { 525 525 $var = Array( … … 617 617 } 618 618 619 for($i=0;$i<7; $i++)619 for($i=0;$i<7;++$i) 620 620 { 621 621 $p->set_var('col_title',lang($GLOBALS['phpgw']->datetime->days[$i])); … … 870 870 function set_week_array($startdate,$cellcolor,$weekly) 871 871 { 872 for ($j=0,$datetime=$startdate;$j<7; $j++,$datetime += 86400)872 for ($j=0,$datetime=$startdate;$j<7;++$j,$datetime += 86400) 873 873 { 874 874 $date = date('Ymd',$datetime + (60 * 60 * 2)); // +2h to be save when switching to and from dst, $datetime is alreay + TZ-Offset … … 946 946 if($holidays) 947 947 { 948 for($k=0;$k<count($holidays); $k++)948 for($k=0;$k<count($holidays);++$k) 949 949 { 950 950 $holiday_name[] = $holidays[$k]['name'];
Note: See TracChangeset
for help on using the changeset viewer.