{@ $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('일','월','화','수','목','금','토'); }

{$prevMonth*1}월 | {$y}년 {$m*1}월 | {$nextYear}년 {$nextMonth*1}월
일 | 월 | 화 | 수 | 목 | 금 | 토
{@ $endWeek=ceil($endday/6)+2; }
{@ $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($cateInfo))+30; $seekNoWork=$m."-".str_pad($day,"2","0",STR_PAD_LEFT); } nowork_day))--> onclick="alert('영업일이 아닙니다.')"> {@ $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) ); }

| Powered by XE 예약 모듈