Changeset 7655 for trunk/calendar/inc/class.uipublicview.inc.php
- Timestamp:
- 12/14/12 14:30:35 (11 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
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.