:Note
<php> include_once("./includes/rokuyou.inc");
print("<form>");
if(isset($_GET['num'])){ $dteDate=mktime(0,0,0,date("m")+$_GET['num'],1,date("Y")); $num=$_GET['num']; }else{ $dteDate=mktime(0,0,0,date("3"),1,date("2008")); $num=0; } $intFirst=(int)date("w",$dteDate); $intLast=(int)date("t",$dteDate);
print("print(date("Y 年 m 月",$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,cate,basyo,memo 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]); $zoku=($aryCol[cate]); $basyo=('('.$aryCol[basyo].')'); //$sesyu=(' 施主:'.$aryCol[memo]); print("・$zoku$yotei$basyo</a> } mysql_free_result($rs); } print(" | ");
if($i % 7==0){print("|
if(isset($_GET['num'])){ $dteDate=mktime(0,0,0,date("m")+$_GET['num'],1,date("Y")); $num=$_GET['num']; }else{ $dteDate=mktime(0,0,0,date("4"),1,date("2008")); $num=0; } $intFirst=(int)date("w",$dteDate); $intLast=(int)date("t",$dteDate);
print("print(date("Y 年 m 月",$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,cate,basyo,memo 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]); $zoku=($aryCol[cate]); $basyo=('('.$aryCol[basyo].')'); //$sesyu=(' 施主:'.$aryCol[memo]); print("・$zoku$yotei$basyo</a> } mysql_free_result($rs); } print(" | ");
if($i % 7==0){print("|
print("</form>");
</php>