{@ $adjust_title_color = $module_info->adjust_title_color;} {@ $theme_name = $module_info->user_colorset;} {@ $oTemplate = &TemplateHandler::getInstance();} {@ print $oTemplate->compile($tpl_path.'colorset/', $theme_name.'.html');} {@ $tmp_cartegory[$val->title] = array('title' => $val->title, 'category_srl' => $val->category_srl, 'color' => $val->color, 'grant' => $val->grant, 'selected' => $val->selected, 'document_count' => $val->document_count, 'depth' => $val->depth)} {@ ksort($tmp_cartegory)}
{@ $weekDayTitle_arr = explode(",",$lang->pln_calendar_header);// 요일 이름(V500) } {@ $th_width_arr = array('14%', '14%', '14%', '14%', '14%', '14%', '14%');//디폴트:14%(일,월,화....토) } {@ $th_width_arr= explode(",",$module_info->column_width);//입력 값 } {@ $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("-",$Holiday[$Calmain_MM][$Calmain_DD]);// 공휴일 $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_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."";} {@ $write_ymd = $Calmain_YY.substr('0'.$Calmain_MM,-2).substr('0'.$Calmain_DD,-2);// '-' 제거 일정시작 확장변수 값 $wrkfld_url = getUrl('act','dispBoardWrite','document_srl','','extra_vars1',$write_ymd);// 일자 클릭시 쓰기로 } {@ $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[17]; // 일정 상태표시 (V541) } {@ $tmp_color_chr = '';} {@ //$tmp_color_chr = $tmparr7[6]; //분류명에 분류색적용 불필요할듯...} {@ $tmp_color_chr = '';} {@ $lplan_cat = "[".$tmparr7[5]."] ";} {@ $lplan_cat = "[".$tmparr7[5]."]";} {@ $lplan_cat = "";} {@ $ind_shared_plan = array_key_exists($tmparr7[12] , $shared_doc_srl);// V530:공유일정} {@ $lplan_state = null;} {@ $arr_icon = explode(",",$tmparr7[4]);} {@ $icon_folder = "";} {@ $icon_folder = "client/";} {@ $icon_folder = "manager/";} {@ $lplan_state .= "";} {@ $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)); } {@ $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] = $tmparr7[6] = "#77CC00";} {@ $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";} {@ $color_chr = ''; //(V540에서 whitesmoke 제거) $tmp_style = "style='clear:both; color:".$color_chr."; background-color:".$tmparr7[6]."; ".$id_overflow."'"; $tmp_style1_0 = "style='color:".$color_chr."; background-color:".$tmparr7[6]."; '"; $tmp_style1_1 = "style='padding:2px 0 0 2px; color:".$color_chr."; background-color:".$tmparr7[6]."; border:medium double #FFFFFF;'"; $tmp_style2 = "style='vertical-align:top; color:".$color_chr."; 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].";'"; } {@ $blink_class = 'blink_me';} {@ $blink_class = '';} {@ $temp_html = ""."".""."".$lplan_cat.$title_disp.$tmparr7[9]."".""."";} {@ $temp_html = ""."".""."".$lplan_cat.$title_disp.$tmparr7[9]."".""."";} {@ $temp_html = " "."".$lplan_state.$lplan_cat.$title_time.$title_disp.$tmparr7[9].""."";} {@ $temp_html = " "."".$lplan_state.$lplan_cat.$title_time.$title_disp.$tmparr7[9].""."";} {@ $temp_html = "".""."".$lplan_state.$lplan_cat.$title_time.$title_disp."";} {@ $temp_html .= "".$title_disp.$tmparr7[9]."";} {@ $temp_html .= "".$title_disp."";} {@ $temp_html .= ""."";} {@ $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[11]; $schedule_html[$count_seg]['segtype'] = $segtype; $schedule_html[$count_seg]['length'] = $tmparr7[11]; $schedule_html[$count_seg]['image'] = $tmparr7[10]; $schedule_html[$count_seg]['pln_srl'] = $tmparr7[12]; $schedule_html[$count_seg]['pln_start'] = $tmparr7[13]; $schedule_html[$count_seg]['pln_end'] = $tmparr7[14]; $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}
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.
{@$write_ymd = date('Y',$wrk_timestamp).date('m',$wrk_timestamp).date('d',$wrk_timestamp)}
{$lang->cmd_write}
{@ $schedule_html = planner123_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($skinpath.'function/class.services_JSON.php');} {@ $json = new Services_JSON; $schedule_html_json = $json->encode($schedule_html); } {@ $schedule_html_json = json_encode($schedule_html);}