{@ $y = $info->setyear; $m =$info->setmonth; $d="01"; $nextMonth= date("m",strtotime($y."-".$m."-".$d."+1 month" )); $nextYear= date("Y",strtotime($y."-".$m."-".$d."+1 month" )); $prevMonth= date("m",strtotime($y."-".$m."-".$d."-1 month" )); $prevYear= date("Y",strtotime($y."-".$m."-".$d."-1 month" )); $thisY=date("Y"); $thisM =date("m"); $thisD =date("d"); $firstday = mktime(0,0,0,$m,1,$y);//첫날 time $startday = date('w',$firstday); $endday = date('t',$firstday); $day_e = ""; $p1=(int)$prevYear.$prevMonth; $p2=(int)$thisY.$thisM; $todate = date("Y-m-d", time()); $daysToWeek=array('일','월','화','수','목','금','토'); }
{@ $endWeek=ceil($endday/6)+2; }
{$prevMonth*1}월 {$y}년 {$m*1}월 {$nextYear}년 {$nextMonth*1}월
{@ $day++; $isday=$y."-".$m."-".$day; $ddy = ( strtotime($isday) - strtotime($todate) ); $dayDivClass="date"; $dayAddClass=""; $toDayClass=""; } {@ $dayAddClass="sunday"; } {@ $dayAddClass="satday"; } {@ $ddy=1; $toDayClass="today"; } {@ $ul_height=(20*count($roomInfo))+30; } {@ $b_sdate=zdate($yeyak_config->bday_sdate, $format = 'Y-m-d'); $b_edate=zdate($yeyak_config->bday_edate, $format = 'Y-m-d'); $isday=$y."-".$m."-".$day; $b_stime = ( strtotime($isday) - strtotime($b_sdate) ); $b_etime = ( strtotime($isday) - strtotime($b_edate) ); }
 예약 가능    입금 대기    취소 대기    예약 완료