<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>
게시판 목록
프로그램
| 번호 | 제목 | 글쓴이 | 날짜 | 조회 |
|---|---|---|---|---|
| 6930 |
SOFTA
|
11년 전 | 5977 | |
| 6929 |
|
11년 전 | 1589 | |
| 6928 | 11년 전 | 1750 | ||
| 6927 | 11년 전 | 1775 | ||
| 6926 | 11년 전 | 1875 | ||
| 6925 | 11년 전 | 2268 | ||
| 6924 | 11년 전 | 3867 | ||
| 6923 | 11년 전 | 2260 | ||
| 6922 |
level999
|
11년 전 | 1035 | |
| 6921 | 11년 전 | 813 | ||
| 6920 | 11년 전 | 944 | ||
| 6919 | 11년 전 | 1055 | ||
| 6918 | 11년 전 | 1310 | ||
| 6917 | 11년 전 | 15425 | ||
| 6916 | 11년 전 | 1426 | ||
| 6915 | 11년 전 | 573 | ||
| 6914 | 11년 전 | 607 | ||
| 6913 | 11년 전 | 874 | ||
| 6912 | 11년 전 | 3125 | ||
| 6911 |
사랑해요79
|
11년 전 | 963 | |
| 6910 | 11년 전 | 741 | ||
| 6909 | 11년 전 | 778 | ||
| 6908 | 11년 전 | 635 | ||
| 6907 | 11년 전 | 829 | ||
| 6906 | 11년 전 | 1584 | ||
| 6905 | 11년 전 | 562 | ||
| 6904 | 11년 전 | 999 | ||
| 6903 | 11년 전 | 1671 | ||
| 6902 |
2donggalbi
|
11년 전 | 511 | |
| 6901 | 11년 전 | 1383 | ||
| 6900 | 11년 전 | 710 | ||
| 6899 | 11년 전 | 855 | ||
| 6898 |
열라뽕똬이
|
11년 전 | 1304 | |
| 6897 |
this1mg
|
11년 전 | 1601 | |
| 6896 |
sbdossb
|
11년 전 | 573 | |
| 6895 |
봉보로봉봉
|
11년 전 | 1145 | |
| 6894 |
똘똘이스머츠
|
11년 전 | 490 | |
| 6893 |
네이비컬러
|
11년 전 | 3638 | |
| 6892 | 11년 전 | 1071 | ||
| 6891 |
네이비컬러
|
11년 전 | 1316 | |
| 6890 | 11년 전 | 1138 | ||
| 6889 | 11년 전 | 583 | ||
| 6888 | 11년 전 | 718 | ||
| 6887 | 11년 전 | 609 | ||
| 6886 | 11년 전 | 5053 | ||
| 6885 | 11년 전 | 550 | ||
| 6884 |
asfasdfd235
|
11년 전 | 572 | |
| 6883 | 11년 전 | 3031 | ||
| 6882 | 11년 전 | 901 | ||
| 6881 | 11년 전 | 4418 | ||
| 6880 | 11년 전 | 1808 | ||
| 6879 |
퍼블리셔지노군
|
11년 전 | 2615 | |
| 6878 | 11년 전 | 553 | ||
| 6877 | 11년 전 | 570 | ||
| 6876 | 11년 전 | 1443 | ||
| 6875 | 11년 전 | 628 | ||
| 6874 | 11년 전 | 1599 | ||
| 6873 | 11년 전 | 1589 | ||
| 6872 | 11년 전 | 4453 | ||
| 6871 |
Abilityarch
|
11년 전 | 961 | |
| 6870 | 11년 전 | 2122 | ||
| 6869 | 11년 전 | 1403 | ||
| 6868 | 11년 전 | 1441 | ||
| 6867 | 11년 전 | 1517 | ||
| 6866 | 11년 전 | 741 | ||
| 6865 | 11년 전 | 1614 | ||
| 6864 | 11년 전 | 466 | ||
| 6863 | 11년 전 | 3746 | ||
| 6862 | 11년 전 | 1845 | ||
| 6861 | 11년 전 | 1642 | ||
| 6860 | 11년 전 | 1289 | ||
| 6859 |
cityman
|
11년 전 | 6808 | |
| 6858 | 11년 전 | 1260 | ||
| 6857 |
의정부아줌마
|
11년 전 | 860 | |
| 6856 | 11년 전 | 2366 | ||
| 6855 | 11년 전 | 1695 | ||
| 6854 | 11년 전 | 822 | ||
| 6853 | 11년 전 | 1209 | ||
| 6852 | 11년 전 | 2591 | ||
| 6851 | 11년 전 | 1958 | ||
| 6850 | 11년 전 | 1787 | ||
| 6849 | 11년 전 | 2075 | ||
| 6848 | 11년 전 | 2353 | ||
| 6847 | 11년 전 | 3130 | ||
| 6846 | 11년 전 | 2713 | ||
| 6845 | 11년 전 | 2799 | ||
| 6844 | 11년 전 | 3516 | ||
| 6843 | 11년 전 | 3261 | ||
| 6842 |
아트291
|
11년 전 | 689 | |
| 6841 | 11년 전 | 4168 | ||
| 6840 | 11년 전 | 5181 | ||
| 6839 | 11년 전 | 886 | ||
| 6838 |
|
11년 전 | 2094 | |
| 6837 | 11년 전 | 1278 | ||
| 6836 |
netdf
|
11년 전 | 607 | |
| 6835 |
|
11년 전 | 1001 | |
| 6834 | 11년 전 | 668 | ||
| 6833 |
|
11년 전 | 2678 | |
| 6832 |
울산굿모닝
|
11년 전 | 1652 | |
| 6831 |
|
11년 전 | 665 |
댓글 작성
댓글을 작성하시려면 로그인이 필요합니다.
로그인하기