php日历表代码怎么改?
PHP代码: -------------------------------------------------------------------------------- << {$title} >> {$sWeekday[0]} {$sWeekday[1]} {$sWeekday[2]} {$sWeekday[3]} {$sWeekday[4]} {$sWeekday[5]} {$sWeekday[6]} END; for($stamp=$start;$stamp<$end;$stamp+=86400) // loop through each day, which is 86400 seconds { $weekday=date('w', $stamp); if(date('m', $stamp)!=date('m', $time)) $style='exmonth'; else if(date('Y-m-d', $stamp)==date('Y-m-d')) $style='today'; else if(date('w', $stamp)==0 || date('w', $stamp)==6) $style='weekend'; else $style='weekday'; $str.= "\t\t".''.sprintf('%d',date('d', $stamp)).''."\n"; if(date('w', $stamp)==6) $str.="\t".''."\n"; } $str .= ''; return $str; } ?>
Copyright © 广州京杭网络科技有限公司 2005-2024 版权所有 粤ICP备16019765号
广州京杭网络科技有限公司 版权所有