{@ $endWeek=ceil($endday/6)+2; }
  이전달 {$y}년 {$m}월 다음달  
{@ $day++; } {@ $todate = date("Y-m-d", time()); $isday=$y."-".$m."-".$day; $ddy = ( strtotime($isday) - strtotime($todate) ); } {@ $day_s= ""; } {@ $day_s= ""; } {@ $day_s= ""; $day_e=""; } {@ $bgcolor="bgcolor='#f5fbfd'"; $day_s= $day_s. ""; $day_e = "".$day_e; $tdclass="today"; $ddy=1; } {@ $bgcolor=""; $tdclass=""; } {@ $sungsu1_str=""; $sungsu2_str=""; $sungsu3_str=""; } {@ $ddys=-1; $ddye=-1; $as_day=$y."-".$m."-".str_pad($day,"2","0",STR_PAD_LEFT); $s_date = date("Y")."-".$yeyak_config->sungsu1_sdate; $e_date = date("Y")."-".$yeyak_config->sungsu1_edate; $ddys = ( strtotime($as_day) - strtotime($s_date)); $ddye = ( strtotime($as_day) - strtotime($e_date)); } {@ $sungsu1_str=$yeyak_config->sungsu1_name; } {@ $ddys=-1; $ddye=-1; $as_day=$y."-".$m."-".str_pad($day,"2","0",STR_PAD_LEFT); $s_date = date("Y")."-".$yeyak_config->sungsu2_sdate; $e_date = date("Y")."-".$yeyak_config->sungsu2_edate; $ddys = ( strtotime($as_day) - strtotime($s_date)); $ddye = ( strtotime($as_day) - strtotime($e_date)); } {@ $sungsu2_str=$yeyak_config->sungsu2_name; } {@ $ddys=-1; $ddye=-1; $as_day=$y."-".$m."-".str_pad($day,"2","0",STR_PAD_LEFT); $s_date = date("Y")."-".$yeyak_config->sungsu3_sdate; $e_date = date("Y")."-".$yeyak_config->sungsu3_edate; $ddys = ( strtotime($as_day) - strtotime($s_date)); $ddye = ( strtotime($as_day) - strtotime($e_date)); } {@ $sungsu3_str=$yeyak_config->sungsu3_name; } {@ $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) ); }
{$day}