「:Note」の版間の差分
7行目: | 7行目: | ||
print(">年"); | print(">年"); | ||
print("<input type=text name=month size=2 MAXLENGTH=2 value="); | print("<input type=text name=month size=2 MAXLENGTH=2 value="); | ||
− | print date("n") | + | print date("n"); |
− | print("> | + | print(">月の予定へチェックして移動"); |
+ | print("<INPUT type=checkbox name=check>"); | ||
print("<INPUT type=submit value=移動>"); | print("<INPUT type=submit value=移動>"); | ||
print("</form>"); | print("</form>"); | ||
− | if(isset($ | + | if(isset($check)){ |
$dteDate=mktime(0,0,0,$_GET['month'],1,$_GET['year']); | $dteDate=mktime(0,0,0,$_GET['month'],1,$_GET['year']); | ||
$num=$_GET['num']; | $num=$_GET['num']; | ||
+ | print $_GET['month']; | ||
}else{ | }else{ | ||
$dteDate=mktime(0,0,0,$_GET['month'],1,$_GET['year']); | $dteDate=mktime(0,0,0,$_GET['month'],1,$_GET['year']); |
2007年8月30日 (木) 17:43時点における版
<php> include_once("./includes/rokuyou.inc");
print("<form method=POST target=_self>"); print("<input type=text name=year size=4 MAXLENGTH=4 value="); print date("Y"); print(">年"); print("<input type=text name=month size=2 MAXLENGTH=2 value="); print date("n"); print(">月の予定へチェックして移動"); print("<INPUT type=checkbox name=check>"); print("<INPUT type=submit value=移動>"); print("</form>");
if(isset($check)){
$dteDate=mktime(0,0,0,$_GET['month'],1,$_GET['year']);
$num=$_GET['num'];
print $_GET['month'];
}else{ $dteDate=mktime(0,0,0,$_GET['month'],1,$_GET['year']); $num=0; } $intFirst=(int)date("w",$dteDate); $intLast=(int)date("t",$dteDate);
print("日 | 月 | 火 | 水 | 木 | 金 | 土 | "); print("
---|---|---|---|---|---|---|
"); }else{ print(" | ");
} }elseif($i % 7==1){ if($dteTmp == date("Y-m-d")){ print(" | "); }else{ print(" | ");
} }else{ if($dteTmp == date("Y-m-d")){ print(" | "); }else{ print(" | ");
} } print($intDay);
if (get_rokuyou(date("Y",$dteDate),date("m",$dteDate),$intDay) == 3) {
print ("友引");
}
print(" $rs=mysql_query("SELECT pname FROM pok_yotei_tab where pdate = '$dteTmp' order by btime",$db);
if(mysql_num_rows($rs)>0){
while($aryCol=mysql_fetch_array($rs,MYSQL_ASSOC)){
$yotei=($aryCol[pname]);
print("・$yotei</a> } mysql_free_result($rs); } print(" | ");
if($i % 7==0){print("|
print("<a href=./family:month?num="); print($num-1); print(">前の月へ</a>"); print("<a href=./family:month?num="); print($num+1); print(">次の月へ</a>"); print $intFirst . "-" . $intLast; </php>