快捷搜索:

日历显示程序

");

print( "$monthName $selectedYear");

print( "

\n");

for($i=0; $i\n");

}

print( "\n");

print( "

\n");

//空出当月第一天前面的空位

while($dayRow ");

$dayRow += 1;

}

$day = 0;

while($day \n

\n");

}

$adjusted_day = $day+1;

//当天的日期用血色显示

if($adjusted_day==$selectedDay){

echo "

$adjusted_day";

}

else{echo "

$adjusted_day";}

$day += 1;

$dayRow += 1;

}

print( "\n\n");

?>

您可能还会对下面的文章感兴趣: