{$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 >
{@ $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)}
{@ $tbl_html .= "

";// 달력 $tbl_html .= "
"; $tbl_html .= "
"; $tbl_html .= " Sun "; $tbl_html .= " | Mon "; $tbl_html .= " | Tue "; $tbl_html .= " | Wed "; $tbl_html .= " | Thu "; $tbl_html .= " | Fri "; $tbl_html .= " | Sat "; $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]);//음력날자 } {@ $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차 "|#Ø#|",로 분리 } {@ $outtext = " ";} {@ $outtext = " ";} {@ $tmp_dsp_mmdd = $Calmain_MM."/".$Calmain_DD;} {@ $tmp_dsp_mmdd = $Calmain_DD;} {@ $tmpfld = "".$tmp_dsp_mmdd."";} {@ $tmpfld = "".$tmp_dsp_mmdd."";} {@ $tmpfld = "".$tmp_dsp_mmdd."";} {@ $is_offday = FALSE; // clear} {@ $is_offday = in_array(strval($j), $dft_offday);} {@ if($dft_holiday[$Calmain_MM][$Calmain_DD] != "") $is_offday = TRUE; //default holiday} {@ $templink = "".$tmpfld."";} {@ $write_ymd = $Calmain_YY.substr('0'.$Calmain_MM,-2).substr('0'.$Calmain_DD,-2);// '-' 제거 일정시작 확장변수 값 $templink = getUrl('act','dispBoardWrite','document_srl','','extra_vars1',$write_ymd);// 일자 클릭시 쓰기로 } {@ $templink = "".$tmpfld."";} {@ $templink = "".$tmpfld."";} {@ $outtext .= " ".$templink;} {@ $outtext .= " "."".$tmpfld_lunar."";} {@ $outtext .= " "."".$tmpfld_lunar."";} {@ $outtext .= " ";// end date_label $tbl_html .= $outtext; $outtext = null; } {@ $tbl_html .= " ";} {@ $tbl_html .= " ";} {@ $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 .= "";} {@ $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];} {@ $id_overflow = "overflow:hidden; height:14px;";} {@ $id_overflow = "";} {@ $tmparr7[3] = $tmparr7[6] = "#77CC00";} {@ $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].";'"; } {@ $color_chr = 'whitesmoke'; //$color_chr = 'black'; $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].";'"; } {@ $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 = ""."".""."".$title_disp.$tmparr7[9]."".""."";} {@ $temp_html = ""."".""."".$title_disp.$tmparr7[9]."".""."";} {@ $temp_html = " "."".$lplan_state.$title_time." ".$title_disp.$tmparr7[9].""."";} {@ $temp_html = " "."".$lplan_state.$title_time." ".$title_disp.$tmparr7[9].""."";} {@ $temp_html = "".""."".$lplan_state.$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; $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; $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; $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 .= "

";} {$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);}