{@ print_r($widget_info->testfld)} {@ $ind_mobile = true; // mobile::isFromMobilePhone() 대신} {@ Context::addJsFile("./common/js/jquery.js", true, '', -100000); Context::addJsFile("./common/js/js_app.js", true, '', -100000); Context::addJsFile("./common/js/x.js", true, '', -100000); Context::addJsFile("./common/js/common.js", true, '', -100000); Context::addJsFile("./common/js/xml_handler.js", true, '', -100000); Context::addJsFile("./common/js/xml_js_filter.js", true, '', -100000); } {@ $ind_mobile = false } {$html_temp = planner123_widget_main::fn_getClientOffsetTime()} {@ $default_style = $widget_info->default_style; //디폴트스타일 $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;// 클리어 하지 않으면 스킨의 일정내용이 같이 들어옴:(전역변수?) $schedule_html = ""; //clear for time table $ind_reservation = $widget_info->ind_reservation; // 위젯은 예약 적용 않음에서 메인게시판의 설정값으로 적용(V540). $minStamp = $widget_info->minStamp; //입력허용 최소(V540) $maxStamp = $widget_info->maxStamp; //입력허용 최대(V540) $adjust_title_color = $widget_info->adjust_title_color; //일정제목 글자색 조정(V560) } {@ $day_bgcolor="transparent";} {@ $day_bgcolor=$widget_info->bg_color;} {@ $theme_name = $widget_info->user_colorset;} {@ Context::addCSSFile($tpl_path.'colorset/'.$theme_name.'.css');} {@ $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변경) $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;// 기간 시작 $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;//기간 종료 $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) } {@ $ind_lunar_all = ""; $ind_lunar = "Y"; $Lunarday = planner123_widget_main::fn_sol2lun_kr_period($dispStart_stamp,$dispEnd_stamp);// 음력일자 2014-07-01 변경 } {@ $ind_week_number = "Y";// 몇주차 } {@ $ind_holiday = "Y";// 휴일 // $Holiday = planner123_widget_holiday::fn_HolidayChk($dispStart_stamp, $dispEnd_stamp); } {@ $ind_memday = "Y";// 기념일 // $Memday = planner123_widget_holiday::fn_MemdayChk($dispStart_stamp,$dispEnd_stamp); } {@ $ind_24term = "Y";} {@ $GanjiJeolki = planner123_widget_main::fn_jeolki_ganji_ary($dispStartYY,$dispStartM,$pGanjioption);} {@ $GanjiJeolki_2 = planner123_widget_main::fn_jeolki_ganji_ary($dispEndYY,1,$pGanjioption);} {@ $ind_iljin = "Y";} {@ $GanjiJeolki = planner123_widget_main::fn_jeolki_ganji_ary($dispStartYY,$dispStartM,$pGanjioption);} {@ $GanjiJeolki_2 = planner123_widget_main::fn_jeolki_ganji_ary($dispEndYY,1,$pGanjioption);} {@ $ind_islamic_all = ""; $ind_islamic = "Y"; $Islamicday = planner123_widget_main::fn_getIslamic_ary($dispStart_stamp,$dispEnd_stamp);// 이슬람력일자 } {@ $category_list = $widget_info->category_list;} {@ $category_list_parent = $widget_info->category_list;} {@ $category_list_parent[$key]->title = $category_list_parent[$val->parent_srl]->title.'/'.$category_list_parent[$key]->title;} {@ $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;} {@ $doc_category_srl = $oDocument->get('category_srl');} {@ $category_color = $category_list[$doc_category_srl]->color;} {@ $wrk_arr01 = explode(',', $oDocument->use_category_bgcolor);} {@ $category_title = $category_list_parent[$doc_category_srl]->title;} {@ $category_title = $category_list[$doc_category_srl]->title;} {@ $category_title = '';} {@ $plan_reply = $oDocument->getCommentCount();} {@ $plan_reply = null;} {@ $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_detail = $oDocument->getContentText($widget_info->content_cut_size);//일정내용 $plan_detail = str_replace("\r\n\r\n", "\r\n", $plan_detail); $plan_detail = str_replace("\n\n", "\r\n", $plan_detail); } {@ $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_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;} {@ $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);} {@ $plan_detail = str_replace("\"", """, $plan_detail);} {@ $_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 공휴일여부} {@ $ind_weekday_2 = $ind_weekday + 1; // 다음날 요일} {@ $ind_weekday_2 = 0;} {@ $i_next = date('n', mktime(0, 0, 0, $i, $j+1, $arr_repeat[$i][$j])); // 다음날월} {@ $j_next = date('j', mktime(0, 0, 0, $i, $j+1, $arr_repeat[$i][$j])); // 다음날일} {@ $tmp_offday_2 = in_array(strval($ind_weekday_2), $board_offday); // 다음날 휴무 요일여부} {@ if($board_holiday[$i_next][$j_next] != null) $tmp_offday_2 = TRUE; // 다음날 board 공휴일여부} {@ $j_temp = $j;} {@ $WDay_position = ($ind_weekday - $firstDayOfWeek + 7) % 7; // 시작요일 위치 변경을 위해 조정(V500) } {@ $plan_length = $j-$j_temp+1;} {@ $arr_plan[$i][$j_temp] .="|#Ø#|";} {@ $arr_plan[$i][$j_temp] .= $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."|Ø|".$ind_image_diary."|Ø|".$plan_length."|Ø|".$plan_docsrl."|Ø|".$plan_start."|Ø|".$plan_end."|Ø|".$_doc_status;} {@ $j_temp = ""; // 일정 시작일 지움}

## {$widget_info->title}

{@ $oTemplate = &TemplateHandler::getInstance();} {@ print $oTemplate->compile($tpl_path.'colorset/', $theme_name.'.html');} {@ $weekDayTitle_arr = explode(",",$lang->pln_calendar_header);// 요일 이름(V500) } {@ $th_width_arr = array('14%', '14%', '14%', '14%', '14%', '14%', '14%');//디폴트:14%(일,월,화....토) } {@ $th_width_arr= explode(",",$widget_info->column_width);//입력 값(위젯은 null) } {@ $tbl_html .= "

";// 달력 $tbl_html .= "
"; $tbl_html .= "
"; } {@ $WDay_seq = ($firstDayOfWeek + $x) % 7;} {@ $tbl_html .= " ".$weekDayTitle_arr[$WDay_seq]." "; } {@ $tbl_html .= " | ".$weekDayTitle_arr[$WDay_seq]." "; } {@ $tbl_html .= " | ".$weekDayTitle_arr[$WDay_seq]." "; } {@ $tbl_html .= "
--- | --- | ---
"; $tbl_html .= "
"; $tbl_html .= "
"; $schedule_html = null; $holiday_html = null; $memday_html = null; $count_seg = 0; $weekcount = count($Calmain); } {@ $tbl_html .= "
";} {@ $wrk_tmp_arr= explode("-",$Calmain[$i][$j]); $Calmain_YY = $wrk_tmp_arr[0]; $Calmain_MM = $wrk_tmp_arr[1]; $Calmain_DD = $wrk_tmp_arr[2]; } {@ $tbl_html .= "";} {@ $tbl_html .= " | ";} {@ $tbl_html .= " | ";} {@ $tbl_html .= " "; $tmpfld_1 = null; $outtext = null; } {@ $Calmain_DD=null;} {@ $tbl_html .= " ";// 빈 날자 레이블 출력 $tbl_html .= " ";// 첫주 장기일정 콘테이너 } {@ $tempday=$Calmain_DD; $tmparr_lunar=explode(",",$Lunarday[$Calmain_MM][$Calmain_DD]);//음력날자(2014-07-01 "-"를 ","로변경) } {@ $youndal = "윤";}{@ $youndal = null;} {@ $tmpfld_lunar ="(".$youndal.$tmparr_lunar[1]."-".$tmparr_lunar[2].")"; $tmparr_islam=explode("-",$Islamicday[$Calmain_MM][$Calmain_DD]); $tmpfld_islamicday ="(".$tmparr_islam[1]."-".$tmparr_islam[2].")";//이슬람력날자 $tmparr4=explode("-",$HolidayByCountry[$holiday_cnt_code][$Calmain_MM][$Calmain_DD]);// 공휴일: v430 변경 $tmparr5=explode("-",$Memday[$Calmain_MM][$Calmain_DD]);// 기념일 $tmparr6=explode("|#Ø#|",$arr_plan[$Calmain_MM][$Calmain_DD]);// 일정/플랜 1차 "|#Ø#|",로 분리 } {@ $tmparr2=explode("-",$GanjiJeolki[$Calmain_MM][$Calmain_DD]);} {@ $tmparr2=explode("-",$GanjiJeolki_2[$Calmain_MM][$Calmain_DD]);} {@ $tmp_dsp_mmdd = $Calmain_MM."/".$Calmain_DD;} {@ $tmp_dsp_mmdd = $Calmain_DD;} {@ $WDay_seq = ($firstDayOfWeek + $j) % 7;} {@ $tmp_weekNo = "(".date("W", strtotime($Calmain[$i][$j])).") "; //몇주차 } {@ $wrkfld_weekNo = "".$tmp_weekNo."";} {@ $wrkfld_weekNo = "";} {@ $wrkfld_dt = "".$tmp_dsp_mmdd."";} {@ $wrkfld_dt = "".$tmp_dsp_mmdd."";} {@ $wrkfld_dt = "".$tmp_dsp_mmdd."";} {@ $wrkfld_lunar = "".$tmpfld_lunar."";} {@ $wrkfld_lunar = "".$tmpfld_lunar."";} {@ $wrkfld_lunar = '';} {@ $wrkfld_islam = "".$tmpfld_islamicday."";} {@ $wrkfld_islam = "".$tmpfld_islamicday."";} {@ $wrkfld_islam = '';} {@ $wrkfld_24term = "".$tmparr2[4]."";} {@ $wrkfld_24term = '';} {@ $wrkfld_iljin = "".substr($tmparr2[2], 0, 6)."";} {@ $wrkfld_holiday_top = "".$tmparr4[0]."";} {@ $wrkfld_holiday_top = '';} {@ $wrkfld_memday_top = "".$tmparr5[0]."";} {@ $wrkfld_memday_top = '';} {@ $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;} {@ $wrkfld_btn = '';} {@ $date_tooltip = ' title='.$lang->pln_off_day.' ';} {@ $date_tooltip = ' title='.$lang->pln_input_not_allow.' ';} {@ $wrkfld_btn = ' '.$lang->pln_closed_resv2;} {@ $date_tooltip = ' title='.$lang->pln_closed_resv2.' ';} {@ $wrkfld_btn = ' ';} {@ $date_tooltip = ' title='.$lang->pln_resv2.' ';} {@ $date_tooltip = ' title='.$lang->pln_write.' ';} {@ $wrkfld_link = '';} {@ $wrkfld_link = "".$wrkfld_weekNo.$wrkfld_dt.$wrkfld_btn.$wrkfld_lunar.$wrkfld_islam.$wrkfld_24term.$wrkfld_iljin.$wrkfld_memday_top.$wrkfld_holiday_top."";} {@ $wrkfld_url = $daylinkpath."&act=dispBoardWrite";// 일자 클릭시 쓰기로 이동 $wrkfld_url .= "&extra_vars1=".$Calmain_YY.substr("0".$Calmain_MM,-2).substr("0".$Calmain_DD,-2);// 일정시작 확장변수 값 } {@ $wrkfld_class = ' diff_month';} {@ $wrkfld_class = '';} {@ $wrkfld_link = "" .$wrkfld_weekNo.$wrkfld_dt.$wrkfld_btn.$wrkfld_lunar.$wrkfld_islam.$wrkfld_24term.$wrkfld_iljin.$wrkfld_memday_top.$wrkfld_holiday_top."";} {@ $outtext = " ".$wrkfld_link." ";} {@ $outtext = " ".$wrkfld_link." ";} {@ $tbl_html .= $outtext; //날자영역 출력} {@ $tbl_html .= " ";} {@ $tbl_html .= " ";} {@ $tmparr7=explode("|Ø|",$val);} {@ $_doc_status = $tmparr7[18]; //(V541)} {@ $lplan_state = null;} {@ $arr_icon = explode(",",$tmparr7[4]);} {@ $icon_folder = "";} {@ $icon_folder = "client/";} {@ $icon_folder = "manager/";} {@ $lplan_state .= "";} {@ $tmp_arr=explode(",",$tmparr7[10]);// 카테고리사용여부 및 색상적용옵션: v530 일부조정 $ind_use_category = $tmp_arr[0];// board 의 카테고리 사용여부 $ind_bgcolor_option = $tmp_arr[1];// board 의 카테고리 배경색 사용옵션 $ind_display_category = $tmp_arr[2];// board 의 카테고리명 출력여부 $ind_display_selectedtime = $tmp_arr[3];// board 의 선택시간 출력여부 } {@ $tmp_color_chr = '';} {@ //$tmp_color_chr = $tmparr7[6]; //분류색적용 불필요할듯...} {@ $tmp_color_chr = '';} {@ $lplan_cat = "[".$tmparr7[5]."] ";} {@ $lplan_cat = "[".$tmparr7[5]."]";} {@ $lplan_cat = "";} {@ $title_time = null;// 제목에표시할 시간값 $time_start =null;// 일정 시작시간 $time_end = null;// 일정 종료시간 $time_disply_fld = null;// 툴팁에표시할 시간값 $tmp_time = null; } {@ $tmp_time = explode(",",$tmparr7[8]);} {@ $title_time = $tmp_time[0]." "; $time_start = $tmp_time[0]; $time_end = trim($tmp_time[count($tmp_time)-1]); $time_disply_fld = "[".$tmparr7[8]."] ";//선택내용 전부 } {@ $title_time = $tmp_time[0]." "; $time_start = $tmp_time[0]; $time_end = trim($tmp_time[count($tmp_time)-1]); } {@ $time_disply_fld = "[".$time_start."-"."] ";} {@ $time_disply_fld = "[".$time_start."-".$time_end."] ";} {@ $title_time = "".$title_time."";} {@ $title_time = null;// 시간값 제거} {@ $tooltip_desc = $time_disply_fld.$tmparr7[2];} {@ $tooltip_desc = $time_disply_fld.$tmparr7[2];} {@ $tooltip_desc = $time_disply_fld.$tmparr7[2];} {@ $title_disp = $tmparr7[0]; // 출력될 일정 제목} {@ $id_overflow = "overflow:hidden; height:14px;";} {@ $id_overflow = "";} {@ $tmparr7[3] = "transparent";} {@ $tmp_style = "style='clear:both; background-color:".$tmparr7[3]."; ".$id_overflow."'"; $tmp_style1_0 = "style='background-color:".$tmparr7[3]."; '"; $tmp_style1_1 = "style='padding:2px 0 0 2px; background-color:".$tmparr7[3]."; border:medium double #FFFFFF;'"; $tmp_style2 = "style='vertical-align:top; background-color:".$tmparr7[3].";'"; } {@ $tmp_style = "style='clear:both; color:".$tmparr7[3]."; ".$id_overflow."'"; $tmp_style1_0 = "style='color:".$tmparr7[3]."; '"; $tmp_style1_1 = "style='padding:2px 0 0 2px; color:".$tmparr7[3]."; border:medium double ".$tmparr7[3].";'"; $tmp_style2 = "style='vertical-align:top; color:".$tmparr7[3].";'"; } {@ $tmparr7[6] = "transparent";} {@ $fontcolor = ''; //(V540에서 whitesmoke 제거) $tmp_style = "style='clear:both; color:".$fontcolor."; background-color:".$tmparr7[6]."; ".$id_overflow."'"; $tmp_style1_0 = "style='color:".$fontcolor."; background-color:".$tmparr7[6]."; '"; $tmp_style1_1 = "style='padding:2px 0 0 2px; color:".$fontcolor."; background-color:".$tmparr7[6]."; border:medium double #FFFFFF;'"; $tmp_style2 = "style='vertical-align:top; color:".$fontcolor."; background-color:".$tmparr7[6].";'"; } {@ $tmp_style = "style='clear:both; color:".$tmparr7[6]."; ".$id_overflow."'"; $tmp_style1_0 = "style='color:".$tmparr7[6]."; '"; $tmp_style1_1 = "style='padding:2px 0 0 2px; color:".$tmparr7[6]."; border:medium double ".$tmparr7[6].";'"; $tmp_style2 = "style='vertical-align:top; color:".$tmparr7[6].";'"; } {@ $tmparr7[3] = "transparent";} {@ $tmp_style = "style='clear:both; background-color:".$tmparr7[3]."; ".$id_overflow."'"; $tmp_style1_0 = "style='background-color:".$tmparr7[3]."; '"; $tmp_style1_1 = "style='padding:2px 0 0 2px; background-color:".$tmparr7[3]."; border:medium double #FFFFFF;'"; $tmp_style2 = "style='vertical-align:top; background-color:".$tmparr7[3].";'"; } {@ $temp_html = ""."".""."".$lplan_cat.$title_disp.$tmparr7[11]."".""."";} {@ $temp_html = ""."".""."".$lplan_cat.$title_disp.$tmparr7[11]."".""."";} {@ $temp_html = ""."".$lplan_state.$lplan_cat.$title_time.$title_disp.$tmparr7[11].""."";} {@ $temp_html = ""."".$lplan_state.$lplan_cat.$title_time.$title_disp.$tmparr7[11].""."";} {@ $schedule_process = "js";} {@ $tbl_html .= " ".$temp_html." ";} {@ $segtype = "a"; $schedule_html[$count_seg]['week'] = $i; //week seq $schedule_html[$count_seg]['weekday'] = $j; //컬럼 순서 $schedule_html[$count_seg]['yymmdd'] = $Calmain[$i][$j]; $schedule_html[$count_seg]['month'] = $Calmain_MM; $schedule_html[$count_seg]['date'] = $Calmain_DD; $schedule_html[$count_seg]['revseq'] = 7-$tmparr7[14]; $schedule_html[$count_seg]['segtype'] = $segtype; $schedule_html[$count_seg]['length'] = $tmparr7[14]; $schedule_html[$count_seg]['image'] = $tmparr7[12]; $schedule_html[$count_seg]['pln_srl'] = $tmparr7[15]; $schedule_html[$count_seg]['pln_start'] = $tmparr7[16]; $schedule_html[$count_seg]['pln_end'] = $tmparr7[17]; $schedule_html[$count_seg]['pln_stime'] = $time_start; $schedule_html[$count_seg]['pln_etime'] = $time_end; $schedule_html[$count_seg]['html'] = $temp_html; $count_seg += 1; } {@ $tbl_html .= " ".$temp_html." ";} {@ $holiday_process = "js";} {@ $temp_html = " ".$tmparr4[0]." ";} {@ $tbl_html .= $temp_html;} {@ $schedule_html[$count_seg]['week'] = $i; //week seq $schedule_html[$count_seg]['weekday'] = $j; //컬럼 순서 $schedule_html[$count_seg]['yymmdd'] = $Calmain[$i][$j]; $schedule_html[$count_seg]['month'] = $Calmain_MM; $schedule_html[$count_seg]['date'] = $Calmain_DD; $schedule_html[$count_seg]['revseq'] = 6; $schedule_html[$count_seg]['segtype'] ="b"; $schedule_html[$count_seg]['length'] = 1; $schedule_html[$count_seg]['image'] = ""; $schedule_html[$count_seg]['pln_srl'] = ""; $schedule_html[$count_seg]['pln_start'] = ""; $schedule_html[$count_seg]['pln_end'] = ""; $schedule_html[$count_seg]['pln_stime'] = ""; $schedule_html[$count_seg]['pln_etime'] = ""; $schedule_html[$count_seg]['html'] = $temp_html; $count_seg += 1; } {@ $tbl_html .= $temp_html;} {@ $temp_html = " ".$tmparr5[0]." ";} {@ $tbl_html .= $temp_html;} {@ $schedule_html[$count_seg]['week'] = $i; //week seq $schedule_html[$count_seg]['weekday'] = $j; //컬럼 순서 $schedule_html[$count_seg]['yymmdd'] = $Calmain[$i][$j]; $schedule_html[$count_seg]['month'] = $Calmain_MM; $schedule_html[$count_seg]['date'] = $Calmain_DD; $schedule_html[$count_seg]['revseq'] = 6; $schedule_html[$count_seg]['segtype'] ="c"; $schedule_html[$count_seg]['length'] = 1; $schedule_html[$count_seg]['image'] = ""; $schedule_html[$count_seg]['pln_srl'] = ""; $schedule_html[$count_seg]['pln_start'] = ""; $schedule_html[$count_seg]['pln_end'] = ""; $schedule_html[$count_seg]['pln_stime'] = ""; $schedule_html[$count_seg]['pln_etime'] = ""; $schedule_html[$count_seg]['html'] = $temp_html; $count_seg += 1; } {@ $tbl_html .= $temp_html;} {@ $temp_html = " ".$lang->pln_off_day." ";} {@ $tbl_html .= $temp_html;} {@ $tbl_html .= " ";} {@ $tbl_html .= " ";} {@ $tbl_html .= "\n";} {@ $tbl_html .= "
\n";} {@ $tbl_html .= "
";} {@ $tbl_html .= "

";} {@ echo $tbl_html} {@ $tbl_html = NULL;}
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.
{@ $schedule_html = planner123_widget_main::fn_array_orderby($schedule_html, 'segtype', SORT_ASC, 'date', SORT_ASC, 'revseq', SORT_ASC, 'pln_stime', SORT_ASC, 'pln_srl', SORT_DESC);} {@ require_once($widget_path.'function/class.services_JSON.php');// 위젯 $json = new Services_JSON; $schedule_html_json = $json->encode($schedule_html); } {@ $schedule_html_json = json_encode($schedule_html);}