= 2) { printLimitMsg($me[turntime]); exit(); } $query = "select year,month from history order by no limit 1"; $result = MYDB_query($query, $connect) or Error(__LINE__.MYDB_error($connect),""); $history = MYDB_fetch_array($result); $s = ($history[year]*12) + $history[month]; $query = "select year,month from history order by no desc limit 1"; $result = MYDB_query($query, $connect) or Error(__LINE__.MYDB_error($connect),""); $history = MYDB_fetch_array($result); $e = ($history[year]*12) + $history[month]; if(!$yearmonth) { $year = $admin['year']; $month = $admin['month'] - 1; } else { $year = substr($yearmonth, 0, 3) - 0; $month = substr($yearmonth, 3, 2) - 0; if($btn == "◀◀ 이전달") { $month -= 1; } elseif($btn == "다음달 ▶▶") { $month += 1; } } $now = ($year*12) + $month; if($now < $s) { $now = $s; } if($now > $e) { $now = $e; } $year = floor($now / 12); $month = $now % 12; if($month <= 0) { $year -= 1; $month += 12; } if($me[skin] < 1) { $tempColor = $_basecolor; $tempColor2 = $_basecolor2; $tempColor3 = $_basecolor3; $tempColor4 = $_basecolor4; $_basecolor = "000000"; $_basecolor2 = "000000"; $_basecolor3 = "000000"; $_basecolor4 = "000000"; } ?> 연감
연 감
년월 선택 :
중 원 지 도
중 원 정 세
장 수 동 향