<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>
게시판 목록
프로그램
| 번호 | 제목 | 글쓴이 | 날짜 | 조회 |
|---|---|---|---|---|
| 7630 | 10년 전 | 634 | ||
| 7629 |
|
10년 전 | 2339 | |
| 7628 | 10년 전 | 768 | ||
| 7627 |
|
10년 전 | 997 | |
| 7626 |
|
10년 전 | 1757 | |
| 7625 | 10년 전 | 656 | ||
| 7624 | 10년 전 | 681 | ||
| 7623 |
|
10년 전 | 3003 | |
| 7622 | 10년 전 | 687 | ||
| 7621 |
leeleeleelee
|
10년 전 | 565 | |
| 7620 | 10년 전 | 525 | ||
| 7619 | 10년 전 | 452 | ||
| 7618 | 10년 전 | 994 | ||
| 7617 | 10년 전 | 712 | ||
| 7616 | 10년 전 | 608 | ||
| 7615 | 10년 전 | 702 | ||
| 7614 | 10년 전 | 1208 | ||
| 7613 |
|
10년 전 | 2049 | |
| 7612 | 10년 전 | 1118 | ||
| 7611 | 10년 전 | 1382 | ||
| 7610 |
|
10년 전 | 1872 | |
| 7609 |
|
10년 전 | 1288 | |
| 7608 |
mwdkim
|
10년 전 | 1092 | |
| 7607 |
|
10년 전 | 1020 | |
| 7606 |
mwdkim
|
10년 전 | 3898 | |
| 7605 | 10년 전 | 667 | ||
| 7604 | 10년 전 | 1002 | ||
| 7603 | 10년 전 | 1626 | ||
| 7602 |
|
10년 전 | 1041 | |
| 7601 |
AniNest
|
10년 전 | 2759 | |
| 7600 |
port443
|
10년 전 | 994 | |
| 7599 | 10년 전 | 917 | ||
| 7598 | 10년 전 | 989 | ||
| 7597 | 10년 전 | 4551 | ||
| 7596 |
SeungYeon
|
10년 전 | 865 | |
| 7595 |
untitled
|
10년 전 | 2386 | |
| 7594 |
프로그래머7
|
10년 전 | 1700 | |
| 7593 |
untitled
|
10년 전 | 2337 | |
| 7592 |
untitled
|
10년 전 | 1908 | |
| 7591 |
untitled
|
10년 전 | 2648 | |
| 7590 |
아리마2001
|
10년 전 | 821 | |
| 7589 | 10년 전 | 1078 | ||
| 7588 |
|
10년 전 | 2895 | |
| 7587 | 10년 전 | 1273 | ||
| 7586 | 10년 전 | 632 | ||
| 7585 | 10년 전 | 1656 | ||
| 7584 | 10년 전 | 1388 | ||
| 7583 |
leeleeleelee
|
10년 전 | 1128 | |
| 7582 |
|
10년 전 | 1070 | |
| 7581 | 10년 전 | 1302 | ||
| 7580 | 10년 전 | 942 | ||
| 7579 |
|
10년 전 | 579 | |
| 7578 | 10년 전 | 1392 | ||
| 7577 |
|
10년 전 | 1850 | |
| 7576 | 10년 전 | 1365 | ||
| 7575 |
멋진남자임
|
10년 전 | 1446 | |
| 7574 | 10년 전 | 2084 | ||
| 7573 | 10년 전 | 3213 | ||
| 7572 | 10년 전 | 745 | ||
| 7571 |
|
10년 전 | 771 | |
| 7570 |
|
10년 전 | 1291 | |
| 7569 | 10년 전 | 1521 | ||
| 7568 |
this1mg
|
10년 전 | 1021 | |
| 7567 |
|
10년 전 | 729 | |
| 7566 | 10년 전 | 889 | ||
| 7565 |
Angel하늘
|
10년 전 | 964 | |
| 7564 |
seoldi
|
10년 전 | 1197 | |
| 7563 |
|
10년 전 | 1347 | |
| 7562 |
멋진남자임
|
10년 전 | 2046 | |
| 7561 | 10년 전 | 679 | ||
| 7560 |
leeleeleelee
|
10년 전 | 877 | |
| 7559 | 10년 전 | 5008 | ||
| 7558 |
RinaP
|
10년 전 | 754 | |
| 7557 |
|
10년 전 | 1217 | |
| 7556 | 10년 전 | 1169 | ||
| 7555 |
hyohyojj1234
|
10년 전 | 1633 | |
| 7554 | 10년 전 | 1069 | ||
| 7553 |
senseme
|
10년 전 | 1321 | |
| 7552 |
ehdltdoit
|
10년 전 | 1413 | |
| 7551 |
|
10년 전 | 1794 | |
| 7550 |
leeleeleelee
|
10년 전 | 1560 | |
| 7549 | 10년 전 | 2394 | ||
| 7548 | 10년 전 | 1812 | ||
| 7547 |
멋진남자임
|
10년 전 | 1922 | |
| 7546 | 10년 전 | 964 | ||
| 7545 |
ILMare1003
|
10년 전 | 1256 | |
| 7544 |
|
10년 전 | 1211 | |
| 7543 | 10년 전 | 860 | ||
| 7542 | 10년 전 | 635 | ||
| 7541 |
울라라라우
|
10년 전 | 846 | |
| 7540 | 10년 전 | 1578 | ||
| 7539 | 10년 전 | 898 | ||
| 7538 |
|
10년 전 | 1808 | |
| 7537 | 10년 전 | 3588 | ||
| 7536 |
Gaumi
|
10년 전 | 1381 | |
| 7535 |
프로그램은어려워
|
10년 전 | 1242 | |
| 7534 |
senseme
|
10년 전 | 1191 | |
| 7533 | 10년 전 | 1168 | ||
| 7532 | 10년 전 | 834 | ||
| 7531 | 10년 전 | 2026 |
댓글 작성
댓글을 작성하시려면 로그인이 필요합니다.
로그인하기