= 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;
}
?>
연감
| 중 원 지 도 |
|
|
=$history['nation'];?> |
=$history['power'];?> |
=$history['gen'];?> |
=$history['city'];?> |
| 중 원 정 세 |
|
=$history['log']?>
|
| 장 수 동 향 |
|
=$history['genlog']?>
|
| =closeButton()?> |
| =banner()?> |