<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>
게시판 목록
프로그램
| 번호 | 제목 | 글쓴이 | 날짜 | 조회 |
|---|---|---|---|---|
| 7130 | 11년 전 | 2293 | ||
| 7129 | 11년 전 | 695 | ||
| 7128 |
senseme
|
11년 전 | 1265 | |
| 7127 | 11년 전 | 1144 | ||
| 7126 | 11년 전 | 793 | ||
| 7125 | 11년 전 | 2936 | ||
| 7124 | 11년 전 | 1411 | ||
| 7123 |
잘살아보자
|
11년 전 | 1270 | |
| 7122 |
잘살아보자
|
11년 전 | 666 | |
| 7121 |
잘살아보자
|
11년 전 | 2997 | |
| 7120 |
잘살아보자
|
11년 전 | 2890 | |
| 7119 |
잘살아보자
|
11년 전 | 716 | |
| 7118 |
잘살아보자
|
11년 전 | 3416 | |
| 7117 |
잘살아보자
|
11년 전 | 836 | |
| 7116 | 11년 전 | 721 | ||
| 7115 | 11년 전 | 1008 | ||
| 7114 | 11년 전 | 818 | ||
| 7113 | 11년 전 | 635 | ||
| 7112 | 11년 전 | 1059 | ||
| 7111 | 11년 전 | 1777 | ||
| 7110 | 11년 전 | 1014 | ||
| 7109 |
버섯먹은나
|
11년 전 | 775 | |
| 7108 | 11년 전 | 611 | ||
| 7107 | 11년 전 | 2386 | ||
| 7106 | 11년 전 | 1940 | ||
| 7105 | 11년 전 | 2474 | ||
| 7104 | 11년 전 | 1403 | ||
| 7103 |
|
11년 전 | 2678 | |
| 7102 | 11년 전 | 3100 | ||
| 7101 | 11년 전 | 4427 | ||
| 7100 | 11년 전 | 5779 | ||
| 7099 | 11년 전 | 2121 | ||
| 7098 | 11년 전 | 1700 | ||
| 7097 | 11년 전 | 1436 | ||
| 7096 | 11년 전 | 1108 | ||
| 7095 |
잘살아보자
|
11년 전 | 844 | |
| 7094 |
잘살아보자
|
11년 전 | 1031 | |
| 7093 |
잘살아보자
|
11년 전 | 910 | |
| 7092 |
잘살아보자
|
11년 전 | 1395 | |
| 7091 |
잘살아보자
|
11년 전 | 2193 | |
| 7090 |
잘살아보자
|
11년 전 | 865 | |
| 7089 | 11년 전 | 1043 | ||
| 7088 | 11년 전 | 1700 | ||
| 7087 | 11년 전 | 1393 | ||
| 7086 | 11년 전 | 1280 | ||
| 7085 |
|
11년 전 | 1208 | |
| 7084 | 11년 전 | 1131 | ||
| 7083 | 11년 전 | 3480 | ||
| 7082 | 11년 전 | 1125 | ||
| 7081 | 11년 전 | 1723 | ||
| 7080 | 11년 전 | 1997 | ||
| 7079 | 11년 전 | 1304 | ||
| 7078 | 11년 전 | 1286 | ||
| 7077 | 11년 전 | 1278 | ||
| 7076 | 11년 전 | 743 | ||
| 7075 | 11년 전 | 1141 | ||
| 7074 |
네이비칼라
|
11년 전 | 1488 | |
| 7073 | 11년 전 | 1453 | ||
| 7072 |
|
11년 전 | 822 | |
| 7071 | 11년 전 | 1170 | ||
| 7070 | 11년 전 | 926 | ||
| 7069 | 11년 전 | 1681 | ||
| 7068 | 11년 전 | 1326 | ||
| 7067 |
TPSint
|
11년 전 | 704 | |
| 7066 | 11년 전 | 2138 | ||
| 7065 | 11년 전 | 6621 | ||
| 7064 | 11년 전 | 1278 | ||
| 7063 | 11년 전 | 1123 | ||
| 7062 | 11년 전 | 1056 | ||
| 7061 | 11년 전 | 897 | ||
| 7060 | 11년 전 | 1434 | ||
| 7059 | 11년 전 | 833 | ||
| 7058 |
EngineMan
|
11년 전 | 3386 | |
| 7057 | 11년 전 | 1232 | ||
| 7056 | 11년 전 | 1628 | ||
| 7055 | 11년 전 | 997 | ||
| 7054 | 11년 전 | 2636 | ||
| 7053 |
네이비칼라
|
11년 전 | 1272 | |
| 7052 | 11년 전 | 2558 | ||
| 7051 | 11년 전 | 1922 | ||
| 7050 | 11년 전 | 2438 | ||
| 7049 | 11년 전 | 1381 | ||
| 7048 | 11년 전 | 2513 | ||
| 7047 | 11년 전 | 1330 | ||
| 7046 | 11년 전 | 1014 | ||
| 7045 | 11년 전 | 1037 | ||
| 7044 | 11년 전 | 5425 | ||
| 7043 | 11년 전 | 1210 | ||
| 7042 | 11년 전 | 767 | ||
| 7041 |
열라뽕똬이
|
11년 전 | 745 | |
| 7040 | 11년 전 | 1094 | ||
| 7039 | 11년 전 | 1442 | ||
| 7038 | 11년 전 | 1857 | ||
| 7037 | 11년 전 | 2164 | ||
| 7036 | 11년 전 | 1076 | ||
| 7035 | 11년 전 | 1395 | ||
| 7034 | 11년 전 | 1336 | ||
| 7033 |
열라뽕똬이
|
11년 전 | 984 | |
| 7032 | 11년 전 | 738 | ||
| 7031 | 11년 전 | 2169 |
댓글 작성
댓글을 작성하시려면 로그인이 필요합니다.
로그인하기