pYear; $pMonth = $__Context->pMonth; ?> {@ $today_bgcolor=yellow} {@ $day_bgcolor=white} {@ $day_bgcolor=$widget_info->bg_color} 12) { $pYear++; $pMonth = 1; } if($pMonth < 1) { $pYear--; $pMonth = 12; } $__Context->pYear = $pYear; $__Context->pMonth = $pMonth; ?> {@ $btnlink_path = getUrl('','mid',$mid,'dummy',1)} {@ $daylink_path = getUrl('','mid',$widget_info->mid,'dummy',2)} {@ $XE_path = getUrl('')} btnlink_path; $daylinkpath = $__Context->daylink_path; $module_info = $__Context->widget_info->module_info; $xepath = $__Context->XE_path; $skinpath = $tpl_path; $widget = new splanner_widget(); $Calmain = $widget->fn_get_month_sun($pYear,$pMonth); $days = $widget->fn_get_reg_days($pYear,$pMonth,$module_info->plan_holi_text); if($module_info->plan_holi == 'Y') { $aMonthHoliday = $widget->fn_holidays($pYear, $pMonth); // 휴일 if($days != null) { foreach($days as $k => $v) $aMonthHoliday[$k] .= $v; unset($days); } } else { if($days != null) { $aMonthHoliday = $days; unset($days); } } ?> {@ $plan_title = $document->getTitle($widget_info->subject_cut_size)} {@ $plan_start = $document->get('plan_sdate')} {@ $plan_end = $document->get('plan_edate')} {@ $plan_period = $document->get('plan_period')} {@ $plan_value = $document->get('plan_value')} plan_title; $plan_start = $__Context->plan_start; $plan_end = $__Context->plan_end; $plan_period = $__Context->plan_period; $plan_value = $__Context->plan_value; ?> {@ $nickname = $document->getNickName()} nickname; ?> 면서 당월 이후 종료 if ($plnendYY > $pYear or $plnendYY == $pYear and $plnendMM > $pMonth) { $plnendYY = $pYear; $plnendMM = $pMonth; $plnendDD = 31; } } elseif ($plnstartYY < $pYear or $plnstartYY == $pYear and $plnstartMM < $pMonth) { // 당월 이전 시작 이면서 당월 종료 if ($plnendYY == $pYear and $plnendMM == $pMonth) { $plnstartYY = $pYear; $plnstartMM = $pMonth; $plnstartDD = 1; } if ($plnendYY > $pYear or $plnendYY == $pYear and $plnendMM > $pMonth) { // 당월 이전시작 이면서 당월 이후 종료 $plnstartYY = $pYear; $plnstartMM = $pMonth; $plnstartDD = 1; $plnendYY = $pYear; $plnendMM = $pMonth; $plnendDD = 31; } } if( $plnstartYY == $pYear and $plnstartMM == $pMonth ) { if($plan_period) { $arr_repeat = $widget->fn_repeat_schedule($Calmain, $plan_period, $plan_value, $aMonthHoliday); } for ($j = $plnstartDD; $j <= $plnendDD; $j++ ) { if ( $plan_period==0 || $arr_repeat[$j] == "*") { if($arr_plan[$j]) $arr_plan[$j] .= '
'; $arr_plan[$j] .= "[".$nickname."]".$plan_title; } } } } ?> pYear = $pYear; $tempmonth = substr("0".$pMonth, -2); //월 을 "7" 에서 "07"로 $__Context->tempMonth = $tempmonth; if(count($_POST) > 0) $curr = $_POST; else $curr = $_GET; if($pMonth == 1) { $curr['pYear'] = $pYear - 1; $curr['pMonth'] = 12; } else { $curr['pYear'] = $pYear; $curr['pMonth'] = $pMonth -1; } foreach($curr as $k => $v) { if($prevM) $prevM .= '&'; $prevM .= $k.'='.$v; } if($pMonth == 12) { $curr['pYear'] = $pYear + 1; $curr['pMonth'] = 1; } else { $curr['pYear'] = $pYear; $curr['pMonth'] = $pMonth +1; } foreach($curr as $k => $v) { if($nextM) $nextM .= '&'; $nextM .= $k.'='.$v; } $curr['pYear'] = $pYear+1; $curr['pMonth'] = $pMonth; foreach($curr as $k => $v) { if($nextY) $nextY .= '&'; $nextY .= $k.'='.$v; } $curr['pYear'] = $pYear -1; $curr['pMonth'] = $pMonth; foreach($curr as $k => $v) { if($prevY) $prevY .= '&'; $prevY .= $k.'='.$v; } $templink = "?mid=".$module_info->mid."&act=dispSboardWrite&plan_sdate="; /* debugPrint("info\n".print_r($__Context->widget_info->module_info,true)); debugPrint("prevM\n".print_r($prevM,true)); */ ?>
black">
"); for ($j=0; $j<7; $j++) { $tempday=$Calmain[$i][$j]; if ($pYear == $todayYY and $pMonth == $todayMM and $tempday == $todayDD ) { $today = 1; // 당일 $style = "style='border:2px solid;border-color:CadetBlue; padding:0px;'"; } else { $today = 0; // 평일 $style = "style='border:1px solid;border-color:#e0e0e0; padding:0px;'"; } ?> "); // 하루 } echo (""); // 일주 } ?>
{$pYear." . ".$pMonth}  
{cut_str($lang->unit_week['Sunday'],2,"")} {cut_str($lang->unit_week['Monday'],2,"")} {cut_str($lang->unit_week['Tuesday'],2,"")} {cut_str($lang->unit_week['Wednesday'],2,"")} {cut_str($lang->unit_week['Thursday'],2,"")} {cut_str($lang->unit_week['Friday'],2,"")} {cut_str($lang->unit_week['Saturday'],2,"")}
onMouseOut="this.style.backgroundColor=''" onMouseOver="this.style.backgroundColor='#DDFFFA'" style="word-break:break-all;padding:0px;"> today_bgcolor; // 당일 } else { $bgcolor_output = " "; // 평일 } // --요일별 일자색--- if($tempday < 10) $d_day = "  ".$tempday."  "; else $d_day = " ".$tempday." "; if ($j==0 or $tmpHoli != null) { $tmpfld = "".$d_day.""; // 일요일 및 휴일 } elseif ($j==6) { $tmpfld = "".$d_day.""; // 토요일 } else { $tmpfld = "".$d_day.""; // 평일 } ?>
"); } echo ("