{$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()} {@ $holiday_cnt_code = $widget_info->holiday_country_code; //휴일 국가 $holiday_cnt_arr = $widget_info->holiday_country_arr; $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;// 클리어 하지 않으면 스킨의 일정내용이 같이 들어옴:(전역변수?) } {@ $day_bgcolor="transparent";} {@ $day_bgcolor=$widget_info->bg_color;} {@ $pOption_2 = $widget_info->pOption_2;// M=월 단위, W1,W2 =주단위 출력 $pTimeSchedule = $widget_info->pTimeSchedule;// 타임스케줄 테이블 출력 $ind_weekly_base = $widget_info->weekly_base; // 당일부터 달력시작 옵션 $today_stamp = $widget_info->pTodaystamp;// 당일 타임스탬프 $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);// 달력일자 $Holiday = $widget_info->Holiday_arr;// 휴일 $Memday = $widget_info->Memday_arr;// 기념일 $option_view_arr = $widget_info->option_view_arr;// option에 따라 음력, 휴일, 기념일등 구하기 $count = count($option_view_arr); } {@ $ind_lunar_all = ""; $ind_lunar = "Y"; $Lunarday = planner123_widget_main::fn_sol2lun_ary($dispStart_stamp,$dispEnd_stamp);// 음력일자 } {@ $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_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;} {@ $plan_reply = $oDocument->getCommentCount();} {@ $plan_reply = null;} {@ $plan_start = $oDocument->getExtraValue(1);// 확장변수값 얻기 $plan_end = $oDocument->getExtraValue(2); $plan_bgcolor = $oDocument->getExtraValue(3); $plan_flagicon = $oDocument->getExtraValueHTML(4);// , 로구분 $plan_repeat_cycle = $oDocument->getExtraValue(5); $plan_repeat_unit = $oDocument->getExtraValue(6); $plan_time = $oDocument->getExtraValueHTML(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;} {@ $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 = 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, $Holiday); //V410 휴일추가;} {@ $plan_length = 1;} {@ $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."|Ø|".$ind_image_diary."|Ø|".$plan_length."|Ø|".$plan_docsrl."|Ø|".$plan_start."|Ø|".$plan_end;}

{$widget_info->title}

{$pMon} {$pYear}
style ="width:75%; float:left;"style ="width:75%; float:right;" >{date('M j Y', $dispStart_stamp)." - ".date('M j Y', $dispEnd_stamp)}
style ="float:right;"style ="float:left;" > < T-W >
< {$i} T-Mon >
{@ $weekcount = count($Calmain);} {@ $Calmain[$i][$j]=null;} {@ $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]; $Calmain_yymmdd = $Calmain_YY.$Calmain_MM.$Calmain_DD; $today_yymmdd = $todayYY.$todayMM.$todayDD; } {@ $tmparr_lunar=explode("-",$Lunarday[$Calmain_MM][$Calmain_DD]);}{@ $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].")";//이슬람력날자 } {@ $tmparr2=explode("-",$GanjiJeolki[$Calmain_MM][$Calmain_DD]);} {@ $tmparr2=explode("-",$GanjiJeolki_2[$Calmain_MM][$Calmain_DD]);} {@ $tmparr4=explode("-",$Holiday[$Calmain_MM][$Calmain_DD]);// 공휴일 $tmparr5=explode("-",$Memday[$Calmain_MM][$Calmain_DD]);// 기념일 $tmparr6=explode("|#Ø#|",$arr_plan[$Calmain_MM][$Calmain_DD]);// 일정/플랜 1차 "|#Ø#|",로 분리 } {@ $label_mm = $Calmain_MM."/";} {@ $label_mm = '';} {@ $tmpfld = "".$label_mm.$Calmain_DD."";} {@ $tmpfld = "".$label_mm.$Calmain_DD."";} {@ $tmpfld = "".$label_mm.$Calmain_DD."";} {@ $templink = "".$tmpfld."";} {@ $templink = $daylinkpath."&act=dispBoardWrite";// 일자 클릭시 쓰기로 이동 $templink .= "&extra_vars1=".$Calmain_YY.substr("0".$Calmain_MM,-2).substr("0".$Calmain_DD,-2);// 일정시작 확장변수 값 } {@ $templink = "".$tmpfld."";} {@ $templink = "".$tmpfld."";} {@ $tmpfldw = "Sun";} {@ $tmpfldw = "Mon";} {@ $tmpfldw = "Tue";} {@ $tmpfldw = "Wed";} {@ $tmpfldw = "Thu";} {@ $tmpfldw = "Fri";} {@ $tmpfldw = "Sat";} {@ $outtext = "";} {@ $outtext = null;} {@ $outtext .= "
  • ".$tmparr4[0]."
  • ";} {@ $outtext .= " "."".$tmpfld_lunar."";} {@ $outtext .= " "."".$tmpfld_lunar."";} {@ $outtext .= " "."".$tmpfld_islamicday."";} {@ $outtext .= " "."".$tmpfld_islamicday."";} {@ $outtext .= " "."".substr($tmparr2[2], 0, 6)."";} {@ $outtext .= " 
  • ".$tmparr2[4]."
  • ";} {@ $outtext = null; $out_html = null; } {@ $tmparr7=explode("|Ø|",$val);} {@ $lplan_cat = (!empty($tmparr7[5]))?"[".$tmparr7[5]."] ":"";} {@ $lplan_state = null;} {@ $arr_icon = explode(",",$tmparr7[4]);} {@ $icon_folder = "";} {@ $icon_folder = "client/";} {@ $icon_folder = "manager/";} {@ $lplan_state .= "";} {@ $lplan_reply ="[".$tmparr7[7]."]";} {@ $lplan_reply =null;} {@ $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]); $tmp_etime_arr = explode(':',$time_end); $ind_interval = $module_info->time_interval;//시간간격 $time_end = date('H:i', mktime($tmp_etime_arr[0],$tmp_etime_arr[1]+$ind_interval,-1,1,1,2011)); $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."] ";} {@ $tmp_etime_arr = explode(':',$time_end); $ind_interval = $module_info->time_interval;//시간간격 $time_end = date('H:i', mktime($tmp_etime_arr[0],$tmp_etime_arr[1],-1,1,1,2011)); } {@ $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];} {@ $tmp_arr=explode(",",$tmparr7[10]);// 카테고리사용여부 및 색상적용옵션 $ind_use_category = $tmp_arr[0];// board 의 카테고리 사용 여부 $ind_bgcolor_option = $tmp_arr[1];// board 의 카테고리 배경색사용 옵션 } {@ $tmp_style = "style='clear:both; background-color:".$tmparr7[3]."; '"; $tmp_style1_0 = "style='float:left; background-color:".$tmparr7[3]."; '"; $tmp_style1_1 = "style='padding:5px 0 0 5px; background-color:".$tmparr7[3]."; border:medium double #FFFFFF;'"; $tmp_style2 = "style='background-color:".$tmparr7[3].";'"; } {@ $tmp_style = "style='clear:both; color:".$tmparr7[3]."; '"; $tmp_style1_0 = "style='float:left; color:".$tmparr7[3]."; '"; $tmp_style1_1 = "style='padding:5px 0 0 5px; color:".$tmparr7[3]."; border:medium double ".$tmparr7[3].";'"; $tmp_style2 = "style='color:".$tmparr7[3].";'"; } {@ $fontcolor = 'whitesmoke'; $tmp_style = "style='clear:both; color:".$fontcolor."; background-color:".$tmparr7[6]."; '"; $tmp_style1_0 = "style='float:left; color".$fontcolor."; background-color:".$tmparr7[6]."; '"; $tmp_style1_1 = "style='padding:5px 0 0 5px; color:".$fontcolor."; background-color:".$tmparr7[6]."; border:medium double #FFFFFF;'"; $tmp_style2 = "style='color:".$fontcolor."; background-color:".$tmparr7[6].";'"; } {@ $tmp_style = "style='clear:both; color:".$tmparr7[6]."; '"; $tmp_style1_0 = "style='float:left; color:".$tmparr7[6]."; '"; $tmp_style1_1 = "style='padding:5px 0 0 5px; color:".$tmparr7[6]."; border:medium double ".$tmparr7[6].";'"; $tmp_style2 = "style='color:".$tmparr7[6].";'"; } {@ $tmp_style = "style='clear:both; background-color:".$tmparr7[3]."; '"; $tmp_style1_0 = "style='float:left; background-color:".$tmparr7[3]."; '"; $tmp_style1_1 = "style='padding:5px 0 0 5px; background-color:".$tmparr7[3]."; border:medium double #FFFFFF;'"; $tmp_style2 = "style='background-color:".$tmparr7[3].";'"; } {@ $out_text = " ".$time_disply_fld.$title_disp." ".$lplan_cat.$lplan_state.$lplan_reply.$tmparr7[11]."
    ";} {@ $out_text = " ".$time_disply_fld.$title_disp." ".$lplan_cat.$lplan_state.$lplan_reply.$tmparr7[11]."
    ";} {@ $out_text = " ".$time_disply_fld.$title_disp." ".$lplan_cat.$lplan_state.$lplan_reply.$tmparr7[11]."
    ";} {@ $out_html .= $out_text."
    ".$tmparr7[2]."
    ";} {@ $out_html .= $out_text;} {@ $temp_html = "
    ".$lplan_state." ".$title_time." ".$title_disp.$tmparr7[11]."
    ";} {@ $schedule_process = "js";} {@ $segtype = "a"; $schedule_html[$count_seg]['week'] = $i; $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; } {@ $ind_ua = planner123_widget_main::fn_get_USER_AGENT();} {@ $out_html = null;} {@ $holiday_process = "js";} {@ $temp_html = "
    ".$tmparr4[0]."
    ";} {@ $schedule_html[$count_seg]['week'] = $i; $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; } {@ $out_html = "
  • ".$tmparr5[0]."
  • ";} {@ $out_html = null;} {@ $out_html = null;}
    Date
    Schedule
    Note
    {$outtext}
      {$outtext}
    {$out_html} {$out_html} {$out_html}
    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_time', 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);}