<HTML>
<HEAD>
<TITLE>title</TITLE>
</HEAD>
<STYLE type='text/css'>
A:link {color:black;text-decoration:none;}
A:visited {color:black;text-decoration:none;}
A:hover {color:#0066cc;text-decoration:none;}
p,br,body,td {font-size:9pt;}
color:#0099cc; background-color:white}
</STYLE>
<BODY>
<TABLE width = '100%' height = '100%'>
<TR>
<TD align = 'center'>
<?php
if (!$year)
$year = date("Y");
if (!$month)
$month = date("m");
$day = 1;
$spacer = spacer( $year, $month, $day );
$endday = array( 31, 28, 31, 30 , 31, 30, 31, 31, 30 ,31 ,30, 31 );
if( $year%4 == 0 && $year%100 != 0 || $year%400 == 0 )
$endday[1] = 29;
else
$endday[1] = 28;
echo("
<FONT color='#0066cc'>${year}년</FONT>
<TABLE>
<TR>
<TD colspan = 7>
");
for( $i = 1; $i <= 12; $i++ )
{
if( $i == $month )
{
echo("<A href = '$PHP_SELF?year=$year&month=$i'><FONT color='red'>${i}월 </FONT></A>");
}
else
echo("<A href = '$PHP_SELF?year=$year&month=$i'>${i}월 </A>");
}
echo("
</TD>
</TR>
</TABLE>
<TABLE>
<TR>
<TD align='center'>일</TD>
<TD align='center'>월</TD>
<TD align='center'>화</TD>
<TD align='center'>수</TD>
<TD align='center'>목</TD>
<TD align='center'>금</TD>
<TD align='center'>토</TD>
</TR>
<TR>
");
for( $i = 0; $i < $spacer; $i++ )
{
echo("
<TD> </TD>
");
$tr++;
}
for( $i = 1; $i <= $endday[$month-1]; $i++ )
{
if( $tr % 7 == 0 )
{
echo("
</TR>
<TR>
<TD align = 'right'>$i</TD>
");
$tr++;
}
else
{
echo("
<TD align = 'right'>$i</TD>
");
$tr++;
}
}
$next_year = $year + 1;
$priv_year = $year - 1;
$next_year_ten = $next_year + 9;
$priv_year_ten = $priv_year - 9;
echo("
</TR>
</TABLE>
<A href = '$PHP_SELF?year=$priv_year_ten&month=$month'> << </A>
<A href = '$PHP_SELF?year=$priv_year&month=$month'> [-1] </A>
<A href = '$PHP_SELF?year=$next_year&month=$month'> [+1] </A>
<A href = '$PHP_SELF?year=$next_year_ten&month=$month'> >> </A>
");
function spacer( $year, $month, $day )
{
$spacer = array(0, 3, 2, 5, 0, 3, 5, 1, 4, 6, 2, 4);
$year = $year - ($month < 3);
$result = ($year + (int) ($year/4) - (int) ($year/100) + (int) ($year/400) + $spacer[$month-1] + $day) % 7;
return $result;
}
?>
</TD>
</TR>
</BODY>
</HTML>
<HEAD>
<TITLE>title</TITLE>
</HEAD>
<STYLE type='text/css'>
A:link {color:black;text-decoration:none;}
A:visited {color:black;text-decoration:none;}
A:hover {color:#0066cc;text-decoration:none;}
p,br,body,td {font-size:9pt;}
color:#0099cc; background-color:white}
</STYLE>
<BODY>
<TABLE width = '100%' height = '100%'>
<TR>
<TD align = 'center'>
<?php
if (!$year)
$year = date("Y");
if (!$month)
$month = date("m");
$day = 1;
$spacer = spacer( $year, $month, $day );
$endday = array( 31, 28, 31, 30 , 31, 30, 31, 31, 30 ,31 ,30, 31 );
if( $year%4 == 0 && $year%100 != 0 || $year%400 == 0 )
$endday[1] = 29;
else
$endday[1] = 28;
echo("
<FONT color='#0066cc'>${year}년</FONT>
<TABLE>
<TR>
<TD colspan = 7>
");
for( $i = 1; $i <= 12; $i++ )
{
if( $i == $month )
{
echo("<A href = '$PHP_SELF?year=$year&month=$i'><FONT color='red'>${i}월 </FONT></A>");
}
else
echo("<A href = '$PHP_SELF?year=$year&month=$i'>${i}월 </A>");
}
echo("
</TD>
</TR>
</TABLE>
<TABLE>
<TR>
<TD align='center'>일</TD>
<TD align='center'>월</TD>
<TD align='center'>화</TD>
<TD align='center'>수</TD>
<TD align='center'>목</TD>
<TD align='center'>금</TD>
<TD align='center'>토</TD>
</TR>
<TR>
");
for( $i = 0; $i < $spacer; $i++ )
{
echo("
<TD> </TD>
");
$tr++;
}
for( $i = 1; $i <= $endday[$month-1]; $i++ )
{
if( $tr % 7 == 0 )
{
echo("
</TR>
<TR>
<TD align = 'right'>$i</TD>
");
$tr++;
}
else
{
echo("
<TD align = 'right'>$i</TD>
");
$tr++;
}
}
$next_year = $year + 1;
$priv_year = $year - 1;
$next_year_ten = $next_year + 9;
$priv_year_ten = $priv_year - 9;
echo("
</TR>
</TABLE>
<A href = '$PHP_SELF?year=$priv_year_ten&month=$month'> << </A>
<A href = '$PHP_SELF?year=$priv_year&month=$month'> [-1] </A>
<A href = '$PHP_SELF?year=$next_year&month=$month'> [+1] </A>
<A href = '$PHP_SELF?year=$next_year_ten&month=$month'> >> </A>
");
function spacer( $year, $month, $day )
{
$spacer = array(0, 3, 2, 5, 0, 3, 5, 1, 4, 6, 2, 4);
$year = $year - ($month < 3);
$result = ($year + (int) ($year/4) - (int) ($year/100) + (int) ($year/400) + $spacer[$month-1] + $day) % 7;
return $result;
}
?>
</TD>
</TR>
</BODY>
</HTML>
게시판 목록
프로그램
| 번호 | 제목 | 글쓴이 | 날짜 | 조회 |
|---|---|---|---|---|
| 7730 | 10년 전 | 1299 | ||
| 7729 | 10년 전 | 1115 | ||
| 7728 |
잘살아보자
|
10년 전 | 579 | |
| 7727 |
잘살아보자
|
10년 전 | 473 | |
| 7726 |
잘살아보자
|
10년 전 | 801 | |
| 7725 |
잘살아보자
|
10년 전 | 532 | |
| 7724 |
잘살아보자
|
10년 전 | 443 | |
| 7723 |
잘살아보자
|
10년 전 | 513 | |
| 7722 |
잘살아보자
|
10년 전 | 450 | |
| 7721 |
잘살아보자
|
10년 전 | 489 | |
| 7720 |
잘살아보자
|
10년 전 | 438 | |
| 7719 |
비긴어게인
|
10년 전 | 678 | |
| 7718 |
|
10년 전 | 2514 | |
| 7717 |
잘살아보자
|
10년 전 | 637 | |
| 7716 |
잘살아보자
|
10년 전 | 386 | |
| 7715 |
잘살아보자
|
10년 전 | 420 | |
| 7714 |
잘살아보자
|
10년 전 | 467 | |
| 7713 | 10년 전 | 1770 | ||
| 7712 | 10년 전 | 1694 | ||
| 7711 | 10년 전 | 1077 | ||
| 7710 | 10년 전 | 1368 | ||
| 7709 | 10년 전 | 1499 | ||
| 7708 | 10년 전 | 1447 | ||
| 7707 | 10년 전 | 846 | ||
| 7706 |
별지기천사
|
10년 전 | 560 | |
| 7705 | 10년 전 | 1057 | ||
| 7704 |
ICONdesignstudio
|
10년 전 | 599 | |
| 7703 | 10년 전 | 572 | ||
| 7702 |
|
10년 전 | 705 | |
| 7701 | 10년 전 | 1394 | ||
| 7700 | 10년 전 | 1089 | ||
| 7699 | 10년 전 | 573 | ||
| 7698 | 10년 전 | 1120 | ||
| 7697 | 10년 전 | 5135 | ||
| 7696 | 10년 전 | 631 | ||
| 7695 | 10년 전 | 1671 | ||
| 7694 | 10년 전 | 1041 | ||
| 7693 | 10년 전 | 1536 | ||
| 7692 | 10년 전 | 1274 | ||
| 7691 | 10년 전 | 801 | ||
| 7690 | 10년 전 | 1379 | ||
| 7689 | 10년 전 | 998 | ||
| 7688 | 10년 전 | 591 | ||
| 7687 |
파랑새1597
|
10년 전 | 566 | |
| 7686 | 10년 전 | 824 | ||
| 7685 | 10년 전 | 1330 | ||
| 7684 | 10년 전 | 784 | ||
| 7683 | 10년 전 | 1058 | ||
| 7682 | 10년 전 | 975 | ||
| 7681 | 10년 전 | 635 | ||
| 7680 | 10년 전 | 976 | ||
| 7679 | 10년 전 | 489 | ||
| 7678 | 10년 전 | 712 | ||
| 7677 | 10년 전 | 618 | ||
| 7676 |
|
10년 전 | 933 | |
| 7675 |
|
10년 전 | 1148 | |
| 7674 | 10년 전 | 1037 | ||
| 7673 | 10년 전 | 738 | ||
| 7672 | 10년 전 | 1081 | ||
| 7671 | 10년 전 | 866 | ||
| 7670 | 10년 전 | 636 | ||
| 7669 |
mashmellow
|
10년 전 | 1220 | |
| 7668 | 10년 전 | 700 | ||
| 7667 | 10년 전 | 982 | ||
| 7666 |
senseme
|
10년 전 | 637 | |
| 7665 | 10년 전 | 492 | ||
| 7664 | 10년 전 | 1883 | ||
| 7663 |
mixx애교
|
10년 전 | 973 | |
| 7662 | 10년 전 | 1022 | ||
| 7661 |
hkhkah
|
10년 전 | 777 | |
| 7660 | 10년 전 | 1047 | ||
| 7659 |
커네드커네드
|
10년 전 | 916 | |
| 7658 |
바람돌이팡
|
10년 전 | 657 | |
| 7657 | 10년 전 | 1153 | ||
| 7656 | 10년 전 | 1556 | ||
| 7655 | 10년 전 | 967 | ||
| 7654 |
개발짜증나
|
10년 전 | 845 | |
| 7653 |
네이비칼라
|
10년 전 | 874 | |
| 7652 |
밥먹고합시다
|
10년 전 | 800 | |
| 7651 |
플라이SINJI
|
10년 전 | 1500 | |
| 7650 |
개발짜증나
|
10년 전 | 1394 | |
| 7649 | 10년 전 | 447 | ||
| 7648 |
이미영ㅇㅇ
|
10년 전 | 860 | |
| 7647 | 10년 전 | 419 | ||
| 7646 | 10년 전 | 784 | ||
| 7645 | 10년 전 | 2298 | ||
| 7644 | 10년 전 | 805 | ||
| 7643 |
|
10년 전 | 2859 | |
| 7642 | 10년 전 | 1498 | ||
| 7641 | 10년 전 | 1117 | ||
| 7640 |
개발짜증나
|
10년 전 | 463 | |
| 7639 |
|
10년 전 | 807 | |
| 7638 |
개발짜증나
|
10년 전 | 1122 | |
| 7637 | 10년 전 | 1536 | ||
| 7636 | 10년 전 | 2901 | ||
| 7635 | 10년 전 | 1673 | ||
| 7634 | 10년 전 | 1861 | ||
| 7633 | 10년 전 | 2315 | ||
| 7632 | 10년 전 | 3916 | ||
| 7631 |
|
10년 전 | 1521 |
댓글 작성
댓글을 작성하시려면 로그인이 필요합니다.
로그인하기