member_srl; $__Context->member_srl = $member_srl; unset($logged_info); ?> {@ $link_path = getUrl('','mid',$mid,'dummy',1)} {@ $XE_path = getUrl('')} {@ $day_bgcolor=aliceblue} {@ $day_bgcolor=beige} link_path; $xepath = $__Context->XE_path; $skinpath = $xepath."modules/sboard/skins/xe_splanner/"; // 스킨 설치 경로지정 //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 = ""; if($category_title) $outtext .= "[".$category_title."]  "; $outtext .= ""; $outtext .= ""; $outtext .= "".$plan_time.$plan_title." "; if($plan_check) { $outtext .= ""; } $arr_plan[$j] .= $outtext.$exImg."
"; } } } } ?>
  
  

Date Schedule Note
"; */ echo "
"; for ($j=0; $j<7; $j++) { $tempday = $Calmain[$i][$j]; if($tempday == 0) continue; // 달력상의 빈날제거 if($tempday == $todayDD and $pMonth == $todayMM and $pYear == $todayYY) $today_flag = 1; else $today_flag = 0; ?> \n"); } ?>
style="border:2px solid;border-color:CadetBlue" height="33" width="14%" onMouseOut="this.style.backgroundColor=''" onMouseOver="this.style.backgroundColor='#DDFFFA'" style="word-break:break-all;padding:0px;" > "; if($today_flag == 1) $outtext = $outtext."\n"); } echo ("
"; echo ($outtext); // 두째칸 --일정/플랜--- echo (""); if($today_flag == 1) echo "
"; else $outtext = $outtext.""; ?> "; // 음력: 모든 날자 표시 $tmpLunar = $Lunar[$tempday]; if($tmpLunar) { 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.""; // 음력 } $tmpJeolki = $aJeolki[$tempday]; if($tmpJeolki) $outtext .= " ".$tmpJeolki.""; // 절기 $outtext .= ""; // 첫칸 두째줄 왼쪽 --요일--- static $yoil = array("Sun","Mon","Tue","Wed","Thu","Fri","Sat"); $tmpfldw = "".$yoil[$j].""; $outtext .= ""; // 첫칸 두째줄 오른쪽 --공휴일--- $outtext = $outtext."
"; if ($j==0 or $tmpHoli != null) { $color = "#ee2222"; // 일요일 및 휴일 } elseif ($j==6) { $color = "#2266ee"; // 토요일 } else { $color = "#666666"; // 평일 } $tmpfld = "".$tempday.""; $templink = getUrl(act,dispSboardWrite,'document_srl','') ; // 일자 클릭시 쓰기로 이동 $templink = $templink."&plan_sdate=".$pYear.$tempmonth.substr("0".$tempday,-2); $templink = ""; $outtext .= " ".$templink.$tmpfld.""; // 일자 $outtext .= "
"; $outtext .= "$tmpfldw"; // 요일 $outtext .= ""; if ($tmpHoli) { $outtext .= " ".$tmpHoli.""; // 공휴일 } $outtext .= "
"); if($arr_plan[$tempday]!= null) { echo ($arr_plan[$tempday]); } else { // 일정이 없을때 table이 깨지는것 방지 echo " "; } echo (""; else echo ""; // 셋째칸 첫줄 --공휴일--- if ($aMonthMemday[$tempday] != null) { $outtext = ""; // 셋째칸 두째줄 --기념일--- $outtext = $outtext."
"; $outtext .= "
"; $outtext = $outtext." ".$aMonthMemday[$tempday].""; // 기념일 $outtext = $outtext."
"; echo ($outtext); } else { // 기념일 또는 공휴일이 없을때 table이 깨지는것 방지 echo " "; } echo ("