member_srl;
$__Context->member_srl = $member_srl;
unset($logged_info);
?>
{@ $link_path = getUrl('','mid',$mid,'dummy',1)}
{@ $XE_path = getUrl('')}
{@ $today_bgcolor='#ffff00'}
{@ $day_bgcolor='#f0f8ff'}
{@ $day_bgcolor='#f5f5dc'}
link_path;
$xepath = $__Context->XE_path;
$skinpath = $xepath."modules/sboard/skins/xe_splanner/"; // 스킨 설치 경로지정
//echo "$linkpath
";
//echo "$skinpath
";
?>
12)
{
$pYear++;
$pMonth = 1;
}
if($pMonth < 1)
{
$pYear--;
$pMonth = 12;
}
$Calmain = fn_get_month_sun($pYear,$pMonth); // 달력일자
if($__Context->module_info->plan_lunar != 'N')
$Lunar = fn_get_month_lunar($pYear,$pMonth); // 음력 달력일자
$mm = fn_get_reg_days($pYear,$pMonth,$__Context->module_info->plan_holi_text);
if($__Context->module_info->plan_holi == 'Y')
{
$aMonthHoliday = fn_holidays($pYear, $pMonth); // 휴일
if($mm != null)
{
foreach($mm as $k => $v)
{
$aMonthHoliday[$k] .= $v;
}
unset($mm);
}
} else
{
if($mm != null)
{
$aMonthHoliday = $mm;
unset($mm);
}
}
$mm = fn_get_reg_days($pYear,$pMonth,$__Context->module_info->plan_memo_text);
if($__Context->module_info->plan_memorial == 'Y')
{
$aMonthMemday = fn_get_Memday($pYear, $pMonth); // 기념일
if($mm != null)
{
foreach($mm as $k => $v)
{
$aMonthMemday[$k] .= $v;
}
unset($mm);
}
} else
{
if($mm != null)
{
$aMonthMemday = $mm;
unset($mm);
}
}
if($__Context->module_info->plan_jeolki == 'Y')
$aJeolki = fn_get_jeolki($pYear,$pMonth); // 24절기 초,중,말복 한식 단오
?>
pYear = $pYear;
$tempmonth = substr("0".$pMonth, -2); //월 을 "7" 에서 "07"로
$__Context->tempMonth = $tempmonth;
?>
{@ $planner_document_list = $notice_list}
{@ $planner_document_list = $planner_document_list + $document_list}
{@ $planner_document_list = $document_list}
{@ $category_color = $category_list[$document->get('category_srl')]->color}
{@ $category_title = $category_list[$document->get('category_srl')]->title}
{@ $category_color = null}
{@ $category_title = null}
category_title;
$category_color = $__Context->category_color;
?>
{@ $plan_reply = $document->getCommentCount()}
{@ $plan_reply = null}
plan_reply;
?>
{@ $nickname = $document->getNickName()}
nickname;
?>
{@ $plan_title = $document->getTitle($module_info->subject_cut_size)}
{@ $plan_detail = $document->getSummary($module_info->content_cut_size)}
{@ $plan_start = $document->getPlanSdate()}
{@ $plan_end = $document->getPlanEdate()}
{@ $plan_bgcolor = $document->getPlanBgcolor()}
{@ $plan_check = $document->getPlanCheck()}
{@ $plan_period = $document->get('plan_period')}
{@ $plan_value = $document->get('plan_value')}
{@ $plan_time = $document->get('plan_time')}
{@ $exImg = $document->printExtraImages(60*60*$module_info->duration_new)}
{@ $plan_url = getUrl('document_srl',$document->document_srl, 'listStyle', $listStyle, 'cpage','')}
plan_title;
$plan_detail = $__Context->plan_detail;
$plan_url = $__Context->plan_url;
$plan_start = $__Context->plan_start; // 일정시작
$plan_end = $__Context->plan_end; // 일정종료
$plan_bgcolor = $__Context->plan_bgcolor;
$plan_check = $__Context->plan_check;
$plan_period = $__Context->plan_period;
$plan_value = $__Context->plan_value;
$plan_time = $__Context->plan_time;
$exImg = $__Context->exImg;
//debugPrint($plan_title."\n".$plan_detail."\n".$plan_url."\n".$plan_start."\n".$plan_end."\n".$plan_bgcolor."\n".$plan_check."\n".$plan_period."\n".$plan_value);
?>
면서 당월 이후 종료
if ($plnendYY > $pYear or $plnendYY == $pYear and $plnendMM > $pMonth) {
$plnendYY = $pYear;
$plnendMM = $pMonth;
$plnendDD = 31;
}
}
elseif ($plnstartYY < $pYear or $plnstartYY == $pYear and $plnstartMM < $pMonth) { // 당월 이전 시작 이면서 당월 종료
if ($plnendYY == $pYear and $plnendMM == $pMonth) {
$plnstartYY = $pYear;
$plnstartMM = $pMonth;
$plnstartDD = 1;
}
if ($plnendYY > $pYear or $plnendYY == $pYear and $plnendMM > $pMonth) { // 당월 이전시작 이면서 당월 이후 종료
$plnstartYY = $pYear;
$plnstartMM = $pMonth;
$plnstartDD = 1;
$plnendYY = $pYear;
$plnendMM = $pMonth;
$plnendDD = 31;
}
}
if( $plnstartYY == $pYear and $plnstartMM == $pMonth )
{
$plan_detail = str_replace("'", "`", $plan_detail); // '을 `로 대체 textbox보이기위해
$plan_detail = str_replace("\"", """, $plan_detail); // "를 "로 대체 textbox보이기위해
$plan_detail = str_replace(chr(012), "
", $plan_detail); // LF를 제거 textbox보이기위해
$plan_detail = str_replace(chr(015), "", $plan_detail); // CR을 제거 textbox보이기위해 -줄바꿈
// $plan_detail = strip_tags($plan_detail); // HTML tag 제거 - 줄바꿈 사용않음
//debugPrint("plan: $plan_start $plan_end $plan_period $plnstartDD $plnendDD $plan_value");
if($plan_period)
{
$arr_repeat = fn_repeat_schedule($Calmain, $plan_period, $plan_value, $aMonthHoliday);
}
if($plan_time != null) $plan_time = "(".$plan_time.")";
for ($j = $plnstartDD; $j <= $plnendDD; $j++ ) {
if ( $plan_period==0 || $arr_repeat[$j] == "*") {
$outtext = "
";
if($plan_check)
{
$outtext .= " ";
}
/*
$outtext .= ""."".$nickname.":".$plan_title."".$exImg." |
";
*/
$outtext .= ""."".$plan_title."";
if($plan_reply)
$outtext .= "[".$plan_reply."]";
$outtext .= $exImg."";
$arr_plan[$j] .= $outtext;
}
}
}
}
?>
|
Sun |
Mon |
Tue |
Wed |
Thu |
Fri |
Sat |
");
for ($j=0; $j<7; $j++) {
$tempday=$Calmain[$i][$j];
if($tempday == $todayDD and $pMonth == $todayMM and $pYear == $todayYY)
$today_flag = 1;
else
$today_flag = 0;
?>
style="border:medium solid;border-color:CadetBlue" height="80" width="14%" onMouseOut="this.style.backgroundColor=''" onMouseOver="this.style.backgroundColor='#DDFFFA'" style="word-break:break-all;padding:0px">
";
if($today_flag == 1) {
$outtext .= ""; // 당일
} else
{
$outtext .= " | "; // 평일
}
if ($j==0 or $tmpHoli != null) {
$color = "red"; // 일요일 및 휴일
} elseif ($j==6) {
$color = "blue"; // 토요일
} else {
$color = "black"; // 평일
}
$tmpfld = "".$tempday."";
$templink = getUrl('act','dispSboardWrite','document_srl','') ; // 일자 클릭시 쓰기로 이동
$templink = $templink."&plan_sdate=".$pYear.$tempmonth.substr("0".$tempday,-2);
$templink = "";
$outtext = $outtext." ".$templink.$tmpfld.""; // 일자
?>
10000)
{
$tmpLunar %= 10000;
$tmpfld1 = sprintf("윤%d.%d",(int)($tmpLunar/100),$tmpLunar%100);
} else
$tmpfld1 = sprintf("%d.%d",(int)($tmpLunar/100),$tmpLunar%100);
$outtext = $outtext." "."".$tmpfld1.""; // 음력
}
$tmpJeolki = $aJeolki[$tempday];
if($tmpJeolki)
$outtext .= " ".$tmpJeolki.""; // 절기
if($tmpHoli)
$outtext .= " ".$tmpHoli.""; // 공휴일
if($j == 1) // 월요일
{
$tmp_flag = 0;
if($pYear >= 2010)
{
if($pYear < $todayYY)
{
$tmp_flag = 1;
} else if($pYear == $todayYY)
{
if($pMonth < $todayMM)
{
$tmp_flag = 1;
} else if($pMonth == $todayMM)
{
if($tempday < $todayDD)
$tmp_flag = 1;
}
}
}
/*
for($k=0;$k<7;$k++)
{
if(($tempday + $k) > 31) break;
if($atimecard[$tempday + $k])
{
$tmp_flag = 1;
break;
}
}
*/
if($tmp_flag == 1)
{
$tmp_sdate = $pYear * 10000 + $pMonth * 100 + $tempday;
$outtext .= " 근태수정";
}
}
$outtext .= " | ";
echo ($outtext);
// 두째줄 --기념일---
if ($aMonthMemday[$tempday] != null) {
$outtext = "";
$outtext .= " ".$aMonthMemday[$tempday].""; // 기념일
$outtext .= " | ";
echo ($outtext);
}
// 세째줄 --근태--
if ($atimecard[$tempday] != null) {
echo ($atimecard[$tempday]);
}
// 세째줄 --휴가--
if ($aVacation[$tempday] != null) {
echo ($aVacation[$tempday]);
}
// 세째줄 --일정/플랜---
if ($arr_plan[$tempday]!= null) {
echo ($arr_plan[$tempday]);
}
}
echo (" | ");
}
echo ("");
}
?>
|