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?>월 익월
"); for ($j=0; $j<7; $j++) { ?> "); } echo (""); } ?>
Sun Mon Tue Wed Thu Fri Sat
bgcolor={$today_bgcolor} bgcolor={$day_bgcolor} height="80" width="14%" onMouseOut="this.style.backgroundColor=''" onMouseOver="this.style.backgroundColor='#DDFFFA'" style="word-break:break-all;padding:0px;"> "; if ($pYear == $todayYY and $pMonth == $todayMM and $Calmain[$i][$j] == $todayDD ) { $outtext = $outtext.""; echo ($outtext); // 두째줄 --일정/플랜--- if ($tmparr6[0] != null) { $count = count($tmparr6); for ($k = 0; $k < $count; $k++) { $tmparr7=explode("~:~",$tmparr6[$k]); $outtext = ""; echo ($outtext); } } // 셋째줄 --공휴일--- if ($tmparr4[0] != null or $tmparr5[0] != null) { $outtext = ""; echo ($outtext); } } echo ("
"; // 당일 } else { $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.""; // 일자 ?> ".$tmpfld1.""; // 음력 } } if ($id_iljin == "Y" and $Calmain[$i][$j] != null) { $outtext = $outtext." ".substr($tmparr2[2], 0, 6).""; // 일진 } if ($id_terms == "Y" and $Calmain[$i][$j] != null) { $outtext = $outtext." ".$tmparr2[4].""; // 절기 } if ($id_holiday == "Y" and $Calmain[$i][$j] != null) { $outtext = $outtext."".$tmparr4[0].""; // 공휴일 } $outtext = $outtext."
"; if ($tmparr7[0] != null and $tmparr7[4] != null) { $outtext = $outtext.""; } $outtext = $outtext.""."".$tmparr7[0].""; $outtext = $outtext."
"; // if ($id_holiday == "Y" and $Calmain[$i][$j] != null) { // $outtext = $outtext."".$tmparr4[0].""; // 공휴일 // } if ($id_memday == "Y" and $Calmain[$i][$j] != null) { $outtext = $outtext." ".$tmparr5[0].""; // 기념일 } $outtext = $outtext."