{@ $XE_version = __ZBXE_VERSION__;} {@ $var_version = "PlannerXE123: Skin Ver 3.7.1"} {@ $ind_mobile = true } {@ 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 } {@ $linkpath = getUrl('','mid',$mid,'dummy',1,'offset',$offset)} {@ $skinpath = $tpl_path;} {@ $XE_path = getUrl('')} {@ $today_bgcolor="#CDE6AC"} {@ $today_bodercolor="#58792E"} {@ $obj=null} {@ $arr_plan=null} {@ $day_bgcolor="white"} {@ $day_bgcolor=$module_info->calendar_bgcolor} {@ require_once($skinpath.'function/class.planner123_main.php');} {@ $args->module_srl = $module_info->module_srl;} {@ $args->var_idx = 1;} {@ $tmp_output = executeQuery('document.getDocumentExtraKeys', $args);} {@ planner123_main::fn_install_extra_keys($module_info->module_srl);} {@ $ind_holiday_country = $module_info->holiday_country;} {@ $holiday_filename = planner123_main::fn_getHolidayFileName($skinpath,$ind_holiday_country);} {@ require_once($skinpath.'function/'.$holiday_filename);} {@ $server_timestamp = mktime(date("H"), date("i"), date("s"), date("m"), date("d"), date("Y"));} {@ $server_offset = date("Z");} {@ $xe_timestamp = planner123_main::fn_xetimestamp();} {@ $xe_offset = date("Z")+zgap();} {@ $client_offset = Context::get('offset');} {@ $client_timestamp = mktime(date("H"), date("i"), date("s")-date("Z")+$client_offset, date("m"), date("d"), date("Y"));} {@ $display_timestamp = $xe_timestamp;} {@ $wrk_timestamp = $display_timestamp;} {@ $wrk_timestamp = $client_timestamp;} {@ $pYear = date("Y", $wrk_timestamp);} {@ $pMonth = date("n", $wrk_timestamp);} {@ $pMon = date("F", $wrk_timestamp);} {@ $pDay = date("j", $wrk_timestamp);} {@ $tmp_feb_lastday = date('t', mktime(0,0,0,$pMonth,1,$pYear));} {@ $pDay = $tmp_feb_lastday;} {@ $pOption=1;} {@ $pYear =date("Y", mktime(0, 0, 0, $pMonth, 1, $pYear));} {@ $pMonth =date("n", mktime(0, 0, 0, $pMonth, 1, $pYear));} {@ $pMon =date("F", mktime(0, 0, 0, $pMonth, 1, $pYear));} {@ $todayYY = date("Y", $wrk_timestamp);} {@ $todayMM = date("n", $wrk_timestamp);} {@ $todayDD = date("j", $wrk_timestamp);} {@ $Calmain = planner123_main::fn_CalMain($pYear,$pMonth);} {@ $Holiday = planner123_holiday::fn_HolidayChk($pYear, $pMonth, $skinpath);} {@ $ind_holiday = "Y";} {@ $Memday = planner123_holiday::fn_MemdayChk($pYear, $pMonth, $skinpath);} {@ $ind_memday = "Y";} {@ $Lunarday = planner123_main::fn_sol2lun_ary($pYear,$pMonth);} {@ $ind_lunar = "Y";} {@ $Lunarday = planner123_main::fn_sol2lun_ary($pYear,$pMonth);} {@ $ind_lunar_all = "Y";} {@ $Islamicday = planner123_main::fn_getIslamic_ary($pYear,$pMonth);} {@ $ind_islamic = "Y";} {@ $Islamicday = planner123_main::fn_getIslamic_ary($pYear,$pMonth);} {@ $ind_islamic_all = "Y";} {@ $ind_use_category = $module_info->use_category;} {@ $ind_bgcolor_option = $module_info->use_category_bgcolor;} {@ $ind_image_diary = $module_info->image_diary;} {@ $ind_complete_doc = $module_info->display_complete_doc;} {@ $ind_duplicated_schedule = $module_info->duplicated_schedule;} {@ $ind_repeat_style = $module_info->repeat_style;} {@ $tempmonth = substr("0".$pMonth, -2);} {@ $list_count = $module_info->list_count;} {@ $page_count = $module_info->page_count;} {@ $obj->var_search_title = $search_keyword;} {@ $obj->var_search_content = $search_keyword;} {@ $obj->var_search_content = $search_keyword;} {@ $obj->var_search_user_name = $search_keyword;} {@ $obj->var_search_nick_name = $search_keyword;} {@ $obj->var_search_user_id = $search_keyword;} {@ $obj->var_search_tags = $search_keyword;} {@ $obj->var_search_extra_idx = substr($search_target, strlen('extra_vars'));} {@ $obj->var_search_extra_value = str_replace(' ','%',$search_keyword);} {@ $tmp_category = Context::get('category_list');} {@ $tmp_category = array();} {@ $wrk_var_category_srl = "0";} {@ $wrk_var_category_srl .= ",".$val->category_srl;} {@ $obj->var_category_srl = $val->category_srl;} {@ $obj->var_category_srl = $wrk_var_category_srl;} {@ $module_srl = $module_info->module_srl;} {@ $module_name = $module_info->module;} {@ $member_temp_name = $logged_info->nick_name;} {@ $member_srl = $logged_info->member_srl;} {@ $group_list = $logged_info->group_list;} {@ $usergroup_arr = array();} {@ $obj->var_member_srl = $member_srl;} {@ $group_titles .= ",".$val;} {@ $group_titles=substr($group_titles,1);} {@ $usergroup_arr = explode(",",$group_titles);} {@ $obj->site_srl = '';} {@ $obj->module_srl = $module_info->module_srl;} {@ $obj->sort_index_1 = 'extra_value_end';} {@ $obj->order_type_1 = 'desc';} {@ $obj->sort_index_default_1 = 'extra_value_start';} {@ $obj->sort_index_2 = 'extra_value_time';} {@ $obj->order_type_2 = 'asc';} {@ $obj->sort_index_default_2 = 'extra_value_time';} {@ $obj->sort_index = $module_info->order_target;} {@ $obj->order_type = $module_info->order_type;} {@ $obj->sort_index_default = 'list_order';} {@ $obj->list_count = $list_count*10;} {@ $obj->page_count = $page_count;} {@ $obj->var_idx1 = '1';} {@ $obj->var_idx2 = '2';} {@ $obj->var_idx7 = '7';} {@ $obj->var_idx8 = '8';} {@ $obj->var_period_start = $pYear.$tempmonth."01";} {@ $obj->var_period_end = $pYear.$tempmonth."31";} {@ $obj->var_fld_null = null;} {@ $query_path = $module_info->module."/skins/".$module_info->skin;} {@ $view_group = $module_info->default_document_group;} {@ $output = executeQueryArray($query_path.'.getDocumentsForPlanner_all', $obj);} {@ $output = executeQueryArray($query_path.'.getDocumentsForPlanner_own', $obj);} {@ $output = executeQueryArray($query_path.'.getDocumentsForPlanner_own', $obj);} {@ $output = executeQueryArray($query_path.'.getDocumentsForPlanner_group', $obj);} {@ $output = executeQueryArray($query_path.'.getDocumentsForPlanner_group_15', $obj);} {@ $output = executeQueryArray($query_path.'.getDocumentsForPlanner_nonSec', $obj);} {@ $output = executeQueryArray($query_path.'.getDocumentsForPlanner_nonSec_15', $obj);} {@ $output = executeQueryArray($query_path.'.getDocumentsForPlanner_all', $obj);} {@ $output = executeQueryArray($query_path.'.getDocumentsForPlanner_all', $obj);} {@ $tmp_document_srl = $attribute->document_srl;} {@ $tmp_Document = null;} {@ $tmp_Document = new documentItem();} {@ $tmp_Document->setAttribute($attribute, false);} {@ $tmp_Document->category_srl = $attribute->category_srl;} {@ $tmp_opengroup_arr = explode("|@|",$attribute->extra_value_group);} {@ $tmp_document_list[$key] = $tmp_Document;} {@ $tmp_document_list[$key] = $tmp_Document;} {@ $tmp_document_list[$key] = $tmp_Document;} {@ $tmp_document_list[$key] = $tmp_Document;} {@ $tmp_document_list[$key] = $tmp_Document;} {@ $tmp_flag = null;} {@ $tmp_group_01 = $tmp_opengroup_arr[0];} {@ $tmp_flag = "*";} {@ $tmp_flag = "*";} {@ $tmp_flag = "*";} {@ $tmp_flag = "*";} {@ $tmp_document_list[$key] = $tmp_Document;} {@ $tmp_flag = "";} {@ $tmp_flag = "*";} {@ $tmp_flag = "*";} {@ $tmp_document_list[$key] = $tmp_Document;} {@ $tmp_document_list = array();} {@ Context::set('document_list', $tmp_document_list);} {@ $oDocumentModel = &getModel('document');} {@ $oDocumentModel->setToAllDocumentExtraVars();} {@ $category_color = $category_list[$document->get('category_srl')]->color} {@ $category_title = $category_list[$document->get('category_srl')]->title} {@ $category_color = null} {@ $category_title = null} {@ $plan_reply = $document->getCommentCount()} {@ $plan_reply = null} {@ $plan_title = $document->getTitle($module_info->subject_cut_size)} {@ $plan_detail = $document->getSummary($module_info->content_cut_size)} {@ $plan_doc_extra_vars = $document->get('extra_vars')} {@ $plan_docsrl = $document->document_srl} {@ $plan_url = getUrl('document_srl',$document->document_srl)} {@ $plan_new = $document->printExtraImages(60*60*$module_info->duration_new)} {@ $plan_img = null} {@ $plan_img = $document->getThumbnail($module_info->thumbnail_width, $module_info->thumbnail_height, $module_info->thumbnail_type)} {@ $plan_start = $document->getExtraValue(1)} {@ $plnstartYY = substr($plan_start,0,4)} {@ $plnstartMM = substr($plan_start,4,2)} {@ $plnstartDD = substr($plan_start,6,2)} {@ $plnstartMM = ltrim( $plnstartMM, "0" );} {@ $plnstartDD = ltrim( $plnstartDD, "0" );} {@ $plan_end = $document->getExtraValue(2)} {@ $plan_end = $plan_start} {@ $plnendYY = substr($plan_end,0,4)} {@ $plnendMM = substr($plan_end,4,2)} {@ $plnendDD = substr($plan_end,6,2)} {@ $plnendMM = ltrim( $plnendMM, "0" );} {@ $plnendDD = ltrim( $plnendDD, "0" );} {@ $plan_bgcolor = $document->getExtraValueHTML(3)} {@ $plan_flagicon = $document->getExtraValueHTML(4)} {@ $plan_repeat_cycle = $document->getExtraValueHTML(5)} {@ $plan_repeat_unit = $document->getExtraValueHTML(6)} {@ $plan_time = $document->getExtraValueHTML(7)} {@ $plnendYY = $pYear;} {@ $plnendMM = $pMonth;} {@ $plnendDD = 31;} {@ $plnstartYY = $pYear;} {@ $plnstartMM = $pMonth;} {@ $plnstartDD = 1;} {@ $plnstartYY = $pYear;} {@ $plnstartMM = $pMonth;} {@ $plnstartDD = 1;} {@ $plnendYY = $pYear;} {@ $plnendMM = $pMonth;} {@ $plnendDD = 31;} {@ $plan_detail = str_replace("'", "`", $plan_detail);} {@ $plan_detail = str_replace("\"", """, $plan_detail);} {@ $_doc_extra_vars = explode(";", $plan_doc_extra_vars);} {@ $_doc_extra_vars1 = explode(":", $_doc_extra_vars[0]);} {@ $_doc_status = str_replace("\"", "", $_doc_extra_vars1[2]);} {@ $plan_title = "".$plan_title."";} {@ $arr_repeat = planner123_main::fn_repeat_schedule($pYear, $pMonth, $plan_start, $plan_end, $plan_repeat_cycle, $plan_repeat_unit);} {@ $j_temp = $j;} {@ $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_new."|Ø|".$plan_img."|Ø|".$plan_length."|Ø|".$plan_docsrl."|Ø|".$plan_start."|Ø|".$plan_end;} {@ $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_new."|Ø|".$plan_img."|Ø|".$plan_length."|Ø|".$plan_docsrl."|Ø|".$plan_start."|Ø|".$plan_end;}
{$pMon} {$pYear}
{@ $tmp_cartegory[$val->title] = array('title' => $val->title, 'category_srl' => $val->category_srl, 'color' => $val->color)}
{@ $label_cat_all="분류전체"}{@ $label_cat_all="ALL"} {@ 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 .= "
";} {@ $tbl_html .= "";} {@ $tbl_html .= " | ";} {@ $tbl_html .= " | ";} {@ $tbl_html .= " ";} {@ $tmpfld_1 = null;} {@ $outtext = null;} {@ $k = $Calmain[$i][$j];} {@ $Calmain[$i][$j]=null;} {@ $tbl_html .= " ";} {@ $tbl_html .= " ";} {@ $tempday=$Calmain[$i][$j];} {@ $tmparr_lunar=explode("-",$Lunarday[$pMonth][$Calmain[$i][$j]]);} {@ $youndal = "윤";}{@ $youndal = null;} {@ $tmpfld_lunar ="(".$youndal.$tmparr_lunar[1]."-".$tmparr_lunar[2].")";} {@ $tmparr_islam=explode("-",$Islamicday[$pMonth][$Calmain[$i][$j]]);} {@ $tmpfld_islamicday ="(".$tmparr_islam[1]."-".$tmparr_islam[2].")";} {@ $tmparr4=explode("-",$Holiday[$pMonth][$Calmain[$i][$j]]);} {@ $tmparr5=explode("-",$Memday[$pMonth][$Calmain[$i][$j]]);} {@ $tmparr6=explode("|#Ø#|",$arr_plan[$pMonth][$Calmain[$i][$j]]);} {@ $outtext = " ";} {@ $outtext = " ";} {@ $tmpfld = "".$Calmain[$i][$j]."";} {@ $tmpfld = "".$Calmain[$i][$j]."";} {@ $tmpfld = "".$Calmain[$i][$j]."";} {@ $templink = "";} {@ $write_ymd = $pYear.$tempmonth.substr("0".$tempday,-2);} {@ $templink = getUrl('act','dispBoardWrite','document_srl','','extra_vars1',$write_ymd);} {@ $templink = "";} {@ $outtext .= " ".$templink.$tmpfld."";} {@ $outtext .= " "."".$tmpfld_lunar."";} {@ $outtext .= " "."".$tmpfld_lunar."";} {@ $outtext .= " "."".$tmpfld_islamicday."";} {@ $outtext .= " "."".$tmpfld_islamicday."";} {@ $outtext .= " ";} {@ $tbl_html .= $outtext;} {@ $outtext = null;} {@ $tbl_html .= " ";} {@ $tbl_html .= " ";} {@ $tmparr7=explode("|Ø|",$val);} {@ $lplan_state = null;} {@ $arr_icon = explode(",",$tmparr7[4]);} {@ $icon_folder = "";} {@ $icon_folder = "client/";} {@ $icon_folder = "manager/";} {@ $lplan_state .= "";} {@ $tmp_time = explode(",",$tmparr7[8]);} {@ $time_disply_fld = "[".$tmparr7[8]."] ";} {@ $time_disply_fld = "[".$tmp_time[0]."-".trim($tmp_time[count($tmp_time)-1])."] ";} {@ $time_disply_fld = "[".$tmp_time[0]."- ] ";} {@ $time_disply_fld = null;} {@ $id_overflow = "overflow:hidden; height:14px;";} {@ $id_overflow = "";} {@ $tmp_style = "style='clear:both; background-color:".$tmparr7[3]."; border-bottom:1px solid #FFFFFF;".$id_overflow."'";} {@ $tmp_style1_0 = "style='background-color:".$tmparr7[3]."; border-bottom:1px solid #FFFFFF;'";} {@ $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]."; border-bottom:1px solid #FFFFFF;".$id_overflow."'";} {@ $tmp_style1_0 = "style='color:".$tmparr7[3]."; border-bottom:1px solid #FFFFFF;'";} {@ $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].";'";} {@ $tmp_style = "style='clear:both; color:whitesmoke; background-color:".$tmparr7[6]."; border-bottom:1px solid #FFFFFF;".$id_overflow."'";} {@ $tmp_style1_0 = "style='color:whitesmoke; background-color:".$tmparr7[6]."; border-bottom:1px solid #FFFFFF;'";} {@ $tmp_style1_1 = "style='padding:2px 0 0 2px; color:whitesmoke; background-color:".$tmparr7[6]."; border:medium double #FFFFFF;'";} {@ $tmp_style2 = "style='vertical-align:top; color:whitesmoke; background-color:".$tmparr7[6].";'";} {@ $tmp_style = "style='clear:both; color:".$tmparr7[6]."; border-bottom:1px solid #FFFFFF;".$id_overflow."'";} {@ $tmp_style1_0 = "style='color:".$tmparr7[6]."; border-bottom:1px solid #FFFFFF;'";} {@ $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]."; border-bottom:1px solid #FFFFFF;".$id_overflow."'";} {@ $tmp_style1_0 = "style='background-color:".$tmparr7[3]."; border-bottom:1px solid #FFFFFF;'";} {@ $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 = " ".$tmparr7[0].$tmparr7[9]." ";} {@ $temp_html = " ".$tmparr7[0].$tmparr7[9]." ";} {@ $temp_html = " ".$lplan_state." ".trim($tmp_time[0])." ".$tmparr7[0].$tmparr7[9]." ";} {@ $temp_html = " ".$lplan_state.trim($tmp_time[0]).$tmparr7[0]."";} {@ $temp_html .= "".$tmparr7[0].$tmparr7[9]."";} {@ $temp_html .= "".$tmparr7[0]."";} {@ $temp_html .= " ";} {@ $schedule_process = "js";} {@ $segtype = "a";} {@ $schedule_html[$count_seg]['week'] = $i;} {@ $schedule_html[$count_seg]['weekday'] = $j;} {@ $schedule_html[$count_seg]['date'] = $k;} {@ $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_time'] = $tmparr7[8];} {@ $schedule_html[$count_seg]['html'] = $temp_html;} {@ $count_seg += 1;} {@ $tbl_html .= $temp_html;} {@ $holiday_process = "js";} {@ $temp_html = " ".$tmparr4[0]." ";} {@ $schedule_html[$count_seg]['week'] = $i;} {@ $schedule_html[$count_seg]['weekday'] = $j;} {@ $schedule_html[$count_seg]['date'] = $k;} {@ $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_time'] = "";} {@ $schedule_html[$count_seg]['html'] = $temp_html;} {@ $count_seg += 1;} {@ $tbl_html .= $temp_html;} {@ $temp_html = " ".$tmparr5[0]." ";} {@ $schedule_html[$count_seg]['week'] = $i;} {@ $schedule_html[$count_seg]['weekday'] = $j;} {@ $schedule_html[$count_seg]['date'] = $k;} {@ $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_time'] = "";} {@ $schedule_html[$count_seg]['html'] = $temp_html;} {@ $count_seg += 1;} {@ $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_multisort( $schedule_html , array('segtype','date','revseq','pln_time'));} {@ 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);}