{$widget_info->testfld} pYear; $pMonth = $__Context->pMonth; ?> {@ $today_bgcolor="#CDE6AC"} {@ $today_bodercolor="#58792E"} {@ $mouseover_bgcolor="#ddfffa"} {@ $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; ?> pYear = $pYear; $tempmonth = substr("0".$pMonth, -2); //월 을 "7" 에서 "07"로 $__Context->tempMonth = $tempmonth; ?> {@ $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)} {@$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_board_skin = $oDocument->module_skin} {@ $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; // 시간대 (11:00|@|12:00 형식) $plan_board_skin = $__Context->plan_board_skin; // board skin 폴더명 $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; } } 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."~:~".$plan_board_skin."|#|"; // 어레이에 추가 1차분리자= "|#|", 2차 분리자 "~:~" } } } } } ?> {@$option_view_arr = $widget_info->option_view_arr} option_view_arr; // Display 옵션 unit $Calmain = planner_ksc_widget::fn_CalMain($pYear,$pMonth); // 달력일자 $count = count($option_view_arr); for ($k = 0; $k < $count; $k++) { if ($option_view_arr[$k] == "lunar_calendar") { $id_lunar = "Y"; $Lunarday = planner_ksc_widget::fn_sol2lun_ary($pYear,$pMonth); // 음력일자 } else if ($option_view_arr[$k] == "holiday") { $id_holiday = "Y"; $Holiday = planner_ksc_widget::fn_HolidayChk($pYear, $pMonth); // 휴일 } else if ($option_view_arr[$k] == "memday") { $id_memday = "Y"; $Memday = planner_ksc_widget::fn_MemdayChk($pYear, $pMonth); // 기념일 } else if ($option_view_arr[$k] == "solar_terms") { $id_terms = "Y"; if ($GanjiJeolki == null) { $sun = array(); $terms = solar_widget::terms($pYear,1,12,&$sun); $GanjiJeolki = planner_ksc_widget::fn_jeolki_ganji_ary($pYear,$terms,$pOption); // 간지 절기 } } else if ($option_view_arr[$k] == "iljin") { $id_iljin = "Y"; if ($GanjiJeolki == null) { $sun = array(); $terms = solar_widget::terms($pYear,1,12,&$sun); $GanjiJeolki = planner_ksc_widget::fn_jeolki_ganji_ary($pYear,$terms,$pOption); // 간지 절기 } } } ?>

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


  
   전월 <?php echo $i?>월 익월
onMouseOut="this.style.backgroundColor=''" onMouseOver="this.style.backgroundColor='{$mouseover_bgcolor}'"> "; // 첫칸 왼쪽1 --일자--- $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 = "".$tmpfld.""; // 일자 $outtext = "
  • ".$templink."
  • "; // 첫칸 왼쪽2 --요일--- switch(true) { case ($j==0): $tmpfldw = "Sun"; break; // 일요일 case ($j==1): $tmpfldw = "Mon"; break; // 월요일 case ($j==2): $tmpfldw = "Tue"; break; // 화요일 case ($j==3): $tmpfldw = "Wed"; break; // 수요일 case ($j==4): $tmpfldw = "Thu"; break; // 목요일 case ($j==5): $tmpfldw = "Fri"; break; // 금요일 default: $tmpfldw = "Sat"; break; // 토요일 } $outtext .= "
  • ".$tmpfldw."
  • "; $outtext = ""; echo $outtext; // 요일 $outtext = null; echo ""; echo ""; echo ""; echo ""); } } // 달력상의 빈날제거 } } ?>
    Date Schedule Note
    "; // 첫칸 오른쪽1 --음력/절기--- $outtext = ""; // if ($Calmain[$i][$j] != null) { // 음력: 모든 날자 표시 if ($tmparr[2] == 1 or $tmparr[2] == 10 or $tmparr[2] == 15 or $tmparr[2] == 20) { // 음력: 1,10,15,20일 표시 $outtext = " "."".$tmpfld1.""; // 음력 } $outtext .= " ".$tmparr2[4].""; // 절기 $outtext = "
  • ".$outtext."
  • "; // 첫칸 오른쪽2 --공휴일--- // $outtext = $outtext." ".$tmparr2[4].""; // 절기 if ($tmparr4[0] != null) { $outtext .= "
  • ".$tmparr4[0]."
  • "; // 공휴일 } $outtext = "
      ".$outtext."
    "; echo $outtext; // 음력, 절기 $outtext = null; echo "
    "; // 두째칸 --일정/플랜--- 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 = null; if (!empty($tmparr7[4])) { $arr_icon = explode("|@|",$tmparr7[4]); foreach ($arr_icon as $icon) { if ($icon = trim($icon)) { $lplan_state .= ""; //일정확인 } } } $lplan_reply = (!empty($tmparr7[7]))?"[".$tmparr7[7]."]":""; //댓글숫자 $tmp_time = explode("|@|",$tmparr7[8]); //시작종료시간 } if ($tmparr7[8]){ $time_disply_fld = "[".trim($tmp_time[0])."-".trim($tmp_time[1])."]"; } else { $time_disply_fld = null; } echo $lplan_cat." "."" .$time_disply_fld.$tmparr7[0]." ".$lplan_state.$lplan_reply."
    "; //시간+일정제목 } } echo "
    "; // 셋째칸 두째줄 --기념일--- if (!empty($tmparr5[0])) { // 기념일만 체크 echo "
  • ".$tmparr5[0]."
  • "; // 기념일 } echo ("