<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>
게시판 목록
프로그램
| 번호 | 제목 | 글쓴이 | 날짜 | 조회 |
|---|---|---|---|---|
| 8130 | 9년 전 | 527 | ||
| 8129 |
|
9년 전 | 657 | |
| 8128 | 9년 전 | 522 | ||
| 8127 |
|
9년 전 | 580 | |
| 8126 | 9년 전 | 511 | ||
| 8125 | 9년 전 | 774 | ||
| 8124 |
|
9년 전 | 529 | |
| 8123 | 9년 전 | 512 | ||
| 8122 | 9년 전 | 440 | ||
| 8121 | 9년 전 | 550 | ||
| 8120 | 9년 전 | 473 | ||
| 8119 | 9년 전 | 556 | ||
| 8118 |
|
9년 전 | 639 | |
| 8117 |
|
9년 전 | 410 | |
| 8116 |
PASKRAN
|
9년 전 | 472 | |
| 8115 | 9년 전 | 461 | ||
| 8114 |
kiplayer
|
9년 전 | 601 | |
| 8113 | 9년 전 | 455 | ||
| 8112 |
|
9년 전 | 563 | |
| 8111 | 9년 전 | 412 | ||
| 8110 | 9년 전 | 448 | ||
| 8109 | 9년 전 | 381 | ||
| 8108 |
|
9년 전 | 550 | |
| 8107 |
|
9년 전 | 444 | |
| 8106 |
|
9년 전 | 445 | |
| 8105 | 9년 전 | 479 | ||
| 8104 |
|
9년 전 | 443 | |
| 8103 |
|
9년 전 | 440 | |
| 8102 |
|
9년 전 | 410 | |
| 8101 |
snshero
|
9년 전 | 797 | |
| 8100 | 9년 전 | 848 | ||
| 8099 | 9년 전 | 819 | ||
| 8098 | 9년 전 | 718 | ||
| 8097 | 9년 전 | 524 | ||
| 8096 | 9년 전 | 722 | ||
| 8095 | 9년 전 | 854 | ||
| 8094 | 9년 전 | 524 | ||
| 8093 | 9년 전 | 810 | ||
| 8092 | 9년 전 | 763 | ||
| 8091 | 9년 전 | 1149 | ||
| 8090 | 9년 전 | 776 | ||
| 8089 | 9년 전 | 982 | ||
| 8088 | 9년 전 | 655 | ||
| 8087 | 9년 전 | 776 | ||
| 8086 | 9년 전 | 528 | ||
| 8085 | 9년 전 | 495 | ||
| 8084 | 9년 전 | 615 | ||
| 8083 | 9년 전 | 583 | ||
| 8082 | 9년 전 | 767 | ||
| 8081 | 9년 전 | 475 | ||
| 8080 | 9년 전 | 576 | ||
| 8079 | 9년 전 | 535 | ||
| 8078 | 9년 전 | 456 | ||
| 8077 | 9년 전 | 542 | ||
| 8076 | 9년 전 | 416 | ||
| 8075 | 9년 전 | 450 | ||
| 8074 | 9년 전 | 408 | ||
| 8073 | 9년 전 | 464 | ||
| 8072 | 9년 전 | 459 | ||
| 8071 |
o1o111
|
9년 전 | 905 | |
| 8070 | 9년 전 | 413 | ||
| 8069 | 9년 전 | 347 | ||
| 8068 | 9년 전 | 601 | ||
| 8067 | 9년 전 | 400 | ||
| 8066 | 9년 전 | 432 | ||
| 8065 | 9년 전 | 392 | ||
| 8064 | 9년 전 | 376 | ||
| 8063 | 9년 전 | 347 | ||
| 8062 | 9년 전 | 314 | ||
| 8061 | 9년 전 | 358 | ||
| 8060 | 9년 전 | 399 | ||
| 8059 | 9년 전 | 336 | ||
| 8058 | 9년 전 | 261 | ||
| 8057 | 9년 전 | 394 | ||
| 8056 | 9년 전 | 315 | ||
| 8055 | 9년 전 | 362 | ||
| 8054 | 9년 전 | 372 | ||
| 8053 | 9년 전 | 419 | ||
| 8052 | 9년 전 | 297 | ||
| 8051 | 9년 전 | 341 | ||
| 8050 | 9년 전 | 398 | ||
| 8049 | 9년 전 | 333 | ||
| 8048 | 9년 전 | 442 | ||
| 8047 | 9년 전 | 374 | ||
| 8046 | 9년 전 | 319 | ||
| 8045 | 9년 전 | 270 | ||
| 8044 | 9년 전 | 352 | ||
| 8043 | 9년 전 | 302 | ||
| 8042 | 9년 전 | 301 | ||
| 8041 | 9년 전 | 362 | ||
| 8040 | 9년 전 | 286 | ||
| 8039 | 9년 전 | 325 | ||
| 8038 | 9년 전 | 275 | ||
| 8037 | 9년 전 | 414 | ||
| 8036 | 9년 전 | 497 | ||
| 8035 | 9년 전 | 442 | ||
| 8034 | 9년 전 | 398 | ||
| 8033 | 9년 전 | 358 | ||
| 8032 | 9년 전 | 455 | ||
| 8031 | 9년 전 | 360 |
댓글 작성
댓글을 작성하시려면 로그인이 필요합니다.
로그인하기