include '../inc/define.php';
include '../inc/dbconn.php';
include '../inc/func.php';
include '../inc/calendar.php';
$conn = new DbConn(DB_host, DB_user, DB_passwd, DB_select);
if ($m_year == null) $m_year=date('Y');
if ($m_month == null) $m_month=date('m');
if ($m_day == null) $m_day=date('d');
$pre_month = $m_month-1;
if ($pre_month==0) {
$pre_year = $m_year-1;
$pre_month = 12;
} else $pre_year = $m_year;
$next_month = $m_month+1;
if ($next_month==13) {
$next_year = $m_year+1;
$next_month = 1;
} else $next_year = $m_year;
if ($pre_month<10) $pre_month='0'.$pre_month;
if ($next_month<10) $next_month='0'.$next_month;
?>
include '../include/header.htm' ?>
include '../include/footer.htm' ?>