table{background:#99ffcc;}
th{font-family:隶书;color:#0099ff;}
#tr1{background:#00ccff;}
.td1{color:blue;}
a{color:#ff9900;}
// 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 = date("t",mktime(0,0,0,$mon,1,$year));
$w = date("w",mktime(0,0,0,$mon,1,$year));
echo "
| 日 | ";一 | ";二 | ";三 | ";四 | ";五 | ";六 | ";
|---|---|---|---|---|---|---|
| {$d} | ";"; | |||||
| "; echo "<<"; echo "{$year}年"; echo ">>"; echo " "; echo "<"; echo "{$mon}月"; echo ">"; echo " | ";||||||
Copyright 2014-2025 https://www.php.cn/ All Rights Reserved | php.cn | 湘ICP备2023035733号