<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>
게시판 목록
프로그램
| 번호 | 제목 | 글쓴이 | 날짜 | 조회 |
|---|---|---|---|---|
| 7930 | 9년 전 | 445 | ||
| 7929 | 9년 전 | 378 | ||
| 7928 | 9년 전 | 462 | ||
| 7927 | 9년 전 | 373 | ||
| 7926 | 9년 전 | 681 | ||
| 7925 | 9년 전 | 395 | ||
| 7924 | 9년 전 | 380 | ||
| 7923 | 9년 전 | 375 | ||
| 7922 | 9년 전 | 409 | ||
| 7921 | 9년 전 | 422 | ||
| 7920 | 9년 전 | 341 | ||
| 7919 | 9년 전 | 349 | ||
| 7918 | 9년 전 | 502 | ||
| 7917 | 9년 전 | 353 | ||
| 7916 | 9년 전 | 441 | ||
| 7915 | 9년 전 | 445 | ||
| 7914 | 9년 전 | 454 | ||
| 7913 | 9년 전 | 628 | ||
| 7912 | 9년 전 | 462 | ||
| 7911 | 9년 전 | 392 | ||
| 7910 | 9년 전 | 440 | ||
| 7909 | 9년 전 | 541 | ||
| 7908 | 9년 전 | 484 | ||
| 7907 | 9년 전 | 421 | ||
| 7906 | 9년 전 | 442 | ||
| 7905 | 9년 전 | 406 | ||
| 7904 | 9년 전 | 393 | ||
| 7903 | 9년 전 | 392 | ||
| 7902 | 9년 전 | 588 | ||
| 7901 |
|
9년 전 | 764 | |
| 7900 | 9년 전 | 643 | ||
| 7899 | 9년 전 | 427 | ||
| 7898 | 9년 전 | 424 | ||
| 7897 | 9년 전 | 382 | ||
| 7896 | 9년 전 | 396 | ||
| 7895 | 9년 전 | 509 | ||
| 7894 | 9년 전 | 427 | ||
| 7893 | 9년 전 | 398 | ||
| 7892 | 9년 전 | 434 | ||
| 7891 | 9년 전 | 797 | ||
| 7890 | 9년 전 | 1226 | ||
| 7889 | 9년 전 | 762 | ||
| 7888 |
limsy1987
|
9년 전 | 573 | |
| 7887 | 9년 전 | 602 | ||
| 7886 | 9년 전 | 492 | ||
| 7885 | 9년 전 | 457 | ||
| 7884 | 9년 전 | 451 | ||
| 7883 | 9년 전 | 455 | ||
| 7882 | 9년 전 | 515 | ||
| 7881 | 9년 전 | 484 | ||
| 7880 | 9년 전 | 611 | ||
| 7879 | 9년 전 | 499 | ||
| 7878 | 9년 전 | 1274 | ||
| 7877 | 9년 전 | 798 | ||
| 7876 | 9년 전 | 533 | ||
| 7875 | 9년 전 | 608 | ||
| 7874 |
|
9년 전 | 826 | |
| 7873 | 9년 전 | 543 | ||
| 7872 | 9년 전 | 711 | ||
| 7871 | 9년 전 | 525 | ||
| 7870 | 9년 전 | 647 | ||
| 7869 | 9년 전 | 458 | ||
| 7868 | 9년 전 | 496 | ||
| 7867 | 9년 전 | 493 | ||
| 7866 | 9년 전 | 548 | ||
| 7865 | 9년 전 | 488 | ||
| 7864 | 9년 전 | 555 | ||
| 7863 | 9년 전 | 549 | ||
| 7862 | 9년 전 | 504 | ||
| 7861 | 9년 전 | 687 | ||
| 7860 | 9년 전 | 658 | ||
| 7859 | 9년 전 | 438 | ||
| 7858 | 9년 전 | 741 | ||
| 7857 | 9년 전 | 1127 | ||
| 7856 | 9년 전 | 560 | ||
| 7855 | 9년 전 | 788 | ||
| 7854 | 9년 전 | 746 | ||
| 7853 | 9년 전 | 637 | ||
| 7852 | 9년 전 | 560 | ||
| 7851 | 9년 전 | 545 | ||
| 7850 | 9년 전 | 629 | ||
| 7849 | 9년 전 | 393 | ||
| 7848 | 9년 전 | 460 | ||
| 7847 | 9년 전 | 703 | ||
| 7846 | 9년 전 | 492 | ||
| 7845 | 9년 전 | 462 | ||
| 7844 | 9년 전 | 432 | ||
| 7843 | 9년 전 | 469 | ||
| 7842 | 9년 전 | 448 | ||
| 7841 | 9년 전 | 424 | ||
| 7840 | 9년 전 | 434 | ||
| 7839 | 9년 전 | 478 | ||
| 7838 | 9년 전 | 543 | ||
| 7837 | 9년 전 | 381 | ||
| 7836 | 9년 전 | 436 | ||
| 7835 | 10년 전 | 510 | ||
| 7834 |
|
10년 전 | 1221 | |
| 7833 | 10년 전 | 480 | ||
| 7832 | 10년 전 | 456 | ||
| 7831 | 10년 전 | 616 |
댓글 작성
댓글을 작성하시려면 로그인이 필요합니다.
로그인하기