ご予約

オレンジ色のリンクが受付中の日時です。
オレンジ色の時間をクリックしてご予約ください。


“;
//一週間の処理
for ($c=0; $c < 7; $c++) { $cdaystr = date("m/d",$cday); $cdayystr = date("Y/m/d",$cday); $bgcolor = "white"; if ($week[$c]==="土"){$bgcolor = "aliceblue";} if ($week[$c]==="日"){$bgcolor = "lavenderblush";} foreach($harray as $data) { if ($data === $cdayystr){$bgcolor = "lavenderblush";} } print " “;
if ($cdayystr===$nowday){$bgcolor = “#E9FFC8″;}
print “ “.$cdaystr.”

“;
print “ “.$week[$c] .”

“;

//日付と時間の照合
$wstr = “”;
foreach($sarray as $data) {
if ($data[“date”] === $cdayystr ) {
if ($wstr !== “”){
$wstr = $wstr . “
“;
}
//時間をカレンダーに表示する
if ($data[“flag”] === “u”){//受付中
$alink = ““;
$wstr = $wstr .$alink. $data[“time”]. ” 受付中
“;
}elseif ($data[“flag”] === “g”){//グループワーク
$alink = ““;
$wstr = $wstr .$alink. $data[“time”]. “
“;
}elseif($data[“flag”] === “n”){//非表示
}else{//その他は受付済みにする
$wstr = $wstr . ““.$data[“time”].”“;
}
}
}

print “ “.$wstr.”

“;
$cday = strtotime( “1 day”,$cday );
}
print “

“;
}
?>

上記以外のお申込みはこちら