{$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} client_timestamp = $client_timestamp = mktime(date("H"), date("i"), date("s")-date("Z")+$client_offset, date("m"), date("d"), date("Y")); // 화면에 보여줄 서버시간: 기본 XE시간으로 설정, 만약 default_timezone을 사용할 경우는 $server_timestamp, $server_offset 로 변경 $__Context->display_timestamp = $display_timestamp = $xe_timestamp; $__Context->display_offset = $xe_offset; //$__Context->display_timestamp = $display_timestamp = $server_timestamp; //$__Context->display_offset = $server_offset; if ($client_offset == null ) { $wrk_timestamp = $display_timestamp; } else { $wrk_timestamp = $client_timestamp; } if ($pYear == null ) { $pYear = date("Y", $wrk_timestamp); } if ($pMonth == null ) { $pMonth = date("n", $wrk_timestamp); } if ($pMon == null ) { $pMon = date("F", $wrk_timestamp); } if ($pDay == null ) { $pDay = date("j", $wrk_timestamp); } if ($pOption < 1 || $pOption > 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", $wrk_timestamp); // 당일년도 $todayMM = date("n", $wrk_timestamp); // 당일월 $todayDD = date("j", $wrk_timestamp); // 당일일 $__Context->pYear = $pYear; $__Context->pMonth = $pMonth; ?> {@ $link_path = getUrl('','mid',$mid,'dummy',1,'offset',$offset)} {@ $daylink_path = getUrl('','mid',$widget_info->mid,'dummy',2,'offset',$offset)} {@ $XE_path = getUrl('')} link_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 = null } {@ $category_title = null } {@ $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)} {@$thumnail_arr = explode(",",$oDocument->image_diary)} {@$plan_img = $oDocument->getThumbnail($thumnail_arr[1],$thumnail_arr[2],$thumnail_arr[3])} {@$ind_image_diary = $thumnail_arr[0]} {@$plan_img = null} {@$ind_image_diary = null} {@$plan_doc_extra_vars = $oDocument->get('extra_vars')} {@$ind_complete_doc = $oDocument->display_complete_doc} {@$plan_docurl = $oDocument->document_srl} {@$plan_url = getUrl('','document_srl',$plan_docurl,'offset',$offset)} {@$plan_board_skin = $oDocument->module_skin} {@$plan_use_category_bgcolor = $oDocument->use_category_bgcolor} {@$plan_new = $oDocument->printExtraImages($widget_info->duration_new)} {@ $plan_end = $plan_start} plan_title; $plan_detail = $__Context->plan_detail; $plan_img = $__Context->plan_img; $plan_doc_extra_vars = $__Context->plan_doc_extra_vars; $ind_complete_doc = $__Context->ind_complete_doc; $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_use_category_bgcolor = $__Context->plan_use_category_bgcolor; // board 의 카테고리사용여부및 배경색적용 옵션 $plan_new = $__Context->plan_new; $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; } } // qtip 미사용으로 인해 아래 3째줄 주석처리 $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보이기위해 -줄바꿈 // 취소일정위해 추가 // ('A'=>'기본', 'F'=>'완료', 'R'=>'취소'); // 기본: 최초는 null, 수정하면 A $_doc_extra_vars = explode(";", $plan_doc_extra_vars); $_doc_extra_vars1 = explode(":", $_doc_extra_vars[0]); $_doc_status = str_replace("\"", "", $_doc_extra_vars1[2]); if($_doc_status == "F" && $ind_complete_doc == "L") { $plan_title = "".$plan_title.""; } // 완료일정 제목에 취소선 긋기 if($_doc_status != "R" && ($ind_complete_doc == "N" && $_doc_status != "F" || $ind_complete_doc != "N") ) { // 취소일정이 아닐때 처리 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."|Ø|".$plan_use_category_bgcolor."|Ø|".$plan_new."|Ø|".$plan_img."|Ø|".$__Context->ind_image_diary."|#Ø#|"; // 어레이에 추가 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") { $ind_lunar = "Y"; $Lunarday = planner_ksc_widget::fn_sol2lun_ary($pYear,$pMonth); // 음력일자 } else if ($option_view_arr[$k] == "holiday") { $ind_holiday = "Y"; $Holiday = planner_ksc_widget::fn_HolidayChk($pYear, $pMonth); // 휴일 } else if ($option_view_arr[$k] == "memday") { $ind_memday = "Y"; $Memday = planner_ksc_widget::fn_MemdayChk($pYear, $pMonth); // 기념일 } else if ($option_view_arr[$k] == "solar_terms") { $ind_24terms = "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") { $ind_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?>월 익월
\n"); for ($j=0; $j<7; $j++) { ?> \n"); } echo ("\n"); } ?>
Sun Mon Tue Wed Thu Fri Sat
class='today_bg' bgcolor="{$day_bgcolor}" onMouseOut="this.style.backgroundColor=''" onMouseOver="this.style.backgroundColor='{$mouseover_bgcolor}'">
    "; } 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].")"; $tmparr2=explode("-",$GanjiJeolki[$pMonth][$Calmain[$i][$j]]); //24절기 $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.""; // 일자 if ($ind_lunar == "Y") { //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.""; // 음력 } } if ($ind_iljin == "Y" and $Calmain[$i][$j] != null) { $outtext .= " "."".substr($tmparr2[2], 0, 6).""; // 일진 } if ($ind_24terms == "Y" and $Calmain[$i][$j] != null) { $outtext .= " ".$tmparr2[4].""; // 절기 } if ($ind_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); // 일정/플랜 12차 "|Ø|",로 분리 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)) { if (file_exists($tmparr7[9]."/images/icon/".$icon)) { $icon_folder = ""; } else if (file_exists($tmparr7[9]."/images/icon/client/".$icon)) { $icon_folder = "client/"; } else if (file_exists($tmparr7[9]."/images/icon/manager/".$icon)) { $icon_folder = "manager/"; } $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; } // 시간표시 $tmp_arr=explode(",",$tmparr7[10]); // 카테고리사용여부 및 색상적용옵션 $ind_use_category = $tmp_arr[0]; // board 의 카테고리 사용 여부 $ind_bgcolor_option = $tmp_arr[1]; // board 의 카테고리 배경색사용 옵션 // 배경색상 적용 옵션 반영 (단, 작성시 제목에 색상을 적용한 경우는 글자색이 그대로 유지됨) if ($ind_bgcolor_option == "picker_bg"){ // 선택색상을->배경색 $tmp_style = "style='clear:both; background-color:".$tmparr7[3]."; border-bottom:1px solid #FFFFFF;'"; $tmp_style1_0 = "style='float:left; background-color:".$tmparr7[3]."; border-bottom:1px solid #FFFFFF;'"; $tmp_style1_1 = "style='padding:5px 0 0 5px; background-color:".$tmparr7[3]."; border:medium double #FFFFFF;'"; $tmp_style2 = "style='background-color:".$tmparr7[3].";'"; } else if ($ind_bgcolor_option == "picker_text"){ // 선택색상을->글자색 $tmp_style = "style='clear:both; color:".$tmparr7[3]."; border-bottom:1px solid #FFFFFF;'"; $tmp_style1_0 = "style='float:left; color:".$tmparr7[3]."; border-bottom:1px solid #FFFFFF;'"; $tmp_style1_1 = "style='padding:5px 0 0 5px; color:".$tmparr7[3]."; border:medium double ".$tmparr7[3].";'"; $tmp_style2 = "style='color:".$tmparr7[3].";'"; } else if ($ind_bgcolor_option == "category_bg" && $ind_use_category == "Y"){ // 분류색상을->배경색 $tmp_style = "style='clear:both; color:whitesmoke; background-color:".$tmparr7[6]."; border-bottom:1px solid #FFFFFF;'"; $tmp_style1_0 = "style='float:left; color:whitesmoke; background-color:".$tmparr7[6]."; border-bottom:1px solid #FFFFFF;'"; $tmp_style1_1 = "style='padding:5px 0 0 5px; color:whitesmoke; background-color:".$tmparr7[6]."; border:medium double #FFFFFF;'"; $tmp_style2 = "style='color:whitesmoke; background-color:".$tmparr7[6].";'"; } else if ($ind_bgcolor_option == "category_text" && $ind_use_category == "Y"){ // 분류색상을->글자색 $tmp_style = "style='clear:both; color:".$tmparr7[6]."; border-bottom:1px solid #FFFFFF;'"; $tmp_style1_0 = "style='float:left; color:".$tmparr7[6]."; border-bottom:1px solid #FFFFFF;'"; $tmp_style1_1 = "style='padding:5px 0 0 5px; color:".$tmparr7[6]."; border:medium double ".$tmparr7[6].";'"; $tmp_style2 = "style='color:".$tmparr7[6].";'"; }else { // 기본은 선택색상->배경색 $tmp_style = "style='clear:both; background-color:".$tmparr7[3]."; border-bottom:1px solid #FFFFFF;'"; $tmp_style1_0 = "style='float:left; background-color:".$tmparr7[3]."; border-bottom:1px solid #FFFFFF;'"; $tmp_style1_1 = "style='padding:5px 0 0 5px; background-color:".$tmparr7[3]."; border:medium double #FFFFFF;'"; $tmp_style2 = "style='background-color:".$tmparr7[3].";'"; } //시간+일정제목 if ($tmparr7[13] == "Y" && !empty($tmparr7[12])){ // 액자없음 echo "
  • ".$tmparr7[0].$tmparr7[11]."
  • "; } else if ($tmparr7[13] == "F" && !empty($tmparr7[12])){ // 액자있음 echo "
  • ".$tmparr7[0].$tmparr7[11]."
  • "; } else { echo "
  • ".$lplan_state."".trim($tmp_time[0])." ".$tmparr7[0].$tmparr7[11]."
  • "; } } } // end foreeach } // 셋째줄 기념일--- if ($ind_memday == "Y" and $Calmain[$i][$j] != null) { if (!empty($tmparr5[0])) { // 기념일만 체크 echo "
  • ".$tmparr5[0]."
  • "; // 기념일 } } } echo ("
"); echo ("
Server time is {date("l, F j, Y, g:i a", $display_timestamp)} and your time is {date("l, F j, Y, g:i a", $client_timestamp)} : {($display_timestamp-$client_timestamp)*(-1)/3600}Hrs difference.