<?php
/**
* Created by PhpStorm.
* User: Administrator
* Date: 2019/9/24 0024
* Time: 15:34
*/
ini_set('date.timezone','Asia/Shanghai');
$year = intval(isset($_GET['year'])?$_GET['year']:date('Y'));
$mouth = intval(isset($_GET['mouth'])?$_GET['mouth']: date('m'));
//设置年份切换
$prev = $year-1;
$next = $year+1;
//设置月份切换
$prevm = $mouth-1;
$nextm = $mouth+1;
if ($prevm==0) {
$prevm = 12;
}
if ($nextm==13){
$nextm=1;
}
$time = mktime(0,0,0,$mouth,1,$year);
$days = date('t',$time);
$str = <<<HEAD
<style>
a{text-decoration: none};
</style>
HEAD;
echo $str;
echo '<center>php万年历</center>';
echo "<table rules='all' width='200px' height='200px' border='1px'>";
echo '<tr>&
PHP万年历
最新推荐文章于 2023-07-30 13:28:05 发布
![](https://img-home.csdnimg.cn/images/20240711042549.png)