搜尋

首頁  >  問答  >  主體

我敲上了 不對啊 只調月份調到12月以後年份還是不變的

<樣式>

表格{背景:#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 "<表格邊框=0>" ;# #####echo "

{$year}年{$mon}月
;</h3>";

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 "{$d}";

$d ;

## }else{

echo "; </th>";

}

}

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 "{$year}年";


echo "
; >></a> ;";

echo " ";

echo "< </a>";

#echo "{$mon}月";######echo "<a href='index.php?m={$nextm}'>> ;</a>";### ###echo "</td>";######echo "</tr>";############ ###echo "";############

永~不~低~头永~不~低~头2358 天前1254

全部回覆(0)我來回復

無回覆
  • 取消回覆