<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>
게시판 목록
프로그램
| 번호 | 제목 | 글쓴이 | 날짜 | 조회 |
|---|---|---|---|---|
| 6830 |
112211dd
|
11년 전 | 787 | |
| 6829 |
진짜다진짜가나타남
|
11년 전 | 1193 | |
| 6828 | 11년 전 | 818 | ||
| 6827 |
봉보로봉봉
|
11년 전 | 902 | |
| 6826 |
jinion
|
11년 전 | 818 | |
| 6825 | 11년 전 | 801 | ||
| 6824 |
yunkiri486
|
11년 전 | 715 | |
| 6823 |
2donggalbi
|
11년 전 | 850 | |
| 6822 | 11년 전 | 848 | ||
| 6821 | 11년 전 | 799 | ||
| 6820 | 11년 전 | 3101 | ||
| 6819 | 11년 전 | 1249 | ||
| 6818 | 11년 전 | 516 | ||
| 6817 |
|
11년 전 | 604 | |
| 6816 | 11년 전 | 2070 | ||
| 6815 | 11년 전 | 1210 | ||
| 6814 | 11년 전 | 858 | ||
| 6813 | 11년 전 | 602 | ||
| 6812 |
|
11년 전 | 982 | |
| 6811 | 11년 전 | 576 | ||
| 6810 | 11년 전 | 1536 | ||
| 6809 |
낚시가좋아
|
11년 전 | 1047 | |
| 6808 | 11년 전 | 438 | ||
| 6807 | 11년 전 | 759 | ||
| 6806 |
Unhappy
|
11년 전 | 1770 | |
| 6805 | 11년 전 | 1602 | ||
| 6804 | 11년 전 | 1116 | ||
| 6803 | 11년 전 | 555 | ||
| 6802 |
asdfg
|
11년 전 | 1134 | |
| 6801 |
아트귀농인
|
11년 전 | 500 | |
| 6800 | 11년 전 | 2551 | ||
| 6799 | 11년 전 | 1352 | ||
| 6798 | 11년 전 | 1466 | ||
| 6797 | 11년 전 | 626 | ||
| 6796 |
purple63
|
11년 전 | 427 | |
| 6795 | 11년 전 | 2632 | ||
| 6794 |
커네드커네드
|
11년 전 | 956 | |
| 6793 | 11년 전 | 400 | ||
| 6792 | 11년 전 | 2495 | ||
| 6791 | 11년 전 | 514 | ||
| 6790 | 11년 전 | 2254 | ||
| 6789 |
리아빌리티
|
11년 전 | 3091 | |
| 6788 | 11년 전 | 1342 | ||
| 6787 | 11년 전 | 672 | ||
| 6786 | 11년 전 | 388 | ||
| 6785 | 11년 전 | 716 | ||
| 6784 |
|
11년 전 | 843 | |
| 6783 | 11년 전 | 577 | ||
| 6782 | 11년 전 | 3652 | ||
| 6781 |
리아빌리티
|
11년 전 | 480 | |
| 6780 | 11년 전 | 521 | ||
| 6779 | 11년 전 | 475 | ||
| 6778 | 11년 전 | 4679 | ||
| 6777 |
바보온달123
|
11년 전 | 610 | |
| 6776 | 11년 전 | 925 | ||
| 6775 | 11년 전 | 723 | ||
| 6774 |
DANet
|
11년 전 | 635 | |
| 6773 | 11년 전 | 1557 | ||
| 6772 | 11년 전 | 1352 | ||
| 6771 | 11년 전 | 612 | ||
| 6770 | 11년 전 | 1156 | ||
| 6769 | 11년 전 | 949 | ||
| 6768 | 11년 전 | 687 | ||
| 6767 | 11년 전 | 578 | ||
| 6766 | 11년 전 | 1259 | ||
| 6765 |
크림나이트
|
11년 전 | 993 | |
| 6764 | 11년 전 | 1536 | ||
| 6763 | 11년 전 | 2593 | ||
| 6762 | 11년 전 | 527 | ||
| 6761 |
|
11년 전 | 779 | |
| 6760 |
|
11년 전 | 709 | |
| 6759 | 11년 전 | 3342 | ||
| 6758 | 11년 전 | 1007 | ||
| 6757 | 11년 전 | 1266 | ||
| 6756 | 11년 전 | 888 | ||
| 6755 |
|
11년 전 | 568 | |
| 6754 |
|
11년 전 | 708 | |
| 6753 |
|
11년 전 | 1374 | |
| 6752 | 11년 전 | 600 | ||
| 6751 |
|
11년 전 | 649 | |
| 6750 |
|
11년 전 | 2014 | |
| 6749 | 11년 전 | 1207 | ||
| 6748 |
|
11년 전 | 1113 | |
| 6747 | 11년 전 | 1159 | ||
| 6746 | 11년 전 | 831 | ||
| 6745 |
|
11년 전 | 906 | |
| 6744 | 11년 전 | 849 | ||
| 6743 | 11년 전 | 1276 | ||
| 6742 | 11년 전 | 532 | ||
| 6741 |
Abilityarch
|
11년 전 | 602 | |
| 6740 | 11년 전 | 641 | ||
| 6739 |
leewin20
|
11년 전 | 1231 | |
| 6738 | 11년 전 | 501 | ||
| 6737 | 11년 전 | 1214 | ||
| 6736 | 11년 전 | 1251 | ||
| 6735 | 11년 전 | 545 | ||
| 6734 | 11년 전 | 1279 | ||
| 6733 |
RipperTNT
|
11년 전 | 1837 | |
| 6732 |
|
11년 전 | 1335 | |
| 6731 |
|
11년 전 | 1384 |
댓글 작성
댓글을 작성하시려면 로그인이 필요합니다.
로그인하기