<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>
게시판 목록
프로그램
| 번호 | 제목 | 글쓴이 | 날짜 | 조회 |
|---|---|---|---|---|
| 6330 |
|
12년 전 | 1790 | |
| 6329 |
내가짱니네가짱
|
12년 전 | 1223 | |
| 6328 |
AMDbest
|
12년 전 | 486 | |
| 6327 | 12년 전 | 1688 | ||
| 6326 | 12년 전 | 1322 | ||
| 6325 | 12년 전 | 7605 | ||
| 6324 |
AMDbest
|
12년 전 | 2188 | |
| 6323 |
|
12년 전 | 1963 | |
| 6322 | 12년 전 | 2027 | ||
| 6321 | 12년 전 | 2462 | ||
| 6320 |
senseme
|
12년 전 | 558 | |
| 6319 | 12년 전 | 3703 | ||
| 6318 | 12년 전 | 1364 | ||
| 6317 |
kiplayer
|
12년 전 | 6404 | |
| 6316 | 12년 전 | 1007 | ||
| 6315 | 12년 전 | 958 | ||
| 6314 |
상엽나르도
|
12년 전 | 1278 | |
| 6313 |
검은고양이1983
|
12년 전 | 648 | |
| 6312 | 12년 전 | 3112 | ||
| 6311 | 12년 전 | 1410 | ||
| 6310 |
testers
|
12년 전 | 1475 | |
| 6309 | 12년 전 | 981 | ||
| 6308 | 12년 전 | 2598 | ||
| 6307 | 12년 전 | 1636 | ||
| 6306 | 12년 전 | 428 | ||
| 6305 | 12년 전 | 3495 | ||
| 6304 | 12년 전 | 992 | ||
| 6303 | 12년 전 | 821 | ||
| 6302 | 12년 전 | 1188 | ||
| 6301 | 12년 전 | 5560 | ||
| 6300 |
|
12년 전 | 1187 | |
| 6299 |
AMDbest
|
12년 전 | 2795 | |
| 6298 |
AMDbest
|
12년 전 | 2241 | |
| 6297 |
프리랜서개발자
|
12년 전 | 463 | |
| 6296 | 12년 전 | 2925 | ||
| 6295 |
SUPERMANs
|
12년 전 | 1370 | |
| 6294 | 12년 전 | 1287 | ||
| 6293 | 12년 전 | 1342 | ||
| 6292 |
오늘도망했다
|
12년 전 | 3263 | |
| 6291 |
senseme
|
12년 전 | 2022 | |
| 6290 |
senseme
|
12년 전 | 3683 | |
| 6289 |
senseme
|
12년 전 | 8570 | |
| 6288 |
senseme
|
12년 전 | 4165 | |
| 6287 |
senseme
|
12년 전 | 3728 | |
| 6286 |
senseme
|
12년 전 | 1349 | |
| 6285 |
senseme
|
12년 전 | 1423 | |
| 6284 |
프로프리랜서
|
12년 전 | 3143 | |
| 6283 |
프로프리랜서
|
12년 전 | 3979 | |
| 6282 |
프로프리랜서
|
12년 전 | 4383 | |
| 6281 |
프로프리랜서
|
12년 전 | 1598 | |
| 6280 | 12년 전 | 1284 | ||
| 6279 |
AMDbest
|
12년 전 | 867 | |
| 6278 | 12년 전 | 969 | ||
| 6277 |
senseme
|
12년 전 | 2711 | |
| 6276 |
senseme
|
12년 전 | 2723 | |
| 6275 |
senseme
|
12년 전 | 1244 | |
| 6274 |
|
12년 전 | 2787 | |
| 6273 | 12년 전 | 1266 | ||
| 6272 | 12년 전 | 8449 | ||
| 6271 |
senseme
|
12년 전 | 1503 | |
| 6270 |
senseme
|
12년 전 | 3761 | |
| 6269 |
senseme
|
12년 전 | 6376 | |
| 6268 |
senseme
|
12년 전 | 1553 | |
| 6267 | 12년 전 | 2822 | ||
| 6266 | 12년 전 | 574 | ||
| 6265 | 12년 전 | 1290 | ||
| 6264 | 12년 전 | 1144 | ||
| 6263 |
senseme
|
12년 전 | 1304 | |
| 6262 |
senseme
|
12년 전 | 3299 | |
| 6261 |
senseme
|
12년 전 | 1077 | |
| 6260 |
senseme
|
12년 전 | 1814 | |
| 6259 |
senseme
|
12년 전 | 1248 | |
| 6258 |
senseme
|
12년 전 | 912 | |
| 6257 | 12년 전 | 1404 | ||
| 6256 | 12년 전 | 2095 | ||
| 6255 |
senseme
|
12년 전 | 1374 | |
| 6254 |
senseme
|
12년 전 | 1258 | |
| 6253 |
senseme
|
12년 전 | 1779 | |
| 6252 |
kiplayer
|
12년 전 | 14766 | |
| 6251 | 12년 전 | 1058 | ||
| 6250 | 12년 전 | 859 | ||
| 6249 | 12년 전 | 2704 | ||
| 6248 |
senseme
|
12년 전 | 8947 | |
| 6247 | 12년 전 | 1272 | ||
| 6246 |
프로프리랜서
|
12년 전 | 1158 | |
| 6245 |
프로프리랜서
|
12년 전 | 1621 | |
| 6244 |
프로프리랜서
|
12년 전 | 1126 | |
| 6243 |
프로프리랜서
|
12년 전 | 1256 | |
| 6242 |
프로프리랜서
|
12년 전 | 3541 | |
| 6241 |
프로프리랜서
|
12년 전 | 1451 | |
| 6240 |
프로프리랜서
|
12년 전 | 2120 | |
| 6239 |
softhead
|
12년 전 | 1141 | |
| 6238 |
senseme
|
12년 전 | 1307 | |
| 6237 |
senseme
|
12년 전 | 3019 | |
| 6236 | 12년 전 | 864 | ||
| 6235 | 12년 전 | 1328 | ||
| 6234 | 12년 전 | 1598 | ||
| 6233 | 12년 전 | 2025 | ||
| 6232 | 12년 전 | 2132 | ||
| 6231 | 12년 전 | 2559 |
댓글 작성
댓글을 작성하시려면 로그인이 필요합니다.
로그인하기