<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>
게시판 목록
프로그램
| 번호 | 제목 | 글쓴이 | 날짜 | 조회 |
|---|---|---|---|---|
| 430 | 19년 전 | 4107 | ||
| 429 | 19년 전 | 3307 | ||
| 428 | 19년 전 | 4133 | ||
| 427 | 19년 전 | 3478 | ||
| 426 | 19년 전 | 3106 | ||
| 425 | 19년 전 | 3409 | ||
| 424 | 19년 전 | 2440 | ||
| 423 | 19년 전 | 2867 | ||
| 422 | 19년 전 | 2356 | ||
| 421 | 19년 전 | 3708 | ||
| 420 | 19년 전 | 4744 | ||
| 419 | 19년 전 | 3803 | ||
| 418 |
|
19년 전 | 1752 | |
| 417 | 19년 전 | 2750 | ||
| 416 | 19년 전 | 2392 | ||
| 415 | 19년 전 | 2607 | ||
| 414 | 19년 전 | 4412 | ||
| 413 |
|
19년 전 | 2601 | |
| 412 | 19년 전 | 3051 | ||
| 411 |
|
19년 전 | 2996 | |
| 410 |
|
19년 전 | 3691 | |
| 409 |
|
19년 전 | 3640 | |
| 408 |
|
19년 전 | 1860 | |
| 407 | 19년 전 | 2233 | ||
| 406 | 19년 전 | 2785 | ||
| 405 | 19년 전 | 2452 | ||
| 404 | 19년 전 | 4307 | ||
| 403 | 19년 전 | 3305 | ||
| 402 |
NeoGenesis
|
19년 전 | 4095 | |
| 401 | 19년 전 | 2610 | ||
| 400 |
|
19년 전 | 2501 | |
| 399 | 19년 전 | 2959 | ||
| 398 | 19년 전 | 2488 | ||
| 397 | 19년 전 | 2784 | ||
| 396 | 19년 전 | 2484 | ||
| 395 | 19년 전 | 3188 | ||
| 394 | 19년 전 | 1730 | ||
| 393 | 19년 전 | 2995 | ||
| 392 | 19년 전 | 2260 | ||
| 391 | 19년 전 | 2179 | ||
| 390 | 19년 전 | 2289 | ||
| 389 | 19년 전 | 2647 | ||
| 388 | 19년 전 | 2184 | ||
| 387 | 19년 전 | 4486 | ||
| 386 |
|
19년 전 | 2693 | |
| 385 |
|
19년 전 | 2487 | |
| 384 | 19년 전 | 3020 | ||
| 383 | 19년 전 | 3059 | ||
| 382 | 19년 전 | 3111 | ||
| 381 |
|
19년 전 | 2634 | |
| 380 |
|
19년 전 | 3021 | |
| 379 | 19년 전 | 2551 | ||
| 378 | 19년 전 | 2210 | ||
| 377 | 19년 전 | 2781 | ||
| 376 | 19년 전 | 2470 | ||
| 375 |
|
19년 전 | 2566 | |
| 374 | 19년 전 | 3823 | ||
| 373 | 19년 전 | 3273 | ||
| 372 | 19년 전 | 4993 | ||
| 371 |
세은아빠2
|
19년 전 | 2416 | |
| 370 | 19년 전 | 4502 | ||
| 369 | 19년 전 | 3109 | ||
| 368 | 19년 전 | 2908 | ||
| 367 | 19년 전 | 3728 | ||
| 366 | 19년 전 | 2658 | ||
| 365 | 19년 전 | 3741 | ||
| 364 | 19년 전 | 4018 | ||
| 363 | 19년 전 | 3445 | ||
| 362 | 19년 전 | 3484 | ||
| 361 | 19년 전 | 4108 | ||
| 360 |
hwatta
|
19년 전 | 2366 | |
| 359 | 19년 전 | 5110 | ||
| 358 | 19년 전 | 3659 | ||
| 357 | 19년 전 | 2603 | ||
| 356 |
sdesign1s
|
19년 전 | 2282 | |
| 355 | 20년 전 | 2757 | ||
| 354 | 20년 전 | 3031 | ||
| 353 | 20년 전 | 2796 | ||
| 352 |
|
20년 전 | 5777 | |
| 351 |
|
20년 전 | 2707 | |
| 350 |
|
20년 전 | 4297 | |
| 349 |
hwatta
|
20년 전 | 2185 | |
| 348 | 20년 전 | 7308 | ||
| 347 | 20년 전 | 2416 | ||
| 346 | 20년 전 | 3505 | ||
| 345 | 20년 전 | 4313 | ||
| 344 | 20년 전 | 2654 | ||
| 343 | 20년 전 | 3922 | ||
| 342 | 20년 전 | 3072 | ||
| 341 | 20년 전 | 4095 | ||
| 340 |
|
20년 전 | 5143 | |
| 339 |
|
20년 전 | 4236 | |
| 338 | 20년 전 | 5877 | ||
| 337 | 20년 전 | 2046 | ||
| 336 |
|
20년 전 | 3326 | |
| 335 |
|
20년 전 | 3541 | |
| 334 |
|
20년 전 | 2933 | |
| 333 |
hwatta
|
20년 전 | 2441 | |
| 332 | 20년 전 | 4657 | ||
| 331 | 20년 전 | 2275 |
댓글 작성
댓글을 작성하시려면 로그인이 필요합니다.
로그인하기