$iWeeks) { $iNextMonth = $iMonth + 1; $iNextWeek = 1; if ($iNextMonth > 12) { $iNextMonth = 1; $iNextYear = $iYear + 1; } } if ($iBackWeek < 1) { $iBackMonth = $iMonth - 1; $iBackWeek = $iWeeks; if ($iBackMonth < 1) { $iBackMonth = 12; $iBackYear = $iYear - 1; } } $iDay = 1; $iEndDay = 7 - $iFirstDay; if ($iWeek>1) { $iDay = (1+(($iWeek-1)*7))-$iFirstDay; $iEndDay = $iDay + 6; if($iEndDay > $iMonthDays) $iEndDay = $iMonthDays; } ?>
Password