{@ print_r($widget_info->testfld)} {@ $mini_display_option = $widget_info->mini_display_option;} {@ $holiday_cnt_code = $widget_info->holiday_country_code; //휴일 국가 $country_name_arr = $widget_info->country_name_arr; //국가이름: id->이름 $linkpath = getUrl('','mid',$mid,'pGanjioption',1,'offset',$offset,'pHoliday_cnt',$holiday_cnt_code);//위젯, 게시판등 경로지정 $daylinkpath = getUrl('','mid',$widget_info->mid,'pGanjioption',1,'offset',$offset); $skinpath = $tpl_path; $xepath = $XE_path = getUrl(''); $widget_path = $widget_info->widget_path; $arr_plan = null;// 클리어 하지 않으면 스킨의 일정내용이 같이 들어옴:(전역변수?) $ind_reservation = $widget_info->ind_reservation; // 위젯은 예약 적용 않음에서 메인게시판의 설정값으로 적용(V540). $minStamp = $widget_info->minStamp; //입력허용 최소(V540) $maxStamp = $widget_info->maxStamp; //입력허용 최대(V540) } {@ $day_bgcolor="transparent";} {@ $day_bgcolor=$widget_info->bg_color;} {@ $user_colorset = $widget_info->user_colorset;} {@ $pOption_2 = $widget_info->pOption_2;// M=월 단위, W1,W2 =주단위 출력 $pTimeSchedule = $widget_info->pTimeSchedule;// 타임스케줄 테이블 출력 $ind_weekly_base = $widget_info->weekly_base; // 당일부터 달력시작 옵션 $jd_dspStart = $widget_info->jd_dspStart; // 기간 시작일의 jd $jd_dspEnd = $widget_info->jd_dspEnd; // 기간 종료일의 jd $firstDayOfWeek = $widget_info->firstDayOfWeek; // 한주 시작요일(V500) $today_stamp = $widget_info->TodayStamp;// 당일 타임스탬프(V540변경) $todayYMD = date("Y-m-d", $today_stamp);// 당일년월일 $todayYY = date("Y", $today_stamp);// 당일년도 $todayMM = date("n", $today_stamp);// 당일월 $todayDD = date("j", $today_stamp);// 당일일 $wrk_pTimestamp =$widget_info->pTimestamp; // 선택일자 $pYear = date("Y", $wrk_pTimestamp); $pMonth = date("n", $wrk_pTimestamp); $pDay = date("j", $wrk_pTimestamp); $pMon = date("F", $wrk_pTimestamp);// 선택월 이름 $dispStart_stamp = $widget_info->dispStart_stamp;// 기간 시작 $dispStartYMD = date("Y-m-d", $dispStart_stamp);// 출력 시작일 년월일 $dispStartYY = date("Y", $dispStart_stamp);// 출력 시작일 년도 $dispStartMM = date("m", $dispStart_stamp); $dispStartDD = date("d", $dispStart_stamp); $dispStartM = date("n", $dispStart_stamp); $dispStart_date = $dispStartYY.",".$dispStartMM.",".$dispStartDD.",0,0,0";// 시간테이블을 위해 $dispEnd_stamp = $widget_info->dispEnd_stamp;//기간 종료 $dispEndYMD = date("Y-m-d", $dispEnd_stamp);// 출력 종료일 년월일 $dispEndYY = date("Y", $dispEnd_stamp);// 출력 종료일 년도 $dispEndMM = date("m", $dispEnd_stamp); $dispEndDD = date("d", $dispEnd_stamp); $dispEndM = date("n", $dispEnd_stamp); $dispEnd_date = $dispEndYY.",".$dispEndMM.",".$dispEndDD.",23,59,59";// 시간테이블을 위해 $Calmain = planner123_widget_main::fn_CalMain($dispStart_stamp, $dispEnd_stamp, $firstDayOfWeek);// 달력일자, (V500)요일옵션추가 $HolidayByCountry = $widget_info->HolidayByCountry;// 휴일 $Memday = $widget_info->Memday_arr;// 기념일 $option_view_arr = $widget_info->option_view_arr;// option에 따라 음력, 휴일, 기념일등 구하기 $count = count($option_view_arr); // V430: 휴무일 추가와 관련하여 게시판별로 설정된 디폴트 국가의 휴일을 위젯에서도 게시판별로 반영해주도록 로직변경 $dft_country_code = $widget_info->dft_country_code; //위젯설정 국가ID(V430) $dft_holiday = $HolidayByCountry[$dft_country_code]; //위젯설정 국가의 휴일 어레이(V430) $dft_offday = $widget_info->dft_offday; //위젯설정 offday 요일등[h,0,1,2,3,4,5,6](V430) $dft_offday_Label = $widget_info->ind_offday_label; //위젯설정 offday option: label(V430) $dft_offday_naNew = $widget_info->ind_offday_naNew; //위젯설정 offday option: not allowe new event(V430) $dft_holidayisoffday = $widget_info->ind_holidayisOffday; //위젯설정 offday option: 공휴일을 휴무일로(V430) $dft_holidayisWorkday = $widget_info->ind_holidayisWorkday; //위젯설정 offday option: 공휴일을 근무일로(V540) $board_country_arr = $widget_info->board_country_arr; // 게시판설정 국가ID(V430) $board_offday_arr = $widget_info->board_offday_arr; // 게시판휴무일:srl->[h,0,1,2,3,4,5,6](V430) $board_offday_option_arr= $widget_info->board_offday_option_arr; // 게시판휴무옵션:srl->[label,na_new](V430) }
{@ $category_color = null; $category_title = null; $board_srl = $oDocument->get('module_srl'); $board_country_id = $board_country_arr[$board_srl]; $board_holiday = $HolidayByCountry[$board_country_id]; $board_offday = $board_offday_arr[$board_srl]; $board_offday_option = $board_offday_option_arr[$board_srl]; } {@ $board_offday_naDisp = TRUE;} {@ $board_offday_naDisp = FALSE;} {@ $board_holidayisoffday = TRUE;} {@ $board_holidayisoffday = FALSE;} {@ $plan_start = $oDocument->getExtraValue(1);// 확장변수값 얻기 $plan_end = $oDocument->getExtraValue(2); $plan_bgcolor = $oDocument->getExtraValueHTML(3); $plan_flagicon = $oDocument->getExtraValueHTML(4);// , 로구분 $plan_repeat_cycle = $oDocument->getExtraValueHTML(5); $plan_repeat_unit = $oDocument->getExtraValueHTML(6); $plan_time = $oDocument->getExtraValueHTML(7);// , 로구분 $plan_title = $oDocument->getTitle($widget_info->subject_cut_size); $plan_title = strip_tags($plan_title);// HTML and PHP tag 제거 $plan_detail = $oDocument->getSummary($widget_info->content_cut_size); $plan_doc_extra_vars = $oDocument->get('extra_vars');// 취소일정을 위해 추가 $ind_complete_doc = $oDocument->display_complete_doc;// 취소일정을 위해 추가 보드스킨의 완료일정 출력여부 $plan_docsrl = $oDocument->document_srl; $plan_url = getUrl('document_srl',$plan_docsrl,'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;} {@ $tmparr_catbg = explode(",", $plan_use_category_bgcolor); $tmp_id01 = $tmparr_catbg[0]; $category_title = null; } {@ $category_title = "[".$widget_info->category_list[$oDocument->get('category_srl')]->title.$disp_category_option."]";} {@ $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" 제거 $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" 제거 } {@ $plan_detail = str_replace("'", "'", $plan_detail);// '을 '로 대체 textbox보이기위해 $plan_detail = str_replace("\"", """, $plan_detail);// "를 "로 대체 textbox보이기위해 //$plan_detail = str_replace(chr(10), "
", $plan_detail);// LF를 br로 textbox보이기위해 } {@ $_doc_status = $plan_doc_extra_vars;} {@ $_doc_status = unserialize($plan_doc_extra_vars);} {@ $plan_title = "".$plan_title."";} {@ $arr_repeat = planner123_widget_main::fn_repeat_schedule($dispStart_stamp, $dispEnd_stamp, $plan_start, $plan_end, $plan_repeat_cycle, $plan_repeat_unit, $board_holiday); //V410: 휴일추가, V430:board별 휴일 ;} {@ $tmp_offday = FALSE;} {@ $ind_weekday = date('w', mktime(0, 0, 0, $i, $j, $arr_repeat[$i][$j])); // 당일요일} {@ $tmp_offday = in_array(strval($ind_weekday), $board_offday); // 당일 board 휴뮤요일여부} {@ if($board_holiday[$i][$j] != null) $tmp_offday = TRUE; // 당일 board 공휴일여부} {@ $plan_length = 1;} {@ $arr_plan[$i][$j] .="|#Ø#|";} {@ $arr_plan[$i][$j] .= $plan_title."|Ø|".$plan_url."|Ø|".$plan_detail."|Ø|".$plan_bgcolor."|Ø|".$plan_flagicon."|Ø|".$category_title;}
black >

{$pYear." . ".$pMonth}
{@ $weekDayTitle_arr = explode(",",$lang->pln_calendar_header_mini);// 요일 이름(V500) } {@ $WDay_seq = ($firstDayOfWeek + $x) % 7;} {$weekDayTitle_arr[$WDay_seq]} | {$weekDayTitle_arr[$WDay_seq]} | {$weekDayTitle_arr[$WDay_seq]}
--- | --- | ---
{@ $weekcount = count($Calmain);}
{@ $wrk_tmp_arr= explode("-",$Calmain[$i][$j]);// YYYY-M-d $Calmain_YY = $wrk_tmp_arr[0]; $Calmain_MM = $wrk_tmp_arr[1]; $Calmain_DD = $wrk_tmp_arr[2]; } | {@ $tmpfld = null; $outtext = null; } {@ $Calmain[$i][$j]=null;} {@ $templink = $daylinkpath."&act=dispBoardWrite";// 일자 클릭시 쓰기로 이동 $templink .= "&extra_vars1=".$Calmain_YY.substr("0".$Calmain_MM,-2).substr("0".$Calmain_DD,-2);// 일정시작 확장변수 값 } {@ $templink = $daylinkpath;// 일자 클릭시 게시판으로 이동 $templink .= "&pYear=".$Calmain_YY."&pMonth=".substr("0".$Calmain_MM,-2);// 년월 } {@ $templink = "";// 일자 클릭시 이동없음 } {@ $tmparr4=explode("-",$dft_holiday[$Calmain_MM][$Calmain_DD]);// 해당일의 default 휴일 얻기(V430 변경) $tmparr6=explode("|#Ø#|",$arr_plan[$Calmain_MM][$Calmain_DD]);// 일정/플랜 1차 "|#Ø#|",로 분리 $tooltiptext = null;// 일정 툴팁을 위하여 } {@ $count = count($tmparr6);} {@ $tmparr7=explode("|Ø|",$tmparr6[$k]);} {@ $tooltiptext = $tooltiptext." "; $tooltiptext = $tooltiptext.""; $tooltiptext = $tooltiptext.$tmparr7[0].$tmparr7[5]; $tooltiptext = $tooltiptext.""; $tooltiptext = $tooltiptext." "; } {@ $tooltiptext = str_replace("'", "`", $tooltiptext);// '을 `로 대체 textbox보이기위해 $tooltiptext = str_replace("\"", """, $tooltiptext);// "를 "로 대체 textbox보이기위해 $tooltiptext = str_replace(chr(012), " ", $tooltiptext);// LF를 제거 textbox보이기위해 } {@ $jd_calmain = gregoriantojd($Calmain_MM, $Calmain_DD, $Calmain_YY); // jd} {@ $jd_calmain = planner123_widget_main::fn_calcDateToJD($Calmain_YY, $Calmain_MM, $Calmain_DD); // jd } {@ $today_schedule = $tooltiptext;// 오늘 일정 추출 $wrkday_stamp = mktime(0,0,0,$Calmain_MM,$Calmain_DD,$Calmain_YY); } {@ $today_schedule_1 = $tooltiptext;// 내일 일정 $wrkday_stamp_1 = mktime(0,0,0,$Calmain_MM,$Calmain_DD,$Calmain_YY); } {@ $today_schedule_2 = $tooltiptext;// 모레 일정 $wrkday_stamp_2 = mktime(0,0,0,$Calmain_MM,$Calmain_DD,$Calmain_YY); } {@ $today_schedule = $tooltiptext;// 오늘 일정 추출--> $wrkday_stamp = mktime(0,0,0,$Calmain_MM,$Calmain_DD,$Calmain_YY); } {@ $WDay_seq = ($firstDayOfWeek + $j) % 7;} {@ $tmpfld = "".$Calmain_DD."";} {@ $tmpfld = "".$Calmain_DD."";} {@ $tmpfld = "".$Calmain_DD."";} {@ $is_offday = FALSE; // clear} {@ $is_offday = in_array(strval($WDay_seq), $dft_offday); // $j(순서)를 $WDay_seq(요일)로 변경(V500) } {@ if($dft_holiday[$Calmain_MM][$Calmain_DD] != "") $is_offday = TRUE; //default holiday} {@ if($dft_holiday[$Calmain_MM][$Calmain_DD] != "") $is_offday = FALSE; } {@ $procDayStamp = mktime(0,0,0,$Calmain_MM,$Calmain_DD,$Calmain_YY);} {@ $is_resv_full = true; //모두예약완료(V530)} {@ $is_resv_full = false;} {@ $over_min_period = true; //입력허용기간 초과(V540)} {@ $over_min_period = true; //예약일정시 과거일자는 최소기간 범위외로...(V540)} {@ $over_min_period = false;} {@ $over_max_period = true; //입력허용기간 초과(V540)} {@ $over_max_period = false;} {$tmpfld} {$tmpfld} {$tmpfld} {$tmpfld} {$tmpfld} {$tmpfld}

{$lang->pln_today_event}: ({date("D M j, Y",$wrkday_stamp)})
{$today_schedule} {$lang->pln_today_event}: ({date("D M j, Y",$wrkday_stamp)})
{$lang->pln_no_event}