pYear; $pMonth = $__Context->pMonth; ?> {@ $today_bgcolor=yellow} {@ $day_bgcolor=white} {@ $day_bgcolor=$widget_info->bg_color} 3 ) { $pOption=1; // 간지옵션 } $pYear =date("Y", mktime(0, 0, 0, $pMonth, 1, $pYear)); $pMonth =date("n", mktime(0, 0, 0, $pMonth, 1, $pYear)); $pMon =date("F", mktime(0, 0, 0, $pMonth, 1, $pYear)); $todayYY = date("Y", planner_ksc_widget::fn_xetimestamp()); // 당일년도 $todayMM = date("n", planner_ksc_widget::fn_xetimestamp()); // 당일월 $todayDD = date("j", planner_ksc_widget::fn_xetimestamp()); // 당일일 $__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; $xepath = $__Context->XE_path; $skinpath = $tpl_path; ?> {@ $category_color = $widget_info->category_list[$oDocument->get('category_srl')]->color} {@ $category_title = $widget_info->category_list[$oDocument->get('category_srl')]->title} category_title; $category_color = $__Context->category_color; ?> {@ $plan_reply = $oDocument->getCommentCount()} {@ $plan_reply = null} plan_reply; ?> {@$plan_start = $oDocument->getExtraValue(1)} {@$plan_end = $oDocument->getExtraValue(2)} {@$plan_bgcolor = $oDocument->getExtraValue(3)} {@$plan_flagicon = $oDocument->getExtraValue(4)} {@$plan_repeat_cycle = $oDocument->getExtraValue(5)} {@$plan_repeat_unit = $oDocument->getExtraValue(6)} {@$option_view_arr = $widget_info->option_view_arr} {@$plan_title = $oDocument->getTitle($widget_info->subject_cut_size)} {@$plan_detail = $oDocument->getSummary($widget_info->content_cut_size)} {@$plan_url = $oDocument->getPermanentUrl()} {@$plan_docurl = $oDocument->document_srl} {@ $plan_end = $plan_start} plan_title; $plan_detail = $__Context->plan_detail; $plan_url = $__Context->plan_url; $plan_bgcolor = $__Context->plan_bgcolor; $plan_flagicon = $__Context->plan_flagicon; $plan_repeat_cycle = $__Context->plan_repeat_cycle; // 반복일정 cycle $plan_repeat_unit = $__Context->plan_repeat_unit; // 반복일정 unit $option_view_arr = $__Context->option_view_arr; // Display 옵션 unit $plan_start = $__Context->plan_start; $plnstartYY = substr($plan_start, 0, 4); $plnstartMM = substr($plan_start, 4, 2); $plnstartDD = substr($plan_start, 6, 2); $plnstartMM = ltrim( $plnstartMM, "0" ); // 앞의 "0" 제거 $plnstartDD = ltrim( $plnstartDD, "0" ); // 앞의 "0" 제거 $plan_end = $__Context->plan_end; $plnendYY = substr($plan_end, 0, 4); $plnendMM = substr($plan_end, 4, 2); $plnendDD = substr($plan_end, 6, 2); $plnendMM = ltrim( $plnendMM, "0" ); // 앞의 "0" 제거 $plnendDD = ltrim( $plnendDD, "0" ); // 앞의 "0" 제거 if ($plnstartYY != null ) { if ($plnstartYY == $pYear and $plnstartMM == $pMonth) { // 당월 시작 이면서 당월 이후 종료 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; } } $plan_detail = str_replace("'", "`", $plan_detail); // '을 `로 대체 textbox보이기위해 $plan_detail = str_replace("\"", """, $plan_detail); // "를 "로 대체 textbox보이기위해 $plan_detail = str_replace(chr(012), "
", $plan_detail); // FF를 제거 textbox보이기위해 $plan_detail = str_replace(chr(015), "", $plan_detail); // SI을 제거 textbox보이기위해 -줄바꿈 // $plan_detail = strip_tags($plan_detail); // HTML tag 제거 - 줄바꿈 사용않음 if( $plnstartYY == $pYear and $plnstartMM == $pMonth) { // 일정관련자료 어레이에 출력 $arr_repeat = planner_ksc_widget::fn_repeat_schedule($pYear, $pMonth, $plan_start, $plan_end, $plan_repeat_cycle, $plan_repeat_unit); For ($i = $plnstartMM; $i <= $plnendMM; $i++) { For ($j = $plnstartDD; $j <= $plnendDD; $j++ ) { if ( $arr_repeat[$i][$j] == "*") { $arr_plan[$i][$j] = $arr_plan[$i][$j].$plan_title."~:~".$plan_url."~:~".$plan_detail."~:~".$plan_bgcolor."~:~".$plan_flagicon."~:~".$category_title."~:~".$category_color."~:~".$plan_reply."||"; // 어레이에 추가 1차분리자= "||", 2차 분리자 "~:~" } } } } } ?> pYear = $pYear; $tempmonth = substr("0".$pMonth, -2); //월 을 "7" 에서 "07"로 $__Context->tempMonth = $tempmonth; ?>

{$widget_info->title} {$widget_info->module_info->browser_title}


"); } ?>
  
전년 후년
전월 <?php echo $i?>월 익월
Date Schedule Note
"; for ($j=0; $j<7; $j++) { if ($Calmain[$i][$j]!= "*"){ // 달력상의 빈날제거 ?> "); } // 달력상의 빈날제거 } echo ("
bgcolor={$today_bgcolor} bgcolor={$day_bgcolor} height="33" width="14%" onMouseOut="this.style.backgroundColor=''" onMouseOver="this.style.backgroundColor='#DDFFFA'" style="word-break:break-all;padding:0px;"> "; $outtext = $outtext.""; echo ($outtext); // 두째칸 --일정/플랜--- echo (""); // 셋째칸 첫줄 --공휴일--- if ($tmparr4[0] != null or $tmparr5[0] != null) { $outtext = ""; echo ($outtext); } else { // 기념일 또는 공휴일이 없을때 table이 깨지는것 방지 $outtext = ""; echo ($outtext); } } echo ("
"; ?> "; // if ($Calmain[$i][$j] != null) { // 음력: 모든 날자 표시 if ($tmparr[2] == 1 or $tmparr[2] == 10 or $tmparr[2] == 20) { // 음력: 1,10,20일 표시 $outtext = $outtext." "."".$tmpfld1.""; // 음력 } $outtext = $outtext." ".$tmparr2[4].""; // 절기 $outtext = $outtext.""; // 첫칸 두째줄 왼쪽 --요일--- if ($j==0) { $tmpfldw = "".Sun.""; // 일요일 } elseif ($j==1) { $tmpfldw = "".Mon.""; // 월요일 } elseif ($j==2) { $tmpfldw = "".Tue.""; // 화요일 } elseif ($j==3) { $tmpfldw = "".Wed.""; // 수요일 } elseif ($j==4) { $tmpfldw = "".Thu.""; // 목요일 } elseif ($j==5) { $tmpfldw = "".Fri.""; // 금요일 } else { $tmpfldw = "".Sat.""; // 토요일 } $outtext = $outtext.""; // 첫칸 두째줄 오른쪽 --공휴일--- $outtext = $outtext."
"; if ($j==0 or $tmparr4[0] != null) { $tmpfld = "".$Calmain[$i][$j].""; // 일요일 및 휴일 } elseif ($j==6) { $tmpfld = "".$Calmain[$i][$j].""; // 토요일 } else { $tmpfld = "".$Calmain[$i][$j].""; // 평일 } $templink = $daylinkpath."&act=dispBoardWrite" ; // 일자 클릭시 쓰기로 이동 $templink = $templink."&extra_vars1=$pYear-$tempmonth-".substr("0".$tempday,-2); // 확장변수에 값 넣는것은 잘 안됨 $templink = ""; $outtext = $outtext." ".$templink.$tmpfld.""; // 일자 $outtext = $outtext."
"; $outtext = $outtext."$tmpfldw"; // 요일 $outtext = $outtext.""; // $outtext = $outtext." ".$tmparr2[4].""; // 절기 if ($tmparr4[0] != null) { $outtext = $outtext." ".$tmparr4[0].""; // 공휴일 } $outtext = $outtext."
"); if ($tmparr6[0] != null) { $count = count($tmparr6); for ($k = 0; $k < $count-1; $k++) { $tmparr7=explode("~:~",$tmparr6[$k]); $outtext = ""; if ($tmparr7[5] != null) { $outtext = $outtext."[".$tmparr7[5]."] "; // 분류 } $outtext = $outtext.""."".$tmparr7[0].""; //일정 if ($tmparr7[0] != null and $tmparr7[4] != null) { $outtext = $outtext." "; //일정확인 } if ($tmparr7[0] != null and $tmparr7[7] != null) { $outtext = $outtext." [".$tmparr7[7]."]"; //댓글숫자 } $outtext = $outtext."
"; echo ($outtext); } } else { // 일정이 없을때 table이 깨지는것 방지 $outtext = " "; echo ($outtext); } echo ("
"; // 셋째칸 두째줄 --기념일--- $outtext = $outtext."
"; // $outtext = $outtext." ".$tmparr4[0].""; // 공휴일 $outtext = $outtext."
"; $outtext = $outtext." ".$tmparr5[0].""; // 기념일 $outtext = $outtext."