PHP简单日历实例

?php/** PHP简单日历实例* 作者: 多菜鸟* 邮箱: kingerq AT msn DOT
com* 来源: * 创建时间: 2008-01-03**/$date =
preg_match(/d{4}-d{2}-d{2}/, $_GET[YMD]) ? $_GET[YMD] : date(
Y-m-d );$thisYear = date( Y, strtotime( $date) );$thisMonth = date( m,
strtotime( $date) );$firstDay = date( w, strtotime(
$thisYear.-.$thisMonth.-01 ) );$monthNum = date( t, strtotime( $date)
);?htmlheadtitleCalendar/titlestyle type=text/css.datehead td{
background-color: #669966; border: 1px solid #4F774F; color:#FFFFFF;
height:30px; font-size:18px; font-weight:bold; text-align:center;
font-family: Geneva, Arial, Helvetica, sans-serif;}.daynormalbg
td{background-color:#EEEEEE;border:solid #dddddd
1px;height:100px;vertical-align: top;width:14%;}.daynormalfont
div{color:#000000;font-weight:bold;font-size:18px;font-family: Geneva,
Arial, Helvetica, sans-serif;}.sunday{color:#CC0000 !important;
}.saturday{color: #006600
!important;}.todaybg{background-color:#0099FF
!important;text-decoration: underline;}a {font-family:Geneva, Arial,
Helvetica, sans-serif; color:#澳门新葡亰网站注册,333333;
font-size:12px}a:hover{text-decoration:none;}/style/head

bodytable border=0 align=center cellpadding=5 cellspacing=0 tr td pa
href=?YMD=?=date( Y-m, strtotime( $date. -1 year) ).-01?lt;lt;Last
Year/a a href=?YMD=?=date( Y-m,