<樣式>
表格{背景:#99ffcc;}
th{font-family:隸書;顏色:#0099ff;}
# #tr1{背景:#00ccff;}
.td1{顏色:藍色;}
a{顏色:#ff9900;}
樣式>
############################################################## # <?php######// error_reporting(E_ALL & ~E_NOTICE);######$mon = date("m");######$year = date("Y " );######$year = isset($_GET['y'])?$_GET['y']:$year;######echo $_GET['y'];# # ####echo $year;######$mon = isset($_GET['m'])?$_GET['m']:$mon;######$day = 日期( "t",mktime(0,0,0,$mon,1,$year));######$w = 日期("w",mktime(0,0,0,$mon,1) ,$year));###########################echo "
echo "
echo "<第 class='td1'>日";
# echo "<第一個類別='td1'>一";
echo "<第一個類別='td1'>二";
# echo "<第class='td1'>三";
echo "<第class='td1'>四" ";
echo "<第類='td1'>五";
echo "<第類='td1'>六";
echo "
$d = 1;
while ($d<=$day){
echo "
for ($ i=1;$i<=7;$i ){
if(($d<=$day) && ($w<$i|| $d!=1)){
echo "
## }else{
echo "
}
}
echo "</tr>";
}
#$prem = $nextm = $mon;$prey = $nexty = $year;if ($mon<=1){$prem = 12; $prey--;}else { $prem--;}if ($mon>=12){ $nextm = 1;# $nexty ;}else { $nextm ;}$prey = $year - 1;$nexty = $year 1;echo "
echo "
echo "; >></a> ;";
echo " ";
echo "< </a>";