member_srl; $__Context->member_srl = $member_srl; unset($logged_info); ?> {@ $link_path = getUrl('','mid',$mid,'dummy',1)} {@ $XE_path = getUrl('')} {@ $today_bgcolor='#ffff00'} {@ $day_bgcolor='#f0f8ff'} {@ $day_bgcolor='#f5f5dc'} link_path; $xepath = $__Context->XE_path; $skinpath = $tpl_path; // 스킨 설치 경로지정 //echo $linkpath; //echo $skinpath; ?> 12) { $pYear++; $pMonth = 1; } if($pMonth < 1) { $pYear--; $pMonth = 12; } $Calmain = fn_get_month_sun($pYear,$pMonth); // 달력일자 if($__Context->module_info->plan_lunar != 'N') $Lunar = fn_get_month_lunar($pYear,$pMonth); // 음력 달력일자 $mm = fn_get_reg_days($pYear,$pMonth,$__Context->module_info->plan_holi_text); if($__Context->module_info->plan_holi == 'Y') { $aMonthHoliday = fn_holidays($pYear, $pMonth); // 휴일 if($mm != null) { foreach($mm as $k => $v) { $aMonthHoliday[$k] .= $v; } unset($mm); } } else { if($mm != null) { $aMonthHoliday = $mm; unset($mm); } } $mm = fn_get_reg_days($pYear,$pMonth,$__Context->module_info->plan_memo_text); if($__Context->module_info->plan_memorial == 'Y') { $aMonthMemday = fn_get_Memday($pYear, $pMonth); // 기념일 if($mm != null) { foreach($mm as $k => $v) { $aMonthMemday[$k] .= $v; } unset($mm); } } else { if($mm != null) { $aMonthMemday = $mm; unset($mm); } } if($__Context->module_info->plan_jeolki == 'Y') $aJeolki = fn_get_jeolki($pYear,$pMonth); // 24절기 초,중,말복 한식 단오 ?> pYear = $pYear; $tempmonth = substr("0".$pMonth, -2); //월 을 "7" 에서 "07"로 $__Context->tempMonth = $tempmonth; ?> {@ $planner_document_list = $notice_list} {@ $planner_document_list = $planner_document_list + $document_list} {@ $planner_document_list = $document_list} {@ $category_color = $category_list[$document->get('category_srl')]->color} {@ $category_title = $category_list[$document->get('category_srl')]->title} {@ $category_color = null} {@ $category_title = null} category_title; $category_color = $__Context->category_color; ?> {@ $plan_reply = $document->getCommentCount()} {@ $plan_reply = null} plan_reply; ?> {@ $nickname = $document->getNickName()} nickname; ?> {@ $plan_title = $document->getTitle($module_info->subject_cut_size)} {@ $plan_detail = $document->getSummary($module_info->content_cut_size)} {@ $plan_start = $document->getPlanSdate()} {@ $plan_end = $document->getPlanEdate()} {@ $plan_bgcolor = $document->getPlanBgcolor()} {@ $plan_check = $document->getPlanCheck()} {@ $plan_period = $document->get('plan_period')} {@ $plan_value = $document->get('plan_value')} {@ $plan_time = $document->get('plan_time')} {@ $exImg = $document->printExtraImages(60*60*$module_info->duration_new)} {@ $plan_url = getUrl('document_srl',$document->document_srl, 'listStyle', $listStyle, 'cpage','')} plan_title; $plan_detail = $__Context->plan_detail; $plan_url = $__Context->plan_url; $plan_start = $__Context->plan_start; // 일정시작 $plan_end = $__Context->plan_end; // 일정종료 $plan_bgcolor = $__Context->plan_bgcolor; $plan_check = $__Context->plan_check; $plan_period = $__Context->plan_period; $plan_value = $__Context->plan_value; $plan_time = $__Context->plan_time; $exImg = $__Context->exImg; //debugPrint($plan_title."\n".$plan_detail."\n".$plan_url."\n".$plan_start."\n".$plan_end."\n".$plan_bgcolor."\n".$plan_check."\n".$plan_period."\n".$plan_value); ?> 면서 당월 이후 종료 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 ) { $plan_detail = str_replace("'", "`", $plan_detail); // '을 `로 대체 textbox보이기위해 $plan_detail = str_replace("\"", """, $plan_detail); // "를 "로 대체 textbox보이기위해 $plan_detail = str_replace(chr(012), "
", $plan_detail); // LF를 제거 textbox보이기위해 $plan_detail = str_replace(chr(015), "", $plan_detail); // CR을 제거 textbox보이기위해 -줄바꿈 // $plan_detail = strip_tags($plan_detail); // HTML tag 제거 - 줄바꿈 사용않음 $plan_detail = "[".$nickname."]
".$plan_detail; //debugPrint("plan: $plan_start $plan_end $plan_period $plnstartDD $plnendDD $plan_value"); if($plan_period) { $arr_repeat = fn_repeat_schedule($Calmain, $plan_period, $plan_value, $aMonthHoliday); } if($plan_time != null) $plan_time = "(".$plan_time.")"; for ($j = $plnstartDD; $j <= $plnendDD; $j++ ) { if ( $plan_period==0 || $arr_repeat[$j] == "*") { $outtext = null; /* if($category_title) $outtext .= "[".$category_title."] "; // 분류 */ $outtext .= ""; if($plan_check) $outtext .= ""; $outtext .= "".$plan_time.$plan_title.""; if($plan_reply) $outtext .= "[".$plan_reply."] "; // 댓글숫자 $arr_plan[$j] .= $outtext.$exImg."
"; } } } } ?>
  
  
\n"); for ($j=0; $j<7; $j++) { $tempday=$Calmain[$i][$j]; if($tempday == $todayDD and $pMonth == $todayMM and $pYear == $todayYY) $today_flag = 1; else $today_flag = 0; ?> \n"); } echo ("\n"); } ?>
Sun Mon Tue Wed Thu Fri Sat
style="border:2px solid;border-color:CadetBlue" bgcolor="{$day_bgcolor}" onMouseOut="this.style.backgroundColor=''" onMouseOver="this.style.backgroundColor='#ddfffa'">
    today_bgcolor.";'>"; // 당일 } else { $outtext = "
  • "; // 평일 } if ($j==0 || $tmpHoli != null) { $tmpfld = "".$tempday.""; // 일요일 및 휴일 } elseif ($j==6) { $tmpfld = "".$tempday.""; // 토요일 } else { $tmpfld = "".$tempday.""; // 평일 } $templink = getUrl('act','dispSboardWrite','document_srl','') ; // 일자 클릭시 쓰기로 이동 $templink .= "&plan_sdate=".$pYear.$tempmonth.substr("0".$tempday,-2); // 일정시작 변수에 값 넣기위해 $templink = ""; $outtext .= " ".$templink.$tmpfld.""; // 일자 // 음력 표시 $tmpLunar = $Lunar[$tempday] % 100; // 음력 일자 가져오기 // 음력: 1,10,20일 표시 if(($__Context->module_info->plan_lunar == 'A') || (($__Context->module_info->plan_lunar == '1') &&($tmpLunar == 1 || $tmpLunar == 10 || $tmpLunar == 20)) ) { $tmpLunar = $Lunar[$tempday]; if($tmpLunar > 10000) { $tmpLunar %= 10000; $tmpfld1 = sprintf("윤%d.%d",(int)($tmpLunar/100),$tmpLunar%100); } else $tmpfld1 = sprintf("%d.%d",(int)($tmpLunar/100),$tmpLunar%100); $outtext .= " "."".$tmpfld1.""; // 음력 } $outtext .= " ".$aJeolki[$tempday].""; // 절기 $outtext .= " ".$tmpHoli.""; // 공휴일 $outtext .= "
  • \n"; echo ($outtext); // 둘째줄 --기념일--- if ($aMonthMemday[$tempday] != null) { // 기념일만 체크 echo "
  • ".$aMonthMemday[$tempday]."
  • \n"; // 기념일 } // 세째줄 --일정/플랜--- if ($arr_plan[$tempday]!= null) { echo "
  • ".$arr_plan[$tempday]."
  • \n"; } } echo ("
"); echo ("