<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년 전 | 2301 | ||
| 7129 | 11년 전 | 706 | ||
| 7128 |
senseme
|
11년 전 | 1285 | |
| 7127 | 11년 전 | 1161 | ||
| 7126 | 11년 전 | 811 | ||
| 7125 | 11년 전 | 2941 | ||
| 7124 | 11년 전 | 1418 | ||
| 7123 |
잘살아보자
|
11년 전 | 1275 | |
| 7122 |
잘살아보자
|
11년 전 | 676 | |
| 7121 |
잘살아보자
|
11년 전 | 3024 | |
| 7120 |
잘살아보자
|
11년 전 | 2903 | |
| 7119 |
잘살아보자
|
11년 전 | 721 | |
| 7118 |
잘살아보자
|
11년 전 | 3423 | |
| 7117 |
잘살아보자
|
11년 전 | 847 | |
| 7116 | 11년 전 | 735 | ||
| 7115 | 11년 전 | 1024 | ||
| 7114 | 11년 전 | 829 | ||
| 7113 | 11년 전 | 650 | ||
| 7112 | 11년 전 | 1070 | ||
| 7111 | 11년 전 | 1786 | ||
| 7110 | 11년 전 | 1029 | ||
| 7109 |
버섯먹은나
|
11년 전 | 792 | |
| 7108 | 11년 전 | 626 | ||
| 7107 | 11년 전 | 2401 | ||
| 7106 | 11년 전 | 1948 | ||
| 7105 | 11년 전 | 2478 | ||
| 7104 | 11년 전 | 1414 | ||
| 7103 |
|
11년 전 | 2696 | |
| 7102 | 11년 전 | 3112 | ||
| 7101 | 11년 전 | 4433 | ||
| 7100 | 11년 전 | 5780 | ||
| 7099 | 11년 전 | 2127 | ||
| 7098 | 11년 전 | 1712 | ||
| 7097 | 11년 전 | 1442 | ||
| 7096 | 11년 전 | 1118 | ||
| 7095 |
잘살아보자
|
11년 전 | 850 | |
| 7094 |
잘살아보자
|
11년 전 | 1044 | |
| 7093 |
잘살아보자
|
11년 전 | 922 | |
| 7092 |
잘살아보자
|
11년 전 | 1406 | |
| 7091 |
잘살아보자
|
11년 전 | 2204 | |
| 7090 |
잘살아보자
|
11년 전 | 878 | |
| 7089 | 11년 전 | 1055 | ||
| 7088 | 11년 전 | 1701 | ||
| 7087 | 11년 전 | 1397 | ||
| 7086 | 11년 전 | 1299 | ||
| 7085 |
|
11년 전 | 1219 | |
| 7084 | 11년 전 | 1141 | ||
| 7083 | 11년 전 | 3491 | ||
| 7082 | 11년 전 | 1133 | ||
| 7081 | 11년 전 | 1729 | ||
| 7080 | 11년 전 | 2006 | ||
| 7079 | 11년 전 | 1317 | ||
| 7078 | 11년 전 | 1291 | ||
| 7077 | 11년 전 | 1289 | ||
| 7076 | 11년 전 | 757 | ||
| 7075 | 11년 전 | 1149 | ||
| 7074 |
네이비칼라
|
11년 전 | 1495 | |
| 7073 | 11년 전 | 1466 | ||
| 7072 |
|
11년 전 | 827 | |
| 7071 | 11년 전 | 1189 | ||
| 7070 | 11년 전 | 927 | ||
| 7069 | 11년 전 | 1692 | ||
| 7068 | 11년 전 | 1341 | ||
| 7067 |
TPSint
|
11년 전 | 724 | |
| 7066 | 11년 전 | 2147 | ||
| 7065 | 11년 전 | 6635 | ||
| 7064 | 11년 전 | 1287 | ||
| 7063 | 11년 전 | 1129 | ||
| 7062 | 11년 전 | 1063 | ||
| 7061 | 11년 전 | 910 | ||
| 7060 | 11년 전 | 1461 | ||
| 7059 | 11년 전 | 856 | ||
| 7058 |
EngineMan
|
11년 전 | 3395 | |
| 7057 | 11년 전 | 1240 | ||
| 7056 | 11년 전 | 1631 | ||
| 7055 | 11년 전 | 1006 | ||
| 7054 | 11년 전 | 2646 | ||
| 7053 |
네이비칼라
|
11년 전 | 1277 | |
| 7052 | 11년 전 | 2574 | ||
| 7051 | 11년 전 | 1932 | ||
| 7050 | 11년 전 | 2448 | ||
| 7049 | 11년 전 | 1395 | ||
| 7048 | 11년 전 | 2526 | ||
| 7047 | 11년 전 | 1342 | ||
| 7046 | 11년 전 | 1026 | ||
| 7045 | 11년 전 | 1052 | ||
| 7044 | 11년 전 | 5431 | ||
| 7043 | 11년 전 | 1223 | ||
| 7042 | 11년 전 | 779 | ||
| 7041 |
열라뽕똬이
|
11년 전 | 753 | |
| 7040 | 11년 전 | 1107 | ||
| 7039 | 11년 전 | 1455 | ||
| 7038 | 11년 전 | 1869 | ||
| 7037 | 11년 전 | 2171 | ||
| 7036 | 11년 전 | 1081 | ||
| 7035 | 11년 전 | 1400 | ||
| 7034 | 11년 전 | 1344 | ||
| 7033 |
열라뽕똬이
|
11년 전 | 991 | |
| 7032 | 11년 전 | 748 | ||
| 7031 | 11년 전 | 2174 |
댓글 작성
댓글을 작성하시려면 로그인이 필요합니다.
로그인하기