Rumah > Soal Jawab > teks badan
<gaya>
jadual{latar belakang:#99ffcc;}
ke{font-family:隶书;warna:#0099ff;}
#tr1{latar belakang:#00ccff;}
:.blue
;} a{color:#ff9900;}</style><?php// error_reporting(E_ALL & ~E_NOTICE);$mon = date("m");$tahun = tarikh("Y");$tahun = isset($_GET['y'])?$_GET['y']:$year;echo $_GET['y'];
gema $tahun;$mon = isset($_GET['m'])?$_GET['m']:$mon;$day = date("t",mktime(0,0,0 ,$mon,1,$year));$w = tarikh("w",mktime(0,0,0,$mon,1,$year));
🎜echo "<h3><div>{$year}年{$mon}月</div></h3>";
echo "<tr>";
echo "<th class='td1'>日</th>";
echo "<th class=' td1'>一</th>";
echo "<th class='td1'>二</th>";
echo "<th class='td1'>三< ;/th>";
echo "<th class='td1'>四</th>";
echo "<th class='td1'>五</th>";
echo "<th class='td1'>六</th>";
echo "</tr>";
$d = 1;
sementara ($d<=$day ){
gema "<tr>";
untuk ($i=1;$i<=7;$i++){
jika(($d<=$hari) && ($w<$i ||. $d!=1)){
echo "<th><a href='#'>{$d}</a></th>";
$d++;
}lain{
echo "<th> </th>";
}
}
echo "</tr>";
}
$prem = $nextm = $
$sebelumnya = $$🜎 tahun;
jika ($mon<=1){
$prem = 12;
$mangsa--;
}lain {
$prem--;
}
;jika ($mon> 12){
$nextm = 1;
$nexty++;
}lain {
$nextm++;
}
$mangsa = $tahun - 1;
= $tahun - 1;1
; echo "<tr>";echo "<td colspan=7 align='center'>";echo "<a href='index.php?y={$prey}'> <<</a>";gema "{$year}年";echo "<a href='index.php?y={$nexty}'>>>< ;/a>";echo " ";echo "<a href='index.php?m={$prem}'><</a>";echo "{$ mon}月";echo "<a href='index.php?m={$nextm}'>></a>";echo "</td>"; echo "</tr>";