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)} {@$plan_time = $oDocument->getExtraValue(7)} {@$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 $plan_time = $__Context->plan_time; // 시간대 (09:00, 09:30, 10;00,... 형식) $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."~:~".$plan_time."|#|"; // 어레이에 추가 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?>월 익월
\n"); for ($j=0; $j<7; $j++) { ?> \n"); } echo ("\n"); } ?>
Sun Mon Tue Wed Thu Fri Sat
bgcolor="{$today_bgcolor}" bgcolor="{$day_bgcolor}" onMouseOut="this.style.backgroundColor=''" onMouseOver="this.style.backgroundColor='#ddfffa'">
    "; } else { $tempday=$Calmain[$i][$j]; // --해당일의 음력일자,휴일,기념일 얻기--- $tmparr=explode("-",$Lunarday[$pMonth][$Calmain[$i][$j]]); //음력날자 if ($tmparr[3] == "윤달") { $youndal = "윤"; } else { $youndal = null; } $tmpfld1 ="(".$youndal.$tmparr[1]."-".$tmparr[2].")"; $tmparr4=explode("-",$Holiday[$pMonth][$Calmain[$i][$j]]); // 공휴일 $tmparr5=explode("-",$Memday[$pMonth][$Calmain[$i][$j]]); // 기념일 $tmparr6=explode("|#|",$arr_plan[$pMonth][$Calmain[$i][$j]]); // 일정/플랜 1차 "|#|",로 분리 // 첫줄 --일자,음력,절기,공휴일--- if ($pYear == $todayYY and $pMonth == $todayMM and $Calmain[$i][$j] == $todayDD ) { $outtext = "
  • "; // 당일 } else { $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 .= "&extra_vars1=$pYear-$tempmonth-".substr("0".$tempday,-2); // 일정시작 값 넣기위해 $templink = ""; $outtext .= " ".$templink.$tmpfld.""; // 일자 $count = count($option_view_arr); for ($k = 0; $k < $count; $k++) { if ($option_view_arr[$k] == "lunar_calendar") { $id_lunar = "Y"; } else if ($option_view_arr[$k] == "iljin") { $id_iljin = "Y"; } else if ($option_view_arr[$k] == "solar_terms") { $id_terms = "Y"; } else if ($option_view_arr[$k] == "holiday") { $id_holiday = "Y"; } else if ($option_view_arr[$k] == "memday") { $id_memday = "Y"; } } if ($id_lunar == "Y") { //if ($Calmain[$i][$j] != null) { // 음력: 모든 날자 표시 if ($tmparr[2] == 1 or $tmparr[2] == 10 or $tmparr[2] == 20) { // 음력: 1,10,20일 표시 $outtext .= " "."".$tmpfld1.""; // 음력 } } if ($id_holiday == "Y" and $Calmain[$i][$j] != null) { $outtext .= " ".$tmparr4[0].""; // 공휴일 } $outtext .= "
  • "; echo ($outtext); // 두째줄 --일정/플랜--- if (!empty($tmparr6[0])) { foreach ($tmparr6 as $val) { if (!$val = trim($val)) continue; // 빈어레이는 무시하고 빠진다. $tmparr7=explode("~:~",$val); if (!empty($tmparr7[0])) { //$lplan_cat = (!empty($tmparr7[5]))?"[".$tmparr7[5]."] ":""; // 분류 $lplan_state = (!empty($tmparr7[4]))?"":""; //일정확인 //$lplan_reply = (!empty($tmparr7[7]))?"[".$tmparr7[7]."]":""; //댓글숫자 $tmp_time = explode(",",$tmparr7[8]); //시작시간 } echo "
  • ".$lplan_state."".$tmparr7[0]."
  • "; //일정 } } // 셋째줄 기념일--- if ($id_memday == "Y" and $Calmain[$i][$j] != null) { if (!empty($tmparr5[0])) { // 기념일만 체크 echo "
  • ".trim($tmp_time[0]).$tmparr5[0]."
  • "; // 기념일 } } } echo ("
"); echo ("